Skip to content

Commit

Permalink
Use a config file
Browse files Browse the repository at this point in the history
  • Loading branch information
thetic committed Nov 27, 2022
1 parent 443da74 commit d30c7b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .clang-tidy
@@ -0,0 +1,4 @@
---
Checks: "clang-diagnostic-*,clang-analyzer-*,bugprone-*,-bugprone-easily-swappable-parameters"
WarningsAsErrors: "*"
FormatStyle: file
4 changes: 2 additions & 2 deletions CMakePresets.json
Expand Up @@ -33,8 +33,8 @@
"name": "clang-tidy",
"inherits": ["Clang"],
"cacheVariables": {
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;-checks=bugprone-*,-bugprone-easily-swappable-parameters;-warnings-as-errors=*",
"CMAKE_C_CLANG_TIDY": "clang-tidy;-checks=bugprone-*,-bugprone-easily-swappable-parameters;-warnings-as-errors=*"
"CMAKE_CXX_CLANG_TIDY": "clang-tidy",
"CMAKE_C_CLANG_TIDY": "clang-tidy"
}
},
{
Expand Down

0 comments on commit d30c7b4

Please sign in to comment.