[clang] [clang-format] Add AlignConsecutiveEnums (PR #194154)
via cfe-commits
cfe-commits at lists.llvm.org
Sat May 9 19:45:15 PDT 2026
================
@@ -1835,6 +1844,10 @@ class AnnotatingParser {
// In TableGen, there must be a value after "=";
if (Style.isTableGen() && !parseTableGenValue())
return false;
+ if ((CurrentToken && CurrentToken->is(tok::numeric_constant)) &&
+ (!Scopes.empty() && Scopes.back() == ST_Enum)) {
----------------
aaronsms wrote:
Okay, `numeric_constant` is too restrictive, we shouldn't exclude constant expressions. Will adjust.
https://github.com/llvm/llvm-project/pull/194154
More information about the cfe-commits
mailing list