From 24327302723df7c9d32d9a540cd1f586489ea616 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 9 Sep 2022 13:10:43 -0400 Subject: Clean up clang-tidy configuration --- .clang-tidy | 30 ------------------------------ plugins/.clang-tidy | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 30 deletions(-) delete mode 100644 .clang-tidy create mode 100644 plugins/.clang-tidy diff --git a/.clang-tidy b/.clang-tidy deleted file mode 100644 index 3842665..0000000 --- a/.clang-tidy +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020-2022 David Robillard -# SPDX-License-Identifier: 0BSD OR ISC - -Checks: > - *, - -*-else-after-return, - -*-magic-numbers, - -*-uppercase-literal-suffix, - -altera-*, - -bugprone-easily-swappable-parameters, - -bugprone-macro-parentheses, - -bugprone-suspicious-include, - -bugprone-suspicious-string-compare, - -cert-err33-c, - -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, - -clang-diagnostic-empty-translation-unit, - -clang-diagnostic-unused-function, - -clang-diagnostic-unused-macros, - -hicpp-signed-bitwise, - -llvm-header-guard, - -llvmlibc-*, - -misc-unused-parameters, - -modernize-redundant-void-arg, - -modernize-use-trailing-return-type, - -performance-no-int-to-ptr, - -readability-function-cognitive-complexity, - -readability-identifier-length, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' -FormatStyle: file diff --git a/plugins/.clang-tidy b/plugins/.clang-tidy new file mode 100644 index 0000000..b1adcb3 --- /dev/null +++ b/plugins/.clang-tidy @@ -0,0 +1,22 @@ +# Copyright 2020-2022 David Robillard +# SPDX-License-Identifier: 0BSD OR ISC + +Checks: > + *, + -*-magic-numbers, + -*-narrowing-conversions, + -*-uppercase-literal-suffix, + -altera-*, + -bugprone-easily-swappable-parameters, + -bugprone-macro-parentheses, + -cert-err33-c, + -hicpp-signed-bitwise, + -llvm-header-guard, + -llvmlibc-*, + -misc-unused-parameters, + -performance-no-int-to-ptr, + -readability-function-cognitive-complexity, + -readability-identifier-length, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file -- cgit v1.2.1