diff options
author | David Robillard <d@drobilla.net> | 2022-07-13 23:46:18 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-17 18:14:02 -0400 |
commit | e1c80a39b280509007693225abb2eb9d47ac01e1 (patch) | |
tree | f2cfcccae491e6a1843f9d0133cc84b433124a27 | |
parent | 779e016962fdd59d333387077387a81555ca5a4b (diff) | |
download | lv2-e1c80a39b280509007693225abb2eb9d47ac01e1.tar.xz |
Suppress new warnings in clang and clang-tidy 14
-rw-r--r-- | .clang-tidy | 2 | ||||
-rw-r--r-- | meson/suppressions/meson.build | 1 | ||||
-rw-r--r-- | test/.clang-tidy | 5 |
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 |