diff options
author | David Robillard <d@drobilla.net> | 2024-07-16 22:05:58 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-18 17:16:10 -0400 |
commit | 190c3c7c304de13af59fe2c34a66802d71aaef52 (patch) | |
tree | 0a4f29c2a4ca673e6f8cba5415c14279011f83db | |
parent | 28632ce4934a1e370bd663243c804cd9821b0c76 (diff) | |
download | zix-190c3c7c304de13af59fe2c34a66802d71aaef52.tar.gz zix-190c3c7c304de13af59fe2c34a66802d71aaef52.tar.bz2 zix-190c3c7c304de13af59fe2c34a66802d71aaef52.zip |
Suppress new warnings in clang and clang-tidy 18
-rw-r--r-- | .clang-tidy | 3 | ||||
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | src/.clang-tidy | 1 | ||||
-rw-r--r-- | test/.clang-tidy | 5 |
4 files changed, 8 insertions, 4 deletions
diff --git a/.clang-tidy b/.clang-tidy index 1c5a762..aefcd13 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,4 +1,4 @@ -# Copyright 2020-2022 David Robillard <d@drobilla.net> +# Copyright 2020-2024 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC Checks: > @@ -9,6 +9,7 @@ Checks: > -hicpp-multiway-paths-covered, -llvmlibc-*, -misc-include-cleaner, + -readability-avoid-nested-conditional-operator, -readability-identifier-length, WarningsAsErrors: '*' HeaderFilterRegex: '.*' diff --git a/meson.build b/meson.build index f84642b..3ec4c41 100644 --- a/meson.build +++ b/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( @@ -49,6 +49,7 @@ if cc.get_id() in ['clang', 'emscripten'] '-Wno-declaration-after-statement', '-Wno-implicit-fallthrough', # Really for clang < 12 '-Wno-padded', + '-Wno-switch-default', '-Wno-unsafe-buffer-usage', ] diff --git a/src/.clang-tidy b/src/.clang-tidy index 5647a8f..b3b1960 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -4,6 +4,7 @@ Checks: > -*-magic-numbers, -bugprone-easily-swappable-parameters, + -bugprone-multi-level-implicit-pointer-conversion, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -llvm-header-guard, -misc-no-recursion, diff --git a/test/.clang-tidy b/test/.clang-tidy index 2d684a6..f869db0 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -1,16 +1,17 @@ -# Copyright 2020-2022 David Robillard <d@drobilla.net> +# Copyright 2020-2024 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC Checks: > + -*-macro-to-enum, -*-magic-numbers, -android-cloexec-fopen, -bugprone-easily-swappable-parameters, + -bugprone-multi-level-implicit-pointer-conversion, -cert-err33-c, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -cppcoreguidelines-avoid-non-const-global-variables, -google-readability-casting, -llvm-header-guard, - -modernize-macro-to-enum, -performance-no-int-to-ptr, -readability-function-cognitive-complexity, InheritParentConfig: true |