[clang-tools-extra] [clang-tidy] Add AllowExplicitReferencedInitialValues to `readability-enum-initial-value` (PR #189459)

Björn Svensson via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 3 05:06:55 PDT 2026


================
@@ -34,6 +34,16 @@ enum EAll {
   EAll_c = 4,
 };
 
+enum ERef {
+  // CHECK-MESSAGES: :[[@LINE-1]]:1:  warning: initial values in enum 'ERef' are not consistent
+  // CHECK-MESSAGES-ENABLE: :[[@LINE-2]]:1: warning: initial values in enum 'ERef' are not consistent
+  ERef_a,
----------------
bjosv wrote:

Ah, yes, added it now.

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


More information about the cfe-commits mailing list