aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-07-17 10:25:33 -0400
committerDavid Robillard <d@drobilla.net>2024-07-17 10:25:33 -0400
commitea10d696d6490eb7317b64f3bee0d8d8d0ca8362 (patch)
treee8278ec3b7d11db6f0b10bc60f66ea43829fc2b1
parent89752663931bf3f1120437d20f0ca2d9ddb856f5 (diff)
downloadjalv-ea10d696d6490eb7317b64f3bee0d8d8d0ca8362.tar.gz
jalv-ea10d696d6490eb7317b64f3bee0d8d8d0ca8362.tar.bz2
jalv-ea10d696d6490eb7317b64f3bee0d8d8d0ca8362.zip
Suppress new warnings in clang and clang-tidy 18
-rw-r--r--.clang-tidy6
-rw-r--r--meson/suppressions/meson.build1
2 files changed, 6 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 4b7a39a..096921e 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -1,16 +1,20 @@
Checks: >
*,
-*-c-arrays,
+ -*-macro-to-enum,
-*-magic-numbers,
-*-named-parameter,
-*-narrowing-conversions,
-altera-*,
-bugprone-assignment-in-if-condition,
-bugprone-branch-clone,
+ -bugprone-casting-through-void,
-bugprone-easily-swappable-parameters,
+ -bugprone-multi-level-implicit-pointer-conversion,
-bugprone-suspicious-realloc-usage,
-cert-err33-c,
-cert-err34-c,
+ -clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-analyzer-valist.Uninitialized,
-concurrency-mt-unsafe,
@@ -28,13 +32,13 @@ Checks: >
-misc-include-cleaner,
-misc-no-recursion,
-misc-use-anonymous-namespace,
- -modernize-macro-to-enum,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-non-const-parameter,
+ -readability-redundant-casting,
-readability-static-accessed-through-instance,
CheckOptions:
- key: hicpp-uppercase-literal-suffix.NewSuffixes
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index b338d31..bce2c5f 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -32,6 +32,7 @@ if is_variable('cc')
'-Wno-reserved-id-macro', # MacOS
'-Wno-shorten-64-to-32',
'-Wno-sign-conversion',
+ '-Wno-switch-default',
'-Wno-switch-enum',
'-Wno-unsafe-buffer-usage',
'-Wno-unused-macros',