summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy3
-rw-r--r--meson/suppressions/meson.build3
-rw-r--r--src/.clang-tidy5
-rw-r--r--test/cpp/.clang-tidy2
4 files changed, 10 insertions, 3 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 1c62912..b695c4f 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -3,17 +3,18 @@
Checks: >
*,
+ -*-macro-to-enum,
-*-vararg,
-altera-*,
-bugprone-assignment-in-if-condition,
-bugprone-easily-swappable-parameters,
-bugprone-macro-parentheses,
+ -bugprone-multi-level-implicit-pointer-conversion,
-bugprone-suspicious-realloc-usage,
-clang-diagnostic-unused-function,
-clang-diagnostic-unused-macros,
-llvmlibc-*,
-misc-include-cleaner,
- -modernize-macro-to-enum,
-readability-identifier-length,
CheckOptions:
- key: hicpp-uppercase-literal-suffix.NewSuffixes
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index d05af9e..2f19537 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
@@ -28,6 +28,7 @@ if cc.get_id() in ['clang', 'emscripten']
'-Wno-reserved-id-macro',
'-Wno-shorten-64-to-32',
'-Wno-sign-conversion',
+ '-Wno-switch-default',
'-Wno-switch-enum',
'-Wno-unsafe-buffer-usage',
'-Wno-vla',
diff --git a/src/.clang-tidy b/src/.clang-tidy
index 0673649..6fc648d 100644
--- a/src/.clang-tidy
+++ b/src/.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: >
@@ -7,6 +7,7 @@ Checks: >
-bugprone-narrowing-conversions,
-cert-err33-c,
-cert-err34-c,
+ -clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-analyzer-valist.Uninitialized,
-concurrency-mt-unsafe,
@@ -16,6 +17,8 @@ Checks: >
-hicpp-signed-bitwise,
-llvm-header-guard,
-performance-no-int-to-ptr,
+ -readability-avoid-nested-conditional-operator,
-readability-function-cognitive-complexity,
+ -readability-redundant-casting,
-readability-suspicious-call-argument,
InheritParentConfig: true
diff --git a/test/cpp/.clang-tidy b/test/cpp/.clang-tidy
index 5d20fa0..e57bf83 100644
--- a/test/cpp/.clang-tidy
+++ b/test/cpp/.clang-tidy
@@ -14,6 +14,8 @@ Checks: >
-modernize-return-braced-init-list,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
+ -readability-avoid-return-with-void-value,
-readability-implicit-bool-conversion,
+ -readability-redundant-inline-specifier,
HeaderFilterRegex: '.*/lilvmm\.hpp'
InheritParentConfig: true