diff options
author | David Robillard <d@drobilla.net> | 2024-07-17 10:24:51 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-17 10:24:51 -0400 |
commit | 59bcfaafcad0f3d85d33fadf21d4d0a2e6575a64 (patch) | |
tree | c286d8502bb4cdd9db0f83eb3970a2351abde6bb | |
parent | 4d2e04dbcabd0b5d715ea7eeeb909f4088055763 (diff) | |
download | ganv-59bcfaafcad0f3d85d33fadf21d4d0a2e6575a64.tar.gz ganv-59bcfaafcad0f3d85d33fadf21d4d0a2e6575a64.tar.bz2 ganv-59bcfaafcad0f3d85d33fadf21d4d0a2e6575a64.zip |
Suppress new warnings in clang and clang-tidy 18
-rw-r--r-- | .clang-tidy | 8 | ||||
-rw-r--r-- | meson/suppressions/meson.build | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy index c6b7e25..ff7e030 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -4,6 +4,7 @@ Checks: > -*-avoid-goto, -*-braces-around-statements, -*-else-after-return, + -*-macro-to-enum, -*-magic-numbers, -*-member-init, -*-named-parameter, @@ -16,10 +17,12 @@ Checks: > -altera-*, -android-cloexec-fopen, -bugprone-branch-clone, + -bugprone-casting-through-void, -bugprone-easily-swappable-parameters, -bugprone-incorrect-roundings, -bugprone-integer-division, -bugprone-macro-parentheses, + -bugprone-multi-level-implicit-pointer-conversion, -bugprone-reserved-identifier, -cert-dcl21-cpp, -cert-dcl37-c, @@ -31,6 +34,7 @@ Checks: > -cert-msc50-cpp, -cert-msc51-cpp, -clang-analyzer-cplusplus.NewDeleteLeaks, + -clang-analyzer-optin.core.EnumCastOutOfRange, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -clang-analyzer-unix.Malloc, -concurrency-mt-unsafe, @@ -63,10 +67,10 @@ Checks: > -misc-non-private-member-variables-in-classes, -misc-use-anonymous-namespace, -modernize-loop-convert, - -modernize-macro-to-enum, -modernize-raw-string-literal, -modernize-use-trailing-return-type, -modernize-use-using, + -performance-enum-size, -performance-faster-string-find, -readability-const-return-type, -readability-container-size-empty, @@ -75,6 +79,8 @@ Checks: > -readability-implicit-bool-conversion, -readability-inconsistent-declaration-parameter-name, -readability-make-member-function-const, + -readability-redundant-casting, + -readability-redundant-inline-specifier, -readability-simplify-boolean-expr, WarningsAsErrors: '*' HeaderFilterRegex: '.*' diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 6e8868e..b10dbef 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -21,6 +21,7 @@ clang_common_suppressions = [ '-Wno-shadow', '-Wno-shorten-64-to-32', '-Wno-sign-conversion', + '-Wno-switch-default', '-Wno-switch-enum', '-Wno-unused-macros', '-Wno-used-but-marked-unused', |