aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-05-23 18:20:29 -0700
committerFuwn <[email protected]>2024-05-23 18:20:29 -0700
commitccfcdec74450512a4a46bf0d1635160f7f5d2daf (patch)
tree5c39e3127dc4c059464683d583829975c35c1131
parentbuild(config.ninja): squeeze out every little drop of performance (diff)
downloadseiwm-ccfcdec74450512a4a46bf0d1635160f7f5d2daf.tar.xz
seiwm-ccfcdec74450512a4a46bf0d1635160f7f5d2daf.zip
chore(config.ninja): tighter clang-tidy checks
-rw-r--r--build.ninja2
-rw-r--r--config.ninja3
2 files changed, 4 insertions, 1 deletions
diff --git a/build.ninja b/build.ninja
index 49ebcf0..cebbe87 100644
--- a/build.ninja
+++ b/build.ninja
@@ -32,7 +32,7 @@ rule clang_format
command = clang-format -i -style=LLVM ./*.{c,h}
rule clang_tidy
- command = ninja -t compdb > compile_commands.json && clang-tidy ./*.{c,h}
+ command = ninja -t compdb > compile_commands.json && clang-tidy -checks="${CLANG_TIDY_CHECKS}" ./*.{c,h}
build format: clang_format
diff --git a/config.ninja b/config.ninja
index c31807d..7f95f9d 100644
--- a/config.ninja
+++ b/config.ninja
@@ -45,3 +45,6 @@ LDFLAGS = ${LIBS}
# Compiler
CC = $${CC:-cc}
+
+# clang-tidy
+CLANG_TIDY_CHECKS='-*,bugprone-*,clang-analyzer-*,concurrency-*,cppcoreguildelines-*,llvm-*,misc-*,modernize-*,performance-*,portability-*,readability-*'