aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-11-13 19:49:47 -0500
committerDavid Robillard <d@drobilla.net>2025-11-13 20:00:28 -0500
commit46ab5fa6820e069ae4e97a26712b03144a34a04f (patch)
treee460d82a0f7ef0284085a3345b58f806766978a7
parentcbe7327ff36ca6b142c43c0e0491b989726ecc9b (diff)
downloadlv2-46ab5fa6820e069ae4e97a26712b03144a34a04f.tar.xz
Strengthen clang-tidy configuration
-rw-r--r--.clang-tidy8
-rw-r--r--test/.clang-tidy7
-rw-r--r--test/cpp/.clang-tidy6
-rw-r--r--test/headers/.clang-tidy6
4 files changed, 4 insertions, 23 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 013eda7..f8c3249 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -6,14 +6,8 @@ Checks: >
-*-macro-to-enum,
-*-magic-numbers,
-altera-*,
- -bugprone-assignment-in-if-condition,
-bugprone-easily-swappable-parameters,
- -bugprone-macro-parentheses,
- -clang-diagnostic-unused-function,
- -clang-diagnostic-unused-macros,
-llvmlibc-*,
- -misc-include-cleaner,
- -performance-no-int-to-ptr,
-readability-identifier-length,
CheckOptions:
- key: hicpp-uppercase-literal-suffix.NewSuffixes
@@ -21,5 +15,5 @@ CheckOptions:
- key: readability-uppercase-literal-suffix.NewSuffixes
value: L;U;f
FormatStyle: file
-HeaderFilterRegex: 'lv2/.*\.h'
+HeaderFilterRegex: 'lv2/.*\.h$'
WarningsAsErrors: '*'
diff --git a/test/.clang-tidy b/test/.clang-tidy
index ef4d61f..a622e62 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -3,14 +3,7 @@
Checks: >
-*-else-after-return,
- -bugprone-easily-swappable-parameters,
- -bugprone-multi-level-implicit-pointer-conversion,
-bugprone-suspicious-include,
- -cert-err33-c,
- -clang-diagnostic-unused-parameter,
- -cppcoreguidelines-avoid-non-const-global-variables,
- -llvmlibc-implementation-in-namespace,
- -misc-unused-parameters,
-modernize-use-trailing-return-type,
-readability-function-cognitive-complexity,
InheritParentConfig: true
diff --git a/test/cpp/.clang-tidy b/test/cpp/.clang-tidy
index 1fe1f27..b7981cc 100644
--- a/test/cpp/.clang-tidy
+++ b/test/cpp/.clang-tidy
@@ -2,10 +2,9 @@
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
- -*-avoid-c-arrays,
- -*-deprecated-headers,
-*-no-malloc,
-*-use-auto,
+ -*-use-nullptr,
-bugprone-reserved-identifier,
-cert-dcl37-c,
-cert-dcl50-cpp,
@@ -17,10 +16,7 @@ Checks: >
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-pro-type-vararg,
-hicpp-no-array-decay,
- -hicpp-use-nullptr,
-hicpp-vararg,
- -llvmlibc-callee-namespace,
- -modernize-use-nullptr,
-modernize-use-using,
-performance-enum-size,
-readability-implicit-bool-conversion,
diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy
index bf971cc..60c4447 100644
--- a/test/headers/.clang-tidy
+++ b/test/headers/.clang-tidy
@@ -1,4 +1,4 @@
-# Copyright 2020-2024 David Robillard <d@drobilla.net>
+# Copyright 2020-2025 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
@@ -6,11 +6,9 @@ Checks: >
-*-macro-to-enum,
-*-magic-numbers,
-altera-*,
- -bugprone-assignment-in-if-condition,
-bugprone-easily-swappable-parameters,
-bugprone-macro-parentheses,
- -llvmlibc-restrict-system-libc-headers,
- -performance-no-int-to-ptr,
+ -llvmlibc-*,
-readability-identifier-length,
CheckOptions:
- key: hicpp-uppercase-literal-suffix.NewSuffixes