commit 1bf9a07b3e77dbb6cefeefd9febdc3db8d52a313
parent 6976ff57dda903e292af660bf0d13d05b1dd55ac
Author: someoneinjd <61791143+someoneinjd@users.noreply.github.com>
Date: Tue, 17 Jun 2025 17:19:57 +0800
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.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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,