[clang-tools-extra] [clang-tidy] New Option Invalid Enum Default Initialization (PR #159220)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 17 06:47:59 PDT 2025
================
@@ -70,3 +70,8 @@ enum type) are set to 0.
enum Enum1 Array3[2][2] = {{Enum1_A, Enum1_A}}; // warn: elements of second array are initialized to 0
struct Struct1 S1 = {1}; // warn: element 'b' is initialized to 0
+
+.. option:: IgnoredContainers
+
+Semicolon-separated list of enums regexp for which this check won't be
+enforced. Default is `::std::errc`.
----------------
EugeneZelenko wrote:
Should be indented.
https://github.com/llvm/llvm-project/pull/159220
More information about the cfe-commits
mailing list