summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy8
-rw-r--r--meson/suppressions/meson.build1
2 files changed, 8 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index c6b7e25..ff7e030 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -4,6 +4,7 @@ Checks: >
-*-avoid-goto,
-*-braces-around-statements,
-*-else-after-return,
+ -*-macro-to-enum,
-*-magic-numbers,
-*-member-init,
-*-named-parameter,
@@ -16,10 +17,12 @@ Checks: >
-altera-*,
-android-cloexec-fopen,
-bugprone-branch-clone,
+ -bugprone-casting-through-void,
-bugprone-easily-swappable-parameters,
-bugprone-incorrect-roundings,
-bugprone-integer-division,
-bugprone-macro-parentheses,
+ -bugprone-multi-level-implicit-pointer-conversion,
-bugprone-reserved-identifier,
-cert-dcl21-cpp,
-cert-dcl37-c,
@@ -31,6 +34,7 @@ Checks: >
-cert-msc50-cpp,
-cert-msc51-cpp,
-clang-analyzer-cplusplus.NewDeleteLeaks,
+ -clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-analyzer-unix.Malloc,
-concurrency-mt-unsafe,
@@ -63,10 +67,10 @@ Checks: >
-misc-non-private-member-variables-in-classes,
-misc-use-anonymous-namespace,
-modernize-loop-convert,
- -modernize-macro-to-enum,
-modernize-raw-string-literal,
-modernize-use-trailing-return-type,
-modernize-use-using,
+ -performance-enum-size,
-performance-faster-string-find,
-readability-const-return-type,
-readability-container-size-empty,
@@ -75,6 +79,8 @@ Checks: >
-readability-implicit-bool-conversion,
-readability-inconsistent-declaration-parameter-name,
-readability-make-member-function-const,
+ -readability-redundant-casting,
+ -readability-redundant-inline-specifier,
-readability-simplify-boolean-expr,
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index 6e8868e..b10dbef 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -21,6 +21,7 @@ clang_common_suppressions = [
'-Wno-shadow',
'-Wno-shorten-64-to-32',
'-Wno-sign-conversion',
+ '-Wno-switch-default',
'-Wno-switch-enum',
'-Wno-unused-macros',
'-Wno-used-but-marked-unused',