diff options
author | David Robillard <d@drobilla.net> | 2021-01-01 20:46:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-01 20:46:54 +0100 |
commit | bf23f48fe4ccf519bde3ea30bf3faa753b236c74 (patch) | |
tree | e7b100cad7dae75188e8113791c5672a282766ef | |
parent | 165003b95020387d5df953df7a2844548739e752 (diff) | |
download | sratom-bf23f48fe4ccf519bde3ea30bf3faa753b236c74.tar.gz sratom-bf23f48fe4ccf519bde3ea30bf3faa753b236c74.tar.bz2 sratom-bf23f48fe4ccf519bde3ea30bf3faa753b236c74.zip |
Use separate clang-tidy configurations for headers and tests
-rw-r--r-- | .clang-tidy | 3 | ||||
-rw-r--r-- | include/.clang-tidy | 7 | ||||
-rw-r--r-- | tests/.clang-tidy | 12 |
3 files changed, 21 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy index 7d10eb6..40c511c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -4,9 +4,10 @@ Checks: > -*-uppercase-literal-suffix, -bugprone-suspicious-string-compare, -cert-err34-c, + -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -clang-analyzer-unix.Malloc, - -clang-diagnostic-nullable-to-nonnull-conversion, -hicpp-signed-bitwise, + -llvm-header-guard, -llvmlibc-*, -misc-no-recursion, WarningsAsErrors: '*' diff --git a/include/.clang-tidy b/include/.clang-tidy new file mode 100644 index 0000000..a01dfba --- /dev/null +++ b/include/.clang-tidy @@ -0,0 +1,7 @@ +Checks: > + *, + -clang-diagnostic-unused-macros, + -llvmlibc-*, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file diff --git a/tests/.clang-tidy b/tests/.clang-tidy new file mode 100644 index 0000000..0b8f64b --- /dev/null +++ b/tests/.clang-tidy @@ -0,0 +1,12 @@ +Checks: > + *, + -*-magic-numbers, + -*-uppercase-literal-suffix, + -bugprone-suspicious-string-compare, + -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, + -hicpp-signed-bitwise, + -llvm-header-guard, + -llvmlibc-*, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file |