Skip to content

Commit

Permalink
Modernize cmake preset and clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Sep 5, 2024
1 parent 090098c commit a9830ab
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"name": "cppcheck",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_CPPCHECK": "cppcheck;--enable=warning;--inconclusive;--force;--inline-suppr"
"CMAKE_CXX_CPPCHECK":
"cppcheck;--enable=warning;--inconclusive;--force;--inline-suppr"
}
},
{
Expand All @@ -70,7 +71,8 @@
"name": "clang-tidy",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;--header-filter=${sourceDir}/*;-checks=-*,modernize*,-modernize-use-trailing-return-type;-extra-arg=-std=c++17"
"CMAKE_CXX_CLANG_TIDY":
"clang-tidy;--header-filter=${sourceDir}/*;-checks=-*,modernize*,-modernize-use-trailing-return-type,-modernize-macro-to-enum,-modernize-concat-nested-namespaces;-extra-arg=-std=c++20"
}
},
{
Expand All @@ -84,7 +86,8 @@
"name": "iwyu",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_INCLUDE_WHAT_YOU_USE": "iwyu;-Xiwyu;any;-Xiwyu;iwyu;-Xiwyu"
"CMAKE_CXX_INCLUDE_WHAT_YOU_USE":
"iwyu;-Xiwyu;any;-Xiwyu;iwyu;-Xiwyu"
}
},
{
Expand Down Expand Up @@ -192,7 +195,8 @@
"ci-ninja-debug"
],
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/.github/toolchain/clang-on-windows-toolchain.cmake"
"CMAKE_TOOLCHAIN_FILE":
"${sourceDir}/.github/toolchain/clang-on-windows-toolchain.cmake"
},
"condition": {
"type": "equals",
Expand Down

0 comments on commit a9830ab

Please sign in to comment.