[clang] [clang-format] Add AlignConsecutiveEnums (PR #194154)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sat May 9 13:52:20 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)) {
----------------
HazardyKnusperkeks wrote:

Why the `numeric_constant`?

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


More information about the cfe-commits mailing list