aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy2
-rw-r--r--meson/suppressions/meson.build1
-rw-r--r--test/.clang-tidy5
3 files changed, 8 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 08ce6e9..342cf5a 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -8,6 +8,7 @@ Checks: >
-bugprone-macro-parentheses,
-bugprone-suspicious-include,
-bugprone-suspicious-string-compare,
+ -cert-err33-c,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-diagnostic-empty-translation-unit,
-clang-diagnostic-unused-function,
@@ -20,6 +21,7 @@ Checks: >
-modernize-use-trailing-return-type,
-performance-no-int-to-ptr,
-readability-function-cognitive-complexity,
+ -readability-identifier-length,
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: file
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index fcce3f5..e2170c0 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -19,6 +19,7 @@ if is_variable('cc')
c_suppressions += [
'-Wno-cast-align',
'-Wno-cast-qual',
+ '-Wno-declaration-after-statement',
'-Wno-documentation-unknown-command',
'-Wno-double-promotion',
'-Wno-float-conversion',
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 7846913..f73d7a6 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -1,15 +1,20 @@
Checks: >
*,
+ -*-else-after-return,
-*-magic-numbers,
-*-uppercase-literal-suffix,
-altera-*,
-bugprone-easily-swappable-parameters,
-bugprone-macro-parentheses,
+ -bugprone-suspicious-include,
+ -bugprone-suspicious-string-compare,
-llvm-header-guard,
-llvmlibc-implementation-in-namespace,
-llvmlibc-restrict-system-libc-headers,
-modernize-use-trailing-return-type,
-performance-no-int-to-ptr,
+ -readability-function-cognitive-complexity,
+ -readability-identifier-length,
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: file