From 4de7c3826d810e2e3f7f404dc8037ab445d6f2f0 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Mon, 11 May 2026 20:03:22 +1000 Subject: clang-tidy: Suppress some new unhelpful new warnings clang-tidy 22.1.4 (or thereabouts) introduced some new warning categories that while theoretically useful, trip in too many silly occasions to be useful. Suppress them. Signed-off-by: David Gibson Reviewed-by: Laurent Vivier Signed-off-by: Stefano Brivio --- .clang-tidy | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 773121f..9ba43bf 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -86,6 +86,17 @@ Checks: # #if directives. Don't insist on #ifdef instead. - "-readability-use-concise-preprocessor-directives" + # clang-tidy, at least version 22.1.4 seems to generate a heap of + # false positives for this warning, asking us to make things + # static that are already used in other modules. + - "-misc-use-internal-linkage" + + # Warning about bool/int conversions could sometimes be useful. + # Unfortunately (as of clang-tidy 22.1.4) it warns in some really + # dumb situations, like not allowing !, && etc. on bool inputs to + # be treated directly as a bool. + - "-readability-implicit-bool-conversion" + WarningsAsErrors: "*" HeaderFileExtensions: - h -- cgit v1.2.3