[clang] [clang][Sema] Improve `collectViableConversionCandidates` (PR #97908)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 09:43:12 PDT 2024
================
@@ -6504,29 +6504,22 @@ static void
collectViableConversionCandidates(Sema &SemaRef, Expr *From, QualType ToType,
UnresolvedSetImpl &ViableConversions,
OverloadCandidateSet &CandidateSet) {
- for (unsigned I = 0, N = ViableConversions.size(); I != N; ++I) {
- DeclAccessPair FoundDecl = ViableConversions[I];
+ for (DeclAccessPair FoundDecl : ViableConversions.pairs()) {
----------------
MagentaTreehouse wrote:
Done.
https://github.com/llvm/llvm-project/pull/97908
More information about the cfe-commits
mailing list