From 7140e86503d98e4b0f7aa65f89b47e4317a56134 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Oct 2022 13:18:34 -0400 Subject: Simplify clang-tidy configuration --- .clang-tidy | 12 ++++++++++++ benchmark/.clang-tidy | 9 +-------- include/.clang-tidy | 13 ------------- src/.clang-tidy | 9 +-------- test/.clang-tidy | 9 +-------- 5 files changed, 15 insertions(+), 37 deletions(-) create mode 100644 .clang-tidy delete mode 100644 include/.clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..83963f8 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,12 @@ +# Copyright 2020-2022 David Robillard +# SPDX-License-Identifier: CC0-1.0 OR ISC + +Checks: > + *, + -altera-*, + -hicpp-multiway-paths-covered, + -llvmlibc-*, + -readability-identifier-length, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file diff --git a/benchmark/.clang-tidy b/benchmark/.clang-tidy index 8c2dca3..839ef3b 100644 --- a/benchmark/.clang-tidy +++ b/benchmark/.clang-tidy @@ -2,18 +2,11 @@ # SPDX-License-Identifier: CC0-1.0 OR ISC Checks: > - *, -*-magic-numbers, - -altera-*, -android-cloexec-fopen, -bugprone-easily-swappable-parameters, -cert-err33-c, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, - -hicpp-multiway-paths-covered, -llvm-header-guard, - -llvmlibc-*, -performance-no-int-to-ptr, - -readability-identifier-length, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' -FormatStyle: file +InheritParentConfig: true diff --git a/include/.clang-tidy b/include/.clang-tidy deleted file mode 100644 index a644849..0000000 --- a/include/.clang-tidy +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2020-2022 David Robillard -# SPDX-License-Identifier: CC0-1.0 OR ISC - -Checks: > - *, - -altera-*, - -clang-diagnostic-unused-function, - -clang-diagnostic-unused-macros, - -hicpp-multiway-paths-covered, - -llvmlibc-*, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' -FormatStyle: file diff --git a/src/.clang-tidy b/src/.clang-tidy index 4bacd45..2f273ed 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -2,17 +2,10 @@ # SPDX-License-Identifier: CC0-1.0 OR ISC Checks: > - *, -*-magic-numbers, - -altera-*, -bugprone-easily-swappable-parameters, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, - -hicpp-multiway-paths-covered, -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 fcaf19b..4ce2491 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -2,20 +2,13 @@ # SPDX-License-Identifier: CC0-1.0 OR ISC Checks: > - *, -*-magic-numbers, - -altera-*, -bugprone-easily-swappable-parameters, -cert-err33-c, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -cppcoreguidelines-avoid-non-const-global-variables, -google-readability-casting, - -hicpp-multiway-paths-covered, -llvm-header-guard, - -llvmlibc-*, -performance-no-int-to-ptr, -readability-function-cognitive-complexity, - -readability-identifier-length, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' -FormatStyle: file +InheritParentConfig: true -- cgit v1.2.1