r300043 - Rangify for loop, NFC.
Yaron Keren via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 12 03:05:49 PDT 2017
Author: yrnkrn
Date: Wed Apr 12 05:05:48 2017
New Revision: 300043
URL: http://llvm.org/viewvc/llvm-project?rev=300043&view=rev
Log:
Rangify for loop, NFC.
Modified:
cfe/trunk/lib/Sema/SemaLookup.cpp
Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=300043&r1=300042&r2=300043&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Wed Apr 12 05:05:48 2017
@@ -838,9 +838,7 @@ static bool LookupDirect(Sema &S, Lookup
// Perform lookup into this declaration context.
DeclContext::lookup_result DR = DC->lookup(R.getLookupName());
- for (DeclContext::lookup_iterator I = DR.begin(), E = DR.end(); I != E;
- ++I) {
- NamedDecl *D = *I;
+ for (NamedDecl *D : DR) {
if ((D = R.getAcceptableDecl(D))) {
R.addDecl(D);
Found = true;
More information about the cfe-commits
mailing list