File tree Expand file tree Collapse file tree 7 files changed +11
-8
lines changed Expand file tree Collapse file tree 7 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 33
44# Project
55Language : Cpp
6- Standard : c++17
6+ Standard : c++20
77ColumnLimit : 120
88
99# Indentation
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ Checks: >
55 -cppcoreguidelines-avoid-magic-numbers,
66 -fuchsia-*,
77 fuchsia-multiple-inheritance,
8+ -google-readability-todo,
89 -hicpp-uppercase-literal-suffix,
10+ -llvm-header-guard,
11+ -llvm-include-order,
912 -llvmlibc-*,
1013 -misc-non-private-member-variables-in-classes,
1114 -modernize-use-nodiscard,
Original file line number Diff line number Diff line change 33CompileFlags :
44 Add :
55 - " -ferror-limit=0"
6-
7- # if you are using VSCode and CMake Tools(provided by Microsoft) add
8- # "cmake.copyCompileCommands": "${workspaceFolder}/.vscode/compile_commands.json" to VSCode settings
9- # because CompilationDatabase field in .clangd doesn't support multiple folders to search
106 CompilationDatabase : .vscode
117
128Style :
@@ -21,6 +17,9 @@ InlayHints:
2117 DeducedTypes : Yes
2218 TypeNameLimit : 24
2319
20+ Hover :
21+ ShowAKA : Yes
22+
2423Diagnostics :
2524 UnusedIncludes : Strict
2625 MissingIncludes : None
Original file line number Diff line number Diff line change 44 "*.clang-tidy" : " yaml" ,
55 "*.clang-format" : " yaml" ,
66 "*.clangd" : " yaml" ,
7+ "*.codespellrc" : " ini" ,
78 },
89 "files.exclude" : {
910 ".cache" : true ,
Original file line number Diff line number Diff line change 1212 "hidden" : true ,
1313 "cacheVariables" : {
1414 "CMAKE_CXX_EXTENSIONS" : " OFF" ,
15- "CMAKE_CXX_STANDARD" : " 17 " ,
15+ "CMAKE_CXX_STANDARD" : " 20 " ,
1616 "CMAKE_CXX_STANDARD_REQUIRED" : " ON"
1717 }
1818 },
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ add_library(Core
55 src/Core/Lib.cpp
66)
77target_include_directories (Core PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /library/include>" )
8- target_compile_features (Core PUBLIC cxx_std_17 )
8+ target_compile_features (Core PUBLIC cxx_std_20 )
99
1010include (GenerateExportHeader)
1111generate_export_header(Core
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
77
88add_executable (CoreTests Tests.cpp)
99target_link_libraries (CoreTests PRIVATE Core Catch2::Catch2WithMain)
10- target_compile_features (CoreTests PRIVATE cxx_std_17 )
10+ target_compile_features (CoreTests PRIVATE cxx_std_20 )
1111
1212# ---- Tests ----
1313
You can’t perform that action at this time.
0 commit comments