[clang-tools-extra] [clang-tidy] Add check 'bugprone-invalid-enum-default-initialization' (PR #136823)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 23 07:02:56 PDT 2025


vbvictor wrote:

I wonder if behavior of this check should be an extension to [optin.core.EnumCastOutOfRange](https://clang.llvm.org/docs/analyzer/checkers.html#optin-core-enumcastoutofrange). Sure, we don't have `static_cast` here but it's still considered as "cast out of range"?

https://github.com/llvm/llvm-project/pull/136823


More information about the cfe-commits mailing list