summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy3
-rw-r--r--include/.clang-tidy7
-rw-r--r--tests/.clang-tidy12
3 files changed, 21 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 7d10eb6..40c511c 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -4,9 +4,10 @@ Checks: >
-*-uppercase-literal-suffix,
-bugprone-suspicious-string-compare,
-cert-err34-c,
+ -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-analyzer-unix.Malloc,
- -clang-diagnostic-nullable-to-nonnull-conversion,
-hicpp-signed-bitwise,
+ -llvm-header-guard,
-llvmlibc-*,
-misc-no-recursion,
WarningsAsErrors: '*'
diff --git a/include/.clang-tidy b/include/.clang-tidy
new file mode 100644
index 0000000..a01dfba
--- /dev/null
+++ b/include/.clang-tidy
@@ -0,0 +1,7 @@
+Checks: >
+ *,
+ -clang-diagnostic-unused-macros,
+ -llvmlibc-*,
+WarningsAsErrors: '*'
+HeaderFilterRegex: '.*'
+FormatStyle: file
diff --git a/tests/.clang-tidy b/tests/.clang-tidy
new file mode 100644
index 0000000..0b8f64b
--- /dev/null
+++ b/tests/.clang-tidy
@@ -0,0 +1,12 @@
+Checks: >
+ *,
+ -*-magic-numbers,
+ -*-uppercase-literal-suffix,
+ -bugprone-suspicious-string-compare,
+ -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
+ -hicpp-signed-bitwise,
+ -llvm-header-guard,
+ -llvmlibc-*,
+WarningsAsErrors: '*'
+HeaderFilterRegex: '.*'
+FormatStyle: file