From 80dfb15009fecd4cd26e45d4dabecaf1b8fa9a10 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 17 Jul 2024 10:35:40 -0400 Subject: Suppress new warnings in clang and clang-tidy 18 --- .clang-tidy | 1 + meson.build | 1 + meson/suppressions/meson.build | 1 + src/.clang-tidy | 5 +++++ src/gui/.clang-tidy | 1 + src/server/.clang-tidy | 2 ++ 6 files changed, 11 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index ea1fba62..bd522e56 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -25,6 +25,7 @@ Checks: > -misc-use-anonymous-namespace, -modernize-use-nodiscard, -modernize-use-trailing-return-type, + -performance-enum-size, -readability-identifier-length, -readability-implicit-bool-conversion, CheckOptions: diff --git a/meson.build b/meson.build index ebce016c..8af5463c 100644 --- a/meson.build +++ b/meson.build @@ -147,6 +147,7 @@ lilv_dep = dependency( raul_dep = dependency( 'raul-2', fallback: ['raul', 'raul_dep'], + include_type: 'system', version: '>= 2.0.0', ) diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 4fb07820..d1366d00 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -32,6 +32,7 @@ if is_variable('cpp') '-Wno-reserved-id-macro', '-Wno-shorten-64-to-32', '-Wno-sign-conversion', + '-Wno-switch-default', '-Wno-switch-enum', '-Wno-unreachable-code', '-Wno-unsafe-buffer-usage', diff --git a/src/.clang-tidy b/src/.clang-tidy index 7b04d6c4..6f3c463b 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -4,10 +4,13 @@ Checks: > -*-vararg, -android-cloexec-*, -bugprone-easily-swappable-parameters, + -bugprone-multi-level-implicit-pointer-conversion, -bugprone-unchecked-optional-access, + -bugprone-unused-local-non-trivial-variable, -cert-dcl50-cpp, -cert-err33-c, -cert-err34-c, + -clang-analyzer-optin.core.EnumCastOutOfRange, -clang-analyzer-optin.cplusplus.VirtualCall, -clang-analyzer-valist.Uninitialized, -concurrency-mt-unsafe, @@ -25,6 +28,8 @@ Checks: > -hicpp-no-malloc, -misc-no-recursion, -misc-unused-parameters, + -readability-avoid-return-with-void-value, -readability-function-cognitive-complexity, + -readability-redundant-casting, -readability-use-anyofallof, InheritParentConfig: true diff --git a/src/gui/.clang-tidy b/src/gui/.clang-tidy index 4dc4facc..a7b2914c 100644 --- a/src/gui/.clang-tidy +++ b/src/gui/.clang-tidy @@ -26,5 +26,6 @@ Checks: > -hicpp-multiway-paths-covered, -hicpp-vararg, -llvm-header-guard, + -readability-container-size-empty, -readability-convert-member-functions-to-static, InheritParentConfig: true diff --git a/src/server/.clang-tidy b/src/server/.clang-tidy index 8bb1a979..741698de 100644 --- a/src/server/.clang-tidy +++ b/src/server/.clang-tidy @@ -21,4 +21,6 @@ Checks: > -llvm-header-guard, -misc-redundant-expression, -portability-simd-intrinsics, + -readability-container-size-empty, + -readability-redundant-inline-specifier, InheritParentConfig: true -- cgit v1.2.1