diff options
-rw-r--r-- | .clang-tidy | 42 | ||||
-rw-r--r-- | src/.clang-tidy | 23 | ||||
-rw-r--r-- | test/.clang-tidy | 33 | ||||
-rw-r--r-- | tools/.clang-tidy | 18 |
4 files changed, 49 insertions, 67 deletions
diff --git a/.clang-tidy b/.clang-tidy index 4b2fe1e..02314a8 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -3,42 +3,14 @@ Checks: > *, - -*-magic-numbers, - -*-uppercase-literal-suffix, -altera-*, - -android-cloexec-fopen, - -bugprone-branch-clone, -bugprone-easily-swappable-parameters, - -bugprone-macro-parentheses, - -bugprone-narrowing-conversions, - -bugprone-not-null-terminated-result, - -bugprone-reserved-identifier, - -bugprone-suspicious-string-compare, - -cert-dcl37-c, - -cert-dcl51-cpp, - -cert-err33-c, - -cert-err34-c, - -clang-analyzer-alpha.*, - -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, - -clang-analyzer-valist.Uninitialized, - -concurrency-mt-unsafe, - -cppcoreguidelines-avoid-non-const-global-variables, - -cppcoreguidelines-macro-usage, - -cppcoreguidelines-narrowing-conversions, - -google-readability-todo, - -hicpp-multiway-paths-covered, - -hicpp-signed-bitwise, - -llvm-header-guard, -llvmlibc-*, - -misc-no-recursion, - -misc-non-private-member-variables-in-classes, - -misc-unused-parameters, - -modernize-use-trailing-return-type, - -performance-no-int-to-ptr, - -readability-function-cognitive-complexity, - -readability-identifier-length, - -readability-implicit-bool-conversion, - -readability-suspicious-call-argument, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' +CheckOptions: + - key: hicpp-uppercase-literal-suffix.NewSuffixes + value: 'L;U;UL;ULL' + - key: readability-uppercase-literal-suffix.NewSuffixes + value: 'L;U;UL;ULL' FormatStyle: file +HeaderFilterRegex: '.*/lilv/[^/]+.h' +WarningsAsErrors: '*' diff --git a/src/.clang-tidy b/src/.clang-tidy new file mode 100644 index 0000000..5bf8761 --- /dev/null +++ b/src/.clang-tidy @@ -0,0 +1,23 @@ +# Copyright 2020-2022 David Robillard <d@drobilla.net> +# SPDX-License-Identifier: 0BSD OR ISC + +Checks: > + -*-magic-numbers, + -*-uppercase-literal-suffix, + -android-cloexec-fopen, + -bugprone-branch-clone, + -bugprone-narrowing-conversions, + -bugprone-suspicious-string-compare, + -cert-err33-c, + -cert-err34-c, + -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, + -clang-analyzer-valist.Uninitialized, + -concurrency-mt-unsafe, + -cppcoreguidelines-narrowing-conversions, + -google-readability-todo, + -hicpp-multiway-paths-covered, + -hicpp-signed-bitwise, + -readability-function-cognitive-complexity, + -readability-identifier-length, + -readability-suspicious-call-argument, +InheritParentConfig: true diff --git a/test/.clang-tidy b/test/.clang-tidy index 6cd0aff..d359da0 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -2,51 +2,20 @@ # SPDX-License-Identifier: 0BSD OR ISC Checks: > - *, -*-else-after-return, -*-magic-numbers, - -*-uppercase-literal-suffix, - -*-vararg, - -altera-*, -android-cloexec-fopen, - -bugprone-assert-side-effect, -bugprone-branch-clone, - -bugprone-easily-swappable-parameters, - -bugprone-macro-parentheses, -bugprone-narrowing-conversions, - -bugprone-not-null-terminated-result, - -bugprone-reserved-identifier, -bugprone-suspicious-string-compare, - -cert-dcl37-c, - -cert-dcl50-cpp, - -cert-dcl51-cpp, -cert-err33-c, - -cert-err34-c, - -clang-analyzer-alpha.*, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -concurrency-mt-unsafe, -cppcoreguidelines-avoid-non-const-global-variables, - -cppcoreguidelines-macro-usage, -cppcoreguidelines-narrowing-conversions, - -cppcoreguidelines-pro-bounds-array-to-pointer-decay, - -fuchsia-overloaded-operator, - -google-explicit-constructor, - -google-readability-todo, - -hicpp-explicit-conversions, -hicpp-multiway-paths-covered, - -hicpp-no-array-decay, -hicpp-signed-bitwise, - -llvm-header-guard, - -llvmlibc-*, - -misc-no-recursion, - -misc-non-private-member-variables-in-classes, - -misc-unused-parameters, - -modernize-return-braced-init-list, - -modernize-use-trailing-return-type, -readability-function-cognitive-complexity, -readability-identifier-length, - -readability-implicit-bool-conversion, -readability-suspicious-call-argument, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' -FormatStyle: file +InheritParentConfig: true diff --git a/tools/.clang-tidy b/tools/.clang-tidy new file mode 100644 index 0000000..c642a20 --- /dev/null +++ b/tools/.clang-tidy @@ -0,0 +1,18 @@ +# Copyright 2020-2022 David Robillard <d@drobilla.net> +# SPDX-License-Identifier: 0BSD OR ISC + +Checks: > + -*-magic-numbers, + -*-uppercase-literal-suffix, + -android-cloexec-fopen, + -bugprone-easily-swappable-parameters, + -bugprone-narrowing-conversions, + -cert-err33-c, + -cert-err34-c, + -cppcoreguidelines-avoid-non-const-global-variables, + -cppcoreguidelines-narrowing-conversions, + -hicpp-signed-bitwise, + -misc-no-recursion, + -readability-function-cognitive-complexity, + -readability-identifier-length, +InheritParentConfig: true |