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.
This commit is contained in:
someoneinjd
2025-06-17 17:19:57 +08:00
committed by GitHub
parent 6976ff57dd
commit 1bf9a07b3e

View File

@ -18,6 +18,7 @@ Checks: >
-bugprone-not-null-terminated-result, -bugprone-not-null-terminated-result,
-bugprone-suspicious-memory-comparison, -bugprone-suspicious-memory-comparison,
-bugprone-switch-missing-default-case, -bugprone-switch-missing-default-case,
-bugprone-tagged-union-member-count,
-cert-env33-c, -cert-env33-c,
-cert-err33-c, -cert-err33-c,
-cert-err34-c, -cert-err34-c,
@ -63,6 +64,7 @@ Checks: >
Aliases. These are just duplicates of other warnings and should always be ignored, Aliases. These are just duplicates of other warnings and should always be ignored,
-bugprone-narrowing-conversions, -bugprone-narrowing-conversions,
-cert-arr39-c,
-cert-dcl37-c, -cert-dcl37-c,
-cert-dcl51-cpp, -cert-dcl51-cpp,
-cert-exp42-c, -cert-exp42-c,