From 6bd53f582297574cf009ff0cfd80a1fd3a315b6b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 9 Nov 2020 19:23:08 +0100 Subject: Use separate clang-tidy configurations for implementation and tests --- .clang-tidy | 17 ----------------- src/.clang-tidy | 13 +++++++++++++ test/.clang-tidy | 9 +++++++++ 3 files changed, 22 insertions(+), 17 deletions(-) delete mode 100644 .clang-tidy create mode 100644 src/.clang-tidy create mode 100644 test/.clang-tidy diff --git a/.clang-tidy b/.clang-tidy deleted file mode 100644 index 19c7db5c..00000000 --- a/.clang-tidy +++ /dev/null @@ -1,17 +0,0 @@ -Checks: > - *, - -*-magic-numbers, - -*-uppercase-literal-suffix, - -android-cloexec-fopen, - -bugprone-branch-clone, - -bugprone-suspicious-string-compare, - -clang-analyzer-alpha.*, - -clang-analyzer-valist.Uninitialized, - -google-readability-todo, - -hicpp-signed-bitwise, - -llvm-header-guard, - -readability-else-after-return, - -readability-implicit-bool-conversion, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' -FormatStyle: file diff --git a/src/.clang-tidy b/src/.clang-tidy new file mode 100644 index 00000000..4cd5fa58 --- /dev/null +++ b/src/.clang-tidy @@ -0,0 +1,13 @@ +Checks: > + *, + -*-magic-numbers, + -*-uppercase-literal-suffix, + -bugprone-branch-clone, + -bugprone-suspicious-string-compare, + -google-readability-todo, + -hicpp-signed-bitwise, + -llvm-header-guard, + -readability-else-after-return, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file diff --git a/test/.clang-tidy b/test/.clang-tidy new file mode 100644 index 00000000..6188e22f --- /dev/null +++ b/test/.clang-tidy @@ -0,0 +1,9 @@ +Checks: > + *, + -*-magic-numbers, + -*-uppercase-literal-suffix, + -android-cloexec-fopen, + -hicpp-signed-bitwise, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file -- cgit v1.2.1