[clang-tools-extra] [clang-tidy] Add AllowExplicitReferencedInitialValues to `readability-enum-initial-value` (PR #189459)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 10 23:31:37 PDT 2026
=?utf-8?q?Björn?= Svensson <bjorn.a.svensson at est.tech>,
=?utf-8?q?Björn?= Svensson <bjorn.a.svensson at est.tech>,
=?utf-8?q?Björn?= Svensson <bjorn.a.svensson at est.tech>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/189459 at github.com>
================
@@ -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,
----------------
vbvictor wrote:
Same in other test files
https://github.com/llvm/llvm-project/pull/189459
More information about the cfe-commits
mailing list