[clang-tools-extra] [clang-tidy] add new check readability-enum-initial-value (PR #86129)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 26 10:52:54 PDT 2024


================
@@ -0,0 +1,75 @@
+.. title:: clang-tidy - readability-enum-initial-value
+
+readability-enum-initial-value
+==============================
+
+Detects explicit initialization of a part of enumerators in an enumeration, and
+relying on compiler to initialize the others.
----------------
PiotrZSL wrote:

Maybe:
```
Enforces consistent style for enumerators' initialization, covering three styles: none, first only, or all initialized explicitly.
```

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


More information about the cfe-commits mailing list