diff options
-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 |