diff options
-rw-r--r-- | .clang-tidy | 2 | ||||
-rw-r--r-- | meson/suppressions/meson.build | 1 | ||||
-rw-r--r-- | test/.clang-tidy | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy index f1f12ed..d075efd 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -7,6 +7,7 @@ Checks: > -bugprone-easily-swappable-parameters, -bugprone-macro-parentheses, -bugprone-suspicious-string-compare, + -cert-err33-c, -cert-err34-c, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -clang-analyzer-unix.Malloc, @@ -16,6 +17,7 @@ Checks: > -misc-no-recursion, -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 735c43c..7f3e703 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -18,6 +18,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 53e7864..30cb10f 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -5,11 +5,13 @@ Checks: > -altera-*, -bugprone-macro-parentheses, -bugprone-suspicious-string-compare, + -cert-err33-c, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -hicpp-signed-bitwise, -llvm-header-guard, -llvmlibc-*, -performance-no-int-to-ptr, + -readability-identifier-length, WarningsAsErrors: '*' HeaderFilterRegex: '.*' FormatStyle: file |