Skip to content

Commit acc7a7f

Browse files
committed
[clang-format] Use range-for loop. NFC.
1 parent b6baab6 commit acc7a7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Format/TokenAnnotator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4601,8 +4601,8 @@ void TokenAnnotator::printDebugInfo(const AnnotatedLine &Line) {
46014601
<< " BK=" << Tok->getBlockKind() << " P=" << Tok->SplitPenalty
46024602
<< " Name=" << Tok->Tok.getName() << " L=" << Tok->TotalLength
46034603
<< " PPK=" << Tok->getPackingKind() << " FakeLParens=";
4604-
for (unsigned i = 0, e = Tok->FakeLParens.size(); i != e; ++i)
4605-
llvm::errs() << Tok->FakeLParens[i] << "/";
4604+
for (prec::Level LParen : Tok->FakeLParens)
4605+
llvm::errs() << LParen << "/";
46064606
llvm::errs() << " FakeRParens=" << Tok->FakeRParens;
46074607
llvm::errs() << " II=" << Tok->Tok.getIdentifierInfo();
46084608
llvm::errs() << " Text='" << Tok->TokenText << "'\n";

0 commit comments

Comments
 (0)