diff options
author | David Robillard <d@drobilla.net> | 2022-10-23 21:48:40 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-23 21:48:40 -0400 |
commit | 83cd85ce89590ab06e78a3ff0adf10f636c4103e (patch) | |
tree | b9ae3f58072ea32ffc2cb5e23a1f12ec380fefde | |
parent | 2c1e022ebbb2619b6e497a360480294bb950e20e (diff) | |
download | serd-83cd85ce89590ab06e78a3ff0adf10f636c4103e.tar.gz serd-83cd85ce89590ab06e78a3ff0adf10f636c4103e.tar.bz2 serd-83cd85ce89590ab06e78a3ff0adf10f636c4103e.zip |
Simplify clang-tidy configuration
-rw-r--r-- | .clang-tidy | 12 | ||||
-rw-r--r-- | src/.clang-tidy | 9 | ||||
-rw-r--r-- | test/.clang-tidy | 10 |
3 files changed, 15 insertions, 16 deletions
diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..e7f1ca66 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,12 @@ +# Copyright 2020-2022 David Robillard <d@drobilla.net> +# SPDX-License-Identifier: 0BSD OR ISC + +Checks: > + *, + -*-uppercase-literal-suffix, + -altera-*, + -llvmlibc-*, + -readability-identifier-length, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file diff --git a/src/.clang-tidy b/src/.clang-tidy index 58879c35..09052de3 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -2,10 +2,7 @@ # SPDX-License-Identifier: 0BSD OR ISC Checks: > - *, -*-magic-numbers, - -*-uppercase-literal-suffix, - -altera-*, -bugprone-branch-clone, -bugprone-easily-swappable-parameters, -bugprone-reserved-identifier, @@ -17,10 +14,6 @@ Checks: > -hicpp-multiway-paths-covered, -hicpp-signed-bitwise, -llvm-header-guard, - -llvmlibc-*, -misc-no-recursion, -readability-function-cognitive-complexity, - -readability-identifier-length, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' -FormatStyle: file +InheritParentConfig: true diff --git a/test/.clang-tidy b/test/.clang-tidy index 007a0847..2e3f5b1d 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -1,10 +1,8 @@ # Copyright 2020-2022 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC + Checks: > - *, -*-magic-numbers, - -*-uppercase-literal-suffix, - -altera-*, -android-cloexec-fopen, -bugprone-easily-swappable-parameters, -cert-err33-c, @@ -13,9 +11,5 @@ Checks: > -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -cppcoreguidelines-avoid-non-const-global-variables, -hicpp-signed-bitwise, - -llvmlibc-*, -readability-function-cognitive-complexity, - -readability-identifier-length, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' -FormatStyle: file +InheritParentConfig: true |