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

Balázs Kéri via cfe-commits cfe-commits at lists.llvm.org
Thu May 29 00:03:48 PDT 2025


balazske wrote:

The check can now warn for (default) initializations that are recursively inside a type structure (members of structs, elements of arrays). In these cases it can look difficult to find the member or place where the value with enum type exists. The check now only makes a single warning for the initialization but does not add notes to find the place of the enum value. 

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


More information about the cfe-commits mailing list