From 1bf9a07b3e77dbb6cefeefd9febdc3db8d52a313 Mon Sep 17 00:00:00 2001 From: someoneinjd <61791143+someoneinjd@users.noreply.github.com> Date: Tue, 17 Jun 2025 17:19:57 +0800 Subject: [PATCH] build: slience new clang-tidy warnings #34539 Problem: The new cert-arr39-c and bugprone-tagged-union-member-count checks introduced in clang-tidy 20 fail on Neovim's codebase, even though the code is correct. Solution: Disable these two checks by modifying the .clang-tidy configuration file. --- .clang-tidy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 28115ae0b1..5b5e177ce2 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -18,6 +18,7 @@ Checks: > -bugprone-not-null-terminated-result, -bugprone-suspicious-memory-comparison, -bugprone-switch-missing-default-case, + -bugprone-tagged-union-member-count, -cert-env33-c, -cert-err33-c, -cert-err34-c, @@ -63,6 +64,7 @@ Checks: > Aliases. These are just duplicates of other warnings and should always be ignored, -bugprone-narrowing-conversions, + -cert-arr39-c, -cert-dcl37-c, -cert-dcl51-cpp, -cert-exp42-c,