diff options
-rw-r--r-- | .clang-tidy | 3 | ||||
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | test/.clang-tidy | 3 | ||||
-rw-r--r-- | test/headers/.clang-tidy | 1 | ||||
-rw-r--r-- | test/meson.build | 1 |
5 files changed, 7 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy index 3bec655..33b6b5f 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -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 GPL-3.0-or-later Checks: > @@ -23,6 +23,7 @@ Checks: > -llvmlibc-*, -misc-include-cleaner, -modernize-use-trailing-return-type, + -performance-enum-size, -readability-identifier-length, -readability-implicit-bool-conversion, WarningsAsErrors: '*' diff --git a/meson.build b/meson.build index 48ac3dc..7c5ede6 100644 --- a/meson.build +++ b/meson.build @@ -35,6 +35,7 @@ if cpp.get_id() in ['clang', 'emscripten'] '-Wno-c++17-extensions', '-Wno-c++98-compat', '-Wno-padded', + '-Wno-switch-default', '-Wno-unsafe-buffer-usage', '-Wno-weak-vtables', ] diff --git a/test/.clang-tidy b/test/.clang-tidy index 0004d61..cee9dd2 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -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 GPL-3.0-or-later Checks: > @@ -11,4 +11,5 @@ Checks: > -hicpp-signed-bitwise, -modernize-make-unique, -readability-function-cognitive-complexity, + -readability-redundant-member-init, InheritParentConfig: true diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy index 08abd38..125a043 100644 --- a/test/headers/.clang-tidy +++ b/test/headers/.clang-tidy @@ -22,6 +22,7 @@ Checks: > -hicpp-no-array-decay, -llvmlibc-*, -modernize-use-trailing-return-type, + -performance-enum-size, -readability-identifier-length, -readability-implicit-bool-conversion, CheckOptions: diff --git a/test/meson.build b/test/meson.build index 2b30cd0..e319a9d 100644 --- a/test/meson.build +++ b/test/meson.build @@ -37,6 +37,7 @@ if cpp.get_id() == 'clang' '-Wno-c++17-extensions', '-Wno-c++98-compat', '-Wno-padded', + '-Wno-switch-default', '-Wno-unsafe-buffer-usage', '-Wno-weak-vtables', ] |