From e57068a1d34f82e365467c686c3e7b9f80e1ef28 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Sat, 9 Nov 2024 21:29:38 +0000 Subject: [PATCH] Disable `EnumCastOutOfRange` warning in `clang-tidy` config 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. --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-tidy b/.clang-tidy index 181d5762..3028af0e 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -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,