Browse Source

Use separate clang-tidy configurations for headers and tests

zrythm_meson
David Robillard 2 years ago
parent
commit
bf23f48fe4
  1. 3
      .clang-tidy
  2. 7
      include/.clang-tidy
  3. 12
      tests/.clang-tidy

3
.clang-tidy

@ -4,9 +4,10 @@ Checks: > @@ -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: '*'

7
include/.clang-tidy

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
Checks: >
*,
-clang-diagnostic-unused-macros,
-llvmlibc-*,
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: file

12
tests/.clang-tidy

@ -0,0 +1,12 @@ @@ -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
Loading…
Cancel
Save