[clang] 455c9ef - [clang][NFC] Use range-for loop in SemaLookup.cpp
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 17 00:49:37 PDT 2023
Author: Timm Bäder
Date: 2023-04-17T09:49:04+02:00
New Revision: 455c9efb41de101eaf5e3d4d521097428b5c75d3
URL: https://github.com/llvm/llvm-project/commit/455c9efb41de101eaf5e3d4d521097428b5c75d3
DIFF: https://github.com/llvm/llvm-project/commit/455c9efb41de101eaf5e3d4d521097428b5c75d3.diff
LOG: [clang][NFC] Use range-for loop in SemaLookup.cpp
Added:
Modified:
clang/lib/Sema/SemaLookup.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 2413f31744c5..a495d3ca1989 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/lib/Sema/SemaLookup.cpp
@@ -3761,8 +3761,8 @@ Sema::LookupLiteralOperator(Scope *S, LookupResult &R,
// operator template, but not both.
if (FoundRaw && FoundTemplate) {
Diag(R.getNameLoc(), diag::err_ovl_ambiguous_call) << R.getLookupName();
- for (LookupResult::iterator I = R.begin(), E = R.end(); I != E; ++I)
- NoteOverloadCandidate(*I, (*I)->getUnderlyingDecl()->getAsFunction());
+ for (const NamedDecl *D : R)
+ NoteOverloadCandidate(D, D->getUnderlyingDecl()->getAsFunction());
return LOLR_Error;
}
More information about the cfe-commits
mailing list