[clang-format][NFC] Use range based for
That's much easier to read.
Differential Revision: https://reviews.llvm.org/D115067
GitOrigin-RevId: c25536e4feed59f8a8685fac3ba225057b76a358
diff --git a/lib/Format/TokenAnnotator.cpp b/lib/Format/TokenAnnotator.cpp
index cc6d066..6b7f135 100644
--- a/lib/Format/TokenAnnotator.cpp
+++ b/lib/Format/TokenAnnotator.cpp
@@ -2373,11 +2373,9 @@
}
void TokenAnnotator::annotate(AnnotatedLine &Line) {
- for (SmallVectorImpl<AnnotatedLine *>::iterator I = Line.Children.begin(),
- E = Line.Children.end();
- I != E; ++I) {
- annotate(**I);
- }
+ for (auto &Child : Line.Children)
+ annotate(*Child);
+
AnnotatingParser Parser(Style, Line, Keywords);
Line.Type = Parser.parseLine();