Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++20",
"cppStandard": "c++23",
"intelliSenseMode": "macos-clang-arm64"
}
],
"version": 4
}
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"C_Cpp.default.compilerPath": "/usr/bin/clang",
"C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.cppStandard": "c++23",
"C_Cpp.default.includePath": [
"${workspaceFolder}/src"
],
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function(clavis_enable_warnings target)
endfunction()

add_library(clavis_algorithm)
target_compile_features(clavis_algorithm PUBLIC cxx_std_20)
target_compile_features(clavis_algorithm PUBLIC cxx_std_23)
target_include_directories(clavis_algorithm PUBLIC
${PROJECT_SOURCE_DIR}/src
)
Expand Down Expand Up @@ -97,7 +97,7 @@ if(CLANG_TIDY)
${CLAVIS_SOURCE_FILES}
--
-x c++
-std=c++20
-std=c++23
-I${PROJECT_SOURCE_DIR}/src
COMMENT "Running clang-tidy on source files"
VERBATIM
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ Welcome to Clavis! Here, efficient algorithms and unnecessarily complex C++ code

| Tool | Version | Install (macOS) |
|------|---------|-----------------|
| C++ compiler | C++23 support | Xcode Command Line Tools |
| CMake | 3.25+ | `brew install cmake` |
| Ninja | any | `brew install ninja` |
| GTest | any | `brew install googletest` |
| LLVM | 16+ | `brew install llvm` |
| LLVM | 17+ | `brew install llvm` |

CI validates the project with GCC 13.

### Quick Setup (macOS)

Expand Down
2 changes: 1 addition & 1 deletion scripts/build_debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fi

# Run debug build
echo "Building in debug mode..."
g++ -std=c++20 -DDEBUG_LOG -g -Wall -Wextra "$SOURCE_FILE" -o "$OUTPUT_FILE"
g++ -std=c++23 -DDEBUG_LOG -g -Wall -Wextra "$SOURCE_FILE" -o "$OUTPUT_FILE"

# Check build result
if [ $? -eq 0 ]; then
Expand Down