summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-07-16 22:12:32 -0400
committerDavid Robillard <d@drobilla.net>2024-07-16 22:12:32 -0400
commit7d98c65702a2f835acb7e4387b08cfdaa6ed0b8a (patch)
tree23cd9df90037f4179af5aa37a6516564c022e095
parent35b1b1f166c2f29a8c2affb48be017e61c6ee0a1 (diff)
downloadsord-7d98c65702a2f835acb7e4387b08cfdaa6ed0b8a.tar.gz
sord-7d98c65702a2f835acb7e4387b08cfdaa6ed0b8a.tar.bz2
sord-7d98c65702a2f835acb7e4387b08cfdaa6ed0b8a.zip
Suppress new warnings in clang and clang-tidy 18
-rw-r--r--.clang-tidy5
-rw-r--r--meson/suppressions/meson.build3
2 files changed, 6 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 5b9d54d..b281245 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -4,6 +4,7 @@
Checks: >
*,
-*-else-after-return,
+ -*-macro-to-enum,
-*-magic-numbers,
-*-non-private-member-variables-in-classes,
-*-static-assert,
@@ -19,6 +20,7 @@ Checks: >
-bugprone-branch-clone,
-bugprone-copy-constructor-init,
-bugprone-easily-swappable-parameters,
+ -bugprone-multi-level-implicit-pointer-conversion,
-bugprone-narrowing-conversions,
-bugprone-reserved-identifier,
-bugprone-suspicious-include,
@@ -29,6 +31,7 @@ Checks: >
-cert-err33-c,
-cert-err34-c,
-clang-analyzer-core.uninitialized.ArraySubscript,
+ -clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-analyzer-valist.Uninitialized,
-cppcoreguidelines-avoid-non-const-global-variables,
@@ -56,13 +59,13 @@ Checks: >
-misc-include-cleaner,
-misc-no-recursion,
-misc-unused-parameters,
- -modernize-macro-to-enum,
-modernize-return-braced-init-list,
-modernize-use-default-member-init,
-modernize-use-trailing-return-type,
-performance-faster-string-find,
-performance-noexcept-move-constructor,
-performance-unnecessary-value-param,
+ -readability-avoid-nested-conditional-operator,
-readability-const-return-type,
-readability-function-cognitive-complexity,
-readability-identifier-length,
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index 0dd7f2b..386d24c 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -1,4 +1,4 @@
-# Copyright 2020-2023 David Robillard <d@drobilla.net>
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
# Project-specific warning suppressions
@@ -24,6 +24,7 @@ if cc.get_id() in ['clang', 'emscripten']
'-Wno-padded',
'-Wno-reserved-id-macro',
'-Wno-sign-conversion',
+ '-Wno-switch-default',
'-Wno-switch-enum',
'-Wno-unsafe-buffer-usage',
'-Wno-unused-macros',