forked from OSchip/llvm-project
[clang-format][NFC] TokenAnnotator: Use range based for
Differential Revision: https://reviews.llvm.org/D116560
This commit is contained in:
parent
918c977dc1
commit
29d8535e2b
|
@ -2550,11 +2550,8 @@ bool TokenAnnotator::mustBreakForReturnType(const AnnotatedLine &Line) const {
|
|||
}
|
||||
|
||||
void TokenAnnotator::calculateFormattingInformation(AnnotatedLine &Line) {
|
||||
for (SmallVectorImpl<AnnotatedLine *>::iterator I = Line.Children.begin(),
|
||||
E = Line.Children.end();
|
||||
I != E; ++I) {
|
||||
calculateFormattingInformation(**I);
|
||||
}
|
||||
for (AnnotatedLine *ChildLine : Line.Children)
|
||||
calculateFormattingInformation(*ChildLine);
|
||||
|
||||
Line.First->TotalLength =
|
||||
Line.First->IsMultiline ? Style.ColumnLimit
|
||||
|
|
Loading…
Reference in New Issue