From 67107f49783bdf6126e3a9a041f144b3ec681158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 19 Jul 2022 15:30:57 +0200 Subject: [PATCH] .clang-tidy: exclude some warnings Some are too verbose, others don't apply to the code base --- .clang-tidy | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 2f9fdf2765..81f2d62596 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,11 +1,17 @@ --- Checks: '*, + -*-avoid-c-arrays, + -*-uppercase-literal-suffix, + -*-magic-numbers, + -altera-id-dependent-backward-branch, + -altera-unroll-loops, -android*, -bugprone-integer-division, -cert-dcl50-cpp, -cert-env33-c, -cert-err34-c, -cert-err58-cpp, + -cert-flp30-c, -cert-msc30-c, -cert-msc50-cpp, -clang-analyzer-core.CallAndMessage, @@ -18,6 +24,7 @@ Checks: '*, -clang-analyzer-deadcode.DeadStores, -clang-analyzer-optin.cplusplus.VirtualCall, -clang-analyzer-optin.performance.Padding, + -clang-analyzer-security.FloatLoopCounter, -clang-analyzer-security.insecureAPI.strcpy, -clang-analyzer-unix.API, -clang-analyzer-unix.cstring.BadSizeArg, @@ -37,8 +44,7 @@ Checks: '*, -cppcoreguidelines-pro-type-union-access, -cppcoreguidelines-pro-type-vararg, -cppcoreguidelines-special-member-functions, - -fuchsia-default-arguments, - -fuchsia-overloaded-operator, + -fuchsia-*, -google-build-using-namespace, -google-explicit-constructor, -google-global-names-in-headers, @@ -62,6 +68,7 @@ Checks: '*, -hicpp-use-equals-delete, -hicpp-use-override, -hicpp-vararg, + -llvmlibc-*, -llvm-header-guard, -llvm-include-order, -llvm-namespace-comment, @@ -84,6 +91,7 @@ Checks: '*, -modernize-use-override, -modernize-use-trailing-return-type, -modernize-use-using, + -modernize-use-trailing-return-type, -performance-inefficient-string-concatenation, -readability-avoid-const-params-in-decls, -readability-container-size-empty,