[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
Thu Mar 21 10:53:54 PDT 2024


================
@@ -0,0 +1,46 @@
+.. 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.
+
+It causes readability issues and reduces the maintainability. When adding new
----------------
PiotrZSL wrote:

no need for " readability issues and reduces the maintainability", just say that this is about consistency.

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


More information about the cfe-commits mailing list