Skip to content

Commit

Permalink
Disable EnumCastOutOfRange warning in clang-tidy config
Browse files Browse the repository at this point in the history
The notion of "out of range" doesn't apply to many uses of `enum`
in this codebase (e.g. those with bit flag values), so all this
warning does is spam false positives.
  • Loading branch information
craigbarnes committed Nov 9, 2024
1 parent 3be257e commit e57068a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Checks: >
-clang-diagnostic-pointer-sign,
-clang-diagnostic-sign-compare,
-clang-analyzer-core.NonNullParamChecker,
-clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-analyzer-unix.Malloc,
-clang-analyzer-valist.Uninitialized,
Expand Down

0 comments on commit e57068a

Please sign in to comment.