[clang] [clang-format] Merge case alignment into AlignTokens (PR #187811)

via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 21 02:08:46 PDT 2026


================
@@ -770,7 +796,7 @@ void WhitespaceManager::alignConsecutiveMacros() {
     return Current->endsSequence(tok::identifier, tok::pp_define);
   };
 
-  AlignTokens<decltype(AlignMacrosMatches) &, /*SimpleCheck=*/true>(
+  AlignTokens<decltype(AlignMacrosMatches) &, AlignStrategy::Macros>(
       Style, AlignMacrosMatches, Changes, 0, Style.AlignConsecutiveMacros);
----------------
owenca wrote:

```suggestion
  AlignTokens(Style, AlignMacrosMatches, Changes, 0,
              Style.AlignConsecutiveMacros, /*RightJustify=*/false,
              AlignStrategy::Macros);
```

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


More information about the cfe-commits mailing list