mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
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:
@ -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,
|
||||||
|
Reference in New Issue
Block a user