Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 36600cf

Browse files
committed
Rangify for loop, NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224434 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 21cac0e commit 36600cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Parse/ParseAST.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,8 @@ void clang::ParseAST(Sema &S, bool PrintStats, bool SkipFunctionBodies) {
146146
}
147147

148148
// Process any TopLevelDecls generated by #pragma weak.
149-
for (SmallVectorImpl<Decl *>::iterator
150-
I = S.WeakTopLevelDecls().begin(),
151-
E = S.WeakTopLevelDecls().end(); I != E; ++I)
152-
Consumer->HandleTopLevelDecl(DeclGroupRef(*I));
149+
for (Decl *D : S.WeakTopLevelDecls())
150+
Consumer->HandleTopLevelDecl(DeclGroupRef(D));
153151

154152
Consumer->HandleTranslationUnit(S.getASTContext());
155153

0 commit comments

Comments
 (0)