diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-11 20:03:22 +1000 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-12 00:04:11 +0200 |
| commit | 4de7c3826d810e2e3f7f404dc8037ab445d6f2f0 (patch) | |
| tree | 3a94ad464967d1d7148660266e074bff008a8bc7 | |
| parent | 97e478b40d4154cf007641f1e247cc3fef8392ad (diff) | |
| download | passt-4de7c3826d810e2e3f7f404dc8037ab445d6f2f0.tar passt-4de7c3826d810e2e3f7f404dc8037ab445d6f2f0.tar.gz passt-4de7c3826d810e2e3f7f404dc8037ab445d6f2f0.tar.bz2 passt-4de7c3826d810e2e3f7f404dc8037ab445d6f2f0.tar.lz passt-4de7c3826d810e2e3f7f404dc8037ab445d6f2f0.tar.xz passt-4de7c3826d810e2e3f7f404dc8037ab445d6f2f0.tar.zst passt-4de7c3826d810e2e3f7f404dc8037ab445d6f2f0.zip | |
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 <david@gibson.dropbear.id.au>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
| -rw-r--r-- | .clang-tidy | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
