aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-10 15:04:00 -0500
committerDavid Robillard <d@drobilla.net>2022-12-11 13:15:02 -0500
commit3c79698806163325b68d6ce249044685e8fcc848 (patch)
tree45ca774c7cd260e3a6ce7634e3da8a6e5426c2f2
parent86e5e821531ff563b7e4642aa792d9e0f3067557 (diff)
downloadlv2-3c79698806163325b68d6ce249044685e8fcc848.tar.xz
Simplify clang-tidy configuration
-rw-r--r--.clang-tidy7
-rw-r--r--plugins/.clang-tidy4
-rw-r--r--test/.clang-tidy8
3 files changed, 11 insertions, 8 deletions
diff --git a/.clang-tidy b/.clang-tidy
index a94c72f..121e2ca 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -3,9 +3,16 @@
Checks: >
*,
+ -*-magic-numbers,
-altera-*,
+ -bugprone-easily-swappable-parameters,
+ -bugprone-macro-parentheses,
+ -clang-diagnostic-unused-function,
+ -clang-diagnostic-unused-macros,
-llvm-header-guard,
-llvmlibc-restrict-system-libc-headers,
+ -performance-no-int-to-ptr,
+ -readability-identifier-length,
CheckOptions:
- key: hicpp-uppercase-literal-suffix.NewSuffixes
value: L;U;f
diff --git a/plugins/.clang-tidy b/plugins/.clang-tidy
index c75c335..1f396e5 100644
--- a/plugins/.clang-tidy
+++ b/plugins/.clang-tidy
@@ -2,14 +2,10 @@
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
- -*-magic-numbers,
-*-narrowing-conversions,
-bugprone-easily-swappable-parameters,
- -bugprone-macro-parentheses,
-cert-err33-c,
-hicpp-signed-bitwise,
-misc-unused-parameters,
- -performance-no-int-to-ptr,
-readability-function-cognitive-complexity,
- -readability-identifier-length,
InheritParentConfig: true
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 1c1d56a..f6fe1d6 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -3,13 +3,13 @@
Checks: >
-*-else-after-return,
- -*-magic-numbers,
-bugprone-easily-swappable-parameters,
- -bugprone-macro-parentheses,
-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,
- -performance-no-int-to-ptr,
-readability-function-cognitive-complexity,
- -readability-identifier-length,
InheritParentConfig: true