summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-13 23:33:20 -0400
committerDavid Robillard <d@drobilla.net>2022-07-18 20:16:10 -0400
commit14125070585825fa3ca85a3ad2f94c90767f01e4 (patch)
treead092dab0e1aa92a537bf5fac8af8a1a8fba75bc
parent75e647def0f67647ec7ba1405e26d809a87c62fc (diff)
downloadsratom-14125070585825fa3ca85a3ad2f94c90767f01e4.tar.gz
sratom-14125070585825fa3ca85a3ad2f94c90767f01e4.tar.bz2
sratom-14125070585825fa3ca85a3ad2f94c90767f01e4.zip
Suppress new warnings in clang and clang-tidy 14
-rw-r--r--.clang-tidy2
-rw-r--r--meson/suppressions/meson.build1
-rw-r--r--test/.clang-tidy2
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