================
@@ -548,7 +557,8 @@ static unsigned AlignTokens(const FormatStyle &Style, F
&&Matches,
unsigned I = StartAt;
const auto E = Changes.size();
- for (; I != E; ++I) {
+ for (const auto LoopEnd = E - (Strategy == AlignStrategy::CaseBody ? 1 : 0);
----------------
owenca wrote:
```suggestion
for (const auto LoopEnd = Strategy == AlignStrategy::CaseBody ? E - 1 : E;
```
https://github.com/llvm/llvm-project/pull/187811
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits