From f454b9df2d753fac1f48b0f70313e3655bd5a202 Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Mon, 11 Mar 2024 14:50:21 +0400 Subject: [PATCH] Disabled noisy warnings. --- .clang-tidy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index fbc80fc..26a5f48 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -2,10 +2,12 @@ # Exceptions: # bugprone-branch-clone is too noisy in parsing code. +# bugprone-easily-swappable-parameters is too noisy. # cert-dcl50-cpp is triggered by hz::string_sprintf()'s C style. # clang-analyzer-deadcode.DeadStores is too noisy. # clang-analyzer-cplusplus.NewDeleteLeaks doesn't understand Gtkmm memory management. # cppcoreguidelines-avoid-magic-numbers, readability-magic-numbers is triggered by attribute database. +# cppcoreguidelines-avoid-do-while is triggered in DBG macros. # cppcoreguidelines-owning-memory doesn't support deleting Gtkmm objects. # cppcoreguidelines-pro-type-cstyle-cast needed by GTK C casts. # cppcoreguidelines-pro-type-reinterpret-cast is needed by WinAPI-facing functions @@ -28,6 +30,7 @@ Checks: > -boost-*, bugprone-*, -bugprone-branch-clone, + -bugprone-easily-swappable-parameters, cert-*, -cert-dcl50-cpp, clang-analyzer-*, @@ -36,6 +39,7 @@ Checks: > concurrency-*, cppcoreguidelines-*, -cppcoreguidelines-avoid-magic-numbers, + -cppcoreguidelines-avoid-do-while, -cppcoreguidelines-owning-memory, -cppcoreguidelines-pro-bounds-array-to-pointer-decay, -cppcoreguidelines-pro-type-cstyle-cast,