================
@@ -595,82 +605,131 @@ static unsigned AlignTokens(const FormatStyle &Style, F 
&&Matches,
     if (!Matches(CurrentChange))
       continue;
 
+    const auto IndexToAlign = Strategy == AlignStrategy::CaseBody ? I + 1 : I;
+    const auto &ChangeToAlign = Strategy == AlignStrategy::CaseBody
+                                    ? Changes[IndexToAlign]
+                                    : CurrentChange;
----------------
owenca wrote:

```suggestion
    const auto &ChangeToAlign = Changes[IndexToAlign];
```

https://github.com/llvm/llvm-project/pull/187811
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to