Lines Matching refs:Best

1599       if (Cand->Best)
3647 OverloadCandidateSet::iterator Best;
3649 CandidateSet.BestViableFunction(S, From->getBeginLoc(), Best)) {
3653 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function);
3659 User.FoundConversionFunction = Best->FoundDecl;
3827 OverloadCandidateSet::iterator Best;
3829 CandidateSet.BestViableFunction(S, From->getBeginLoc(), Best)) {
3834 = dyn_cast<CXXConstructorDecl>(Best->Function)) {
3845 if (Best->Conversions[0].isEllipsis())
3848 User.Before = Best->Conversions[0].Standard;
3854 User.FoundConversionFunction = Best->FoundDecl;
3861 = dyn_cast<CXXConversionDecl>(Best->Function)) {
3868 User.Before = Best->Conversions[0].Standard;
3871 User.FoundConversionFunction = Best->FoundDecl;
3883 User.After = Best->FinalConversion;
4953 OverloadCandidateSet::iterator Best;
4954 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best)) {
4966 if (!Best->FinalConversion.DirectBinding)
4970 ICS.UserDefined.Before = Best->Conversions[0].Standard;
4971 ICS.UserDefined.After = Best->FinalConversion;
4973 ICS.UserDefined.ConversionFunction = Best->Function;
4974 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl;
4985 if (Cand->Best)
6647 OverloadCandidateSet::iterator Best;
6648 switch (CandidateSet.BestViableFunction(*this, Loc, Best)) {
6652 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess());
10665 /// \param Best If overload resolution was successful or found a deleted
10666 /// function, \p Best points to the candidate function found.
10671 iterator &Best) {
10708 Best = end();
10710 Cand->Best = false;
10712 if (Best == end() ||
10713 isBetterOverloadCandidate(S, *Cand, *Best, Loc, Kind))
10714 Best = Cand;
10720 Best = end();
10726 if (Best == end())
10732 PendingBest.push_back(&*Best);
10733 Best->Best = true;
10740 if (Cand->Viable && !Cand->Best &&
10743 Cand->Best = true;
10749 Best = end();
10755 if (Best == end())
10758 // Best is the best viable function.
10759 if (Best->Function && Best->Function->isDeleted())
10763 S.diagnoseEquivalentInternalLinkageDeclarations(Loc, Best->Function,
12393 if (!Cand->Best)
12753 auto Best = Matches.begin();
12755 if (isBetterCandidate(I->second, Best->second))
12756 Best = I;
12758 const FunctionDecl *BestFn = Best->second;
12768 Matches[0] = *Best;
13566 OverloadCandidateSet::iterator Best;
13568 Candidates.BestViableFunction(SemaRef, FnLoc, Best);
13579 R.addDecl(Best->FoundDecl.getDecl(), Best->FoundDecl.getAccess());
13622 SemaRef.Diag(Best->Function->getLocation(),
13626 SemaRef.Diag(Best->Function->getLocation(),
13633 SemaRef.Diag(Best->Function->getLocation(),
13823 OverloadCandidateSet::iterator Best;
13825 CandidateSet->BestViableFunction(*this, Fn->getBeginLoc(), Best) ==
13849 OverloadCandidateSet::iterator *Best) {
13870 if (Best && *Best != CS.end())
13871 ConsiderCandidate(**Best);
13900 OverloadCandidateSet::iterator *Best,
13905 FunctionDecl *FDecl = (*Best)->Function;
13906 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl);
13910 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
13915 /*IsExecConfig=*/false, (*Best)->IsADLCandidate);
13969 FunctionDecl *FDecl = (*Best)->Function;
13971 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
13976 /*IsExecConfig=*/false, (*Best)->IsADLCandidate);
13984 chooseRecoveryType(*CandidateSet, Best));
14025 OverloadCandidateSet::iterator Best;
14027 CandidateSet.BestViableFunction(*this, Fn->getBeginLoc(), Best);
14033 const FunctionDecl *FDecl = Best->Function;
14046 ExecConfig, &CandidateSet, &Best,
14224 OverloadCandidateSet::iterator Best;
14225 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
14228 FunctionDecl *FnDecl = Best->Function;
14237 CheckMemberOperatorAccess(OpLoc, Input, nullptr, Best->FoundDecl);
14244 Input, /*Qualifier=*/nullptr, Best->FoundDecl, Method);
14262 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl,
14276 CurFPFeatureOverrides(), Best->IsADLCandidate);
14290 Input, Best->BuiltinParamTypes[0], Best->Conversions[0], AA_Passing,
14520 OverloadCandidateSet::iterator Best;
14521 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
14524 FunctionDecl *FnDecl = Best->Function;
14526 bool IsReversed = Best->isReversed();
14545 if (Best->RewriteKind && ChosenOp == OO_EqualEqual &&
14571 Best->Conversions[ArgIdx]) ==
14622 // Best->Access is only meaningful for class members.
14623 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl);
14632 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method);
14665 Best->FoundDecl, Base,
14683 CurFPFeatureOverrides(), Best->IsADLCandidate);
14723 if ((Best->RewriteKind & CRK_DifferentOperator) ||
14753 if (Best->RewriteKind != CRK_None)
14762 Args[0], Best->BuiltinParamTypes[0], Best->Conversions[0],
14769 Args[1], Best->BuiltinParamTypes[1], Best->Conversions[1],
14845 if (isImplicitlyDeleted(Best->Function)) {
14846 FunctionDecl *DeletedFD = Best->Function;
14865 << getOperatorSpelling(Best->Function->getDeclName()
15065 OverloadCandidateSet::iterator Best;
15066 switch (CandidateSet.BestViableFunction(*this, LLoc, Best)) {
15069 FunctionDecl *FnDecl = Best->Function;
15075 CheckMemberOperatorAccess(LLoc, Args[0], ArgExpr, Best->FoundDecl);
15091 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method);
15107 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates,
15135 Args[0], Best->BuiltinParamTypes[0], Best->Conversions[0],
15142 Args[1], Best->BuiltinParamTypes[1], Best->Conversions[1],
15366 OverloadCandidateSet::iterator Best;
15369 Best)) {
15371 Method = cast<CXXMethodDecl>(Best->Function);
15372 FoundDecl = Best->FoundDecl;
15373 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl);
15374 if (DiagnoseUseOfOverloadedDecl(Best->FoundDecl, UnresExpr->getNameLoc()))
15413 return BuildRecoveryExpr(chooseRecoveryType(CandidateSet, &Best));
15641 OverloadCandidateSet::iterator Best;
15643 Best)) {
15682 if (Best == CandidateSet.end())
15687 if (Best->Function == nullptr) {
15692 Best->Conversions[0].UserDefined.ConversionFunction);
15695 Best->FoundDecl);
15696 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc))
15698 assert(Conv == Best->FoundDecl.getDecl() &&
15706 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl,
15718 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl);
15723 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
15735 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
15755 Object.get(), /*Qualifier=*/nullptr, Best->FoundDecl, Method);
15842 OverloadCandidateSet::iterator Best;
15843 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
15887 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl);
15890 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function);
15899 Base, /*Qualifier=*/nullptr, Best->FoundDecl, Method);
15906 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
15947 OverloadCandidateSet::iterator Best;
15948 switch (CandidateSet.BestViableFunction(*this, UDSuffixLoc, Best)) {
15969 FunctionDecl *FD = Best->Function;
15970 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl,
16055 OverloadCandidateSet::iterator Best;
16057 CandidateSet->BestViableFunction(*this, Fn->getBeginLoc(), Best);
16064 Loc, nullptr, CandidateSet, &Best,