From 96155fbd07774442c596fac1e1c5a71cdf0c2c21 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 10 Dec 2022 12:12:14 -0500 Subject: Make clang-tidy configuration clean when run via meson --- .clang-tidy | 5 +++-- src/.clang-tidy | 2 ++ test/.clang-tidy | 2 -- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index eaf6ac95..8a56f512 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -6,6 +6,7 @@ Checks: > -altera-*, -llvmlibc-*, -readability-identifier-length, -WarningsAsErrors: '*' -HeaderFilterRegex: '.*' + -clang-diagnostic-unused-macros, FormatStyle: file +HeaderFilterRegex: '.*/serd/.*\.h' +WarningsAsErrors: '*' diff --git a/src/.clang-tidy b/src/.clang-tidy index 331ec702..8f408ddc 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -6,6 +6,8 @@ Checks: > -bugprone-easily-swappable-parameters, -cert-err33-c, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, + -clang-analyzer-valist.Uninitialized, + -clang-diagnostic-unused-function, -concurrency-mt-unsafe, -google-readability-todo, -hicpp-multiway-paths-covered, diff --git a/test/.clang-tidy b/test/.clang-tidy index 4450bf3b..9710cb77 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -6,11 +6,9 @@ Checks: > -android-cloexec-fopen, -bugprone-easily-swappable-parameters, -cert-err33-c, - -clang-analyzer-nullability.NullabilityBase, -clang-analyzer-nullability.NullableDereferenced, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -concurrency-mt-unsafe, - -cppcoreguidelines-avoid-non-const-global-variables, -hicpp-signed-bitwise, -readability-function-cognitive-complexity, InheritParentConfig: true -- cgit v1.2.1