Skip to content

Commit 574ad2a

Browse files
committed
[clang-format] Use prefix operator--. NFC.
1 parent 61f09bc commit 574ad2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Format/UnwrappedLineFormatter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ class LineJoiner {
330330
nsToken->TokenText == getNamespaceTokenText(I[i + 1]) &&
331331
closingLine == I[i + 1]->MatchingClosingBlockLineIndex &&
332332
I[i + 1]->Last->TotalLength < Limit;
333-
i++, closingLine--) {
333+
i++, --closingLine) {
334334
// No extra indent for compacted namespaces
335335
IndentTracker.skipLine(*I[i + 1]);
336336

@@ -346,7 +346,7 @@ class LineJoiner {
346346
nsToken->TokenText ==
347347
getMatchingNamespaceTokenText(I[i + 1], AnnotatedLines) &&
348348
openingLine == I[i + 1]->MatchingOpeningBlockLineIndex;
349-
i++, openingLine--) {
349+
i++, --openingLine) {
350350
// No space between consecutive braces
351351
I[i + 1]->First->SpacesRequiredBefore = !I[i]->Last->is(tok::r_brace);
352352

0 commit comments

Comments
 (0)