Lines Matching refs:Best
2940 OverloadCandidateSet::iterator Best; in IsInitializerListConstructorConversion() local
2943 Best, true)) { in IsInitializerListConstructorConversion()
2947 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function); in IsInitializerListConstructorConversion()
2953 User.FoundConversionFunction = Best->FoundDecl; in IsInitializerListConstructorConversion()
3127 OverloadCandidateSet::iterator Best; in IsUserDefinedConversion() local
3129 Best, true)) { in IsUserDefinedConversion()
3134 = dyn_cast<CXXConstructorDecl>(Best->Function)) { in IsUserDefinedConversion()
3146 if (Best->Conversions[0].isEllipsis()) in IsUserDefinedConversion()
3149 User.Before = Best->Conversions[0].Standard; in IsUserDefinedConversion()
3155 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3162 = dyn_cast<CXXConversionDecl>(Best->Function)) { in IsUserDefinedConversion()
3169 User.Before = Best->Conversions[0].Standard; in IsUserDefinedConversion()
3172 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3184 User.After = Best->FinalConversion; in IsUserDefinedConversion()
4106 OverloadCandidateSet::iterator Best; in FindConversionForRefInit() local
4107 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best, true)) { in FindConversionForRefInit()
4119 if (!Best->FinalConversion.DirectBinding) in FindConversionForRefInit()
4123 ICS.UserDefined.Before = Best->Conversions[0].Standard; in FindConversionForRefInit()
4124 ICS.UserDefined.After = Best->FinalConversion; in FindConversionForRefInit()
4126 ICS.UserDefined.ConversionFunction = Best->Function; in FindConversionForRefInit()
4127 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl; in FindConversionForRefInit()
5469 OverloadCandidateSet::iterator Best; in PerformContextualImplicitConversion() local
5470 switch (CandidateSet.BestViableFunction(*this, Loc, Best)) { in PerformContextualImplicitConversion()
5474 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess()); in PerformContextualImplicitConversion()
8498 iterator &Best, in BestViableFunction() argument
8501 Best = end(); in BestViableFunction()
8504 if (Best == end() || isBetterOverloadCandidate(S, *Cand, *Best, Loc, in BestViableFunction()
8506 Best = Cand; in BestViableFunction()
8510 if (Best == end()) in BestViableFunction()
8517 Cand != Best && in BestViableFunction()
8518 !isBetterOverloadCandidate(S, *Best, *Cand, Loc, in BestViableFunction()
8520 Best = end(); in BestViableFunction()
8526 if (Best->Function && in BestViableFunction()
8527 (Best->Function->isDeleted() || in BestViableFunction()
8528 S.isFunctionConsideredUnavailable(Best->Function))) in BestViableFunction()
10523 OverloadCandidateSet::iterator Best; in DiagnoseTwoPhaseLookup() local
10524 if (Candidates.BestViableFunction(SemaRef, FnLoc, Best) != OR_Success) { in DiagnoseTwoPhaseLookup()
10562 SemaRef.Diag(Best->Function->getLocation(), in DiagnoseTwoPhaseLookup()
10566 SemaRef.Diag(Best->Function->getLocation(), in DiagnoseTwoPhaseLookup()
10573 SemaRef.Diag(Best->Function->getLocation(), in DiagnoseTwoPhaseLookup()
10741 OverloadCandidateSet::iterator Best; in buildOverloadedCallSet() local
10743 CandidateSet->BestViableFunction(*this, Fn->getLocStart(), Best) == in buildOverloadedCallSet()
10774 OverloadCandidateSet::iterator *Best, in FinishOverloadedCallExpr() argument
10784 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr()
10785 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
10788 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
10818 << (*Best)->Function->isDeleted() in FinishOverloadedCallExpr()
10820 << SemaRef.getDeletedOrUnavailableSuffix((*Best)->Function) in FinishOverloadedCallExpr()
10826 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr()
10827 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
10858 OverloadCandidateSet::iterator Best; in BuildOverloadedCallExpr() local
10860 CandidateSet.BestViableFunction(*this, Fn->getLocStart(), Best); in BuildOverloadedCallExpr()
10864 &Best, OverloadResult, in BuildOverloadedCallExpr()
10955 OverloadCandidateSet::iterator Best; in CreateOverloadedUnaryOp() local
10956 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedUnaryOp()
10959 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedUnaryOp()
10967 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
10971 Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
10989 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
11013 PerformImplicitConversion(Input, Best->BuiltinTypes.ParamTypes[0], in CreateOverloadedUnaryOp()
11014 Best->Conversions[0], AA_Passing); in CreateOverloadedUnaryOp()
11045 << Best->Function->isDeleted() in CreateOverloadedUnaryOp()
11047 << getDeletedOrUnavailableSuffix(Best->Function) in CreateOverloadedUnaryOp()
11167 OverloadCandidateSet::iterator Best; in CreateOverloadedBinOp() local
11168 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedBinOp()
11171 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedBinOp()
11180 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
11192 Best->FoundDecl, Method); in CreateOverloadedBinOp()
11219 Best->FoundDecl, in CreateOverloadedBinOp()
11256 PerformImplicitConversion(Args[0], Best->BuiltinTypes.ParamTypes[0], in CreateOverloadedBinOp()
11257 Best->Conversions[0], AA_Passing); in CreateOverloadedBinOp()
11263 PerformImplicitConversion(Args[1], Best->BuiltinTypes.ParamTypes[1], in CreateOverloadedBinOp()
11264 Best->Conversions[1], AA_Passing); in CreateOverloadedBinOp()
11324 if (isImplicitlyDeleted(Best->Function)) { in CreateOverloadedBinOp()
11325 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function); in CreateOverloadedBinOp()
11336 << Best->Function->isDeleted() in CreateOverloadedBinOp()
11338 << getDeletedOrUnavailableSuffix(Best->Function) in CreateOverloadedBinOp()
11399 OverloadCandidateSet::iterator Best; in CreateOverloadedArraySubscriptExpr() local
11400 switch (CandidateSet.BestViableFunction(*this, LLoc, Best)) { in CreateOverloadedArraySubscriptExpr()
11403 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedArraySubscriptExpr()
11409 CheckMemberOperatorAccess(LLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
11415 Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
11436 Best->FoundDecl, in CreateOverloadedArraySubscriptExpr()
11463 PerformImplicitConversion(Args[0], Best->BuiltinTypes.ParamTypes[0], in CreateOverloadedArraySubscriptExpr()
11464 Best->Conversions[0], AA_Passing); in CreateOverloadedArraySubscriptExpr()
11470 PerformImplicitConversion(Args[1], Best->BuiltinTypes.ParamTypes[1], in CreateOverloadedArraySubscriptExpr()
11471 Best->Conversions[1], AA_Passing); in CreateOverloadedArraySubscriptExpr()
11505 << Best->Function->isDeleted() << "[]" in CreateOverloadedArraySubscriptExpr()
11506 << getDeletedOrUnavailableSuffix(Best->Function) in CreateOverloadedArraySubscriptExpr()
11662 OverloadCandidateSet::iterator Best; in BuildCallToMemberFunction() local
11664 Best)) { in BuildCallToMemberFunction()
11666 Method = cast<CXXMethodDecl>(Best->Function); in BuildCallToMemberFunction()
11667 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
11668 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
11669 if (DiagnoseUseOfDecl(Best->FoundDecl, UnresExpr->getNameLoc())) in BuildCallToMemberFunction()
11699 << Best->Function->isDeleted() in BuildCallToMemberFunction()
11701 << getDeletedOrUnavailableSuffix(Best->Function) in BuildCallToMemberFunction()
11884 OverloadCandidateSet::iterator Best; in BuildCallToObjectOfClassType() local
11886 Best)) { in BuildCallToObjectOfClassType()
11914 << Best->Function->isDeleted() in BuildCallToObjectOfClassType()
11916 << getDeletedOrUnavailableSuffix(Best->Function) in BuildCallToObjectOfClassType()
11922 if (Best == CandidateSet.end()) in BuildCallToObjectOfClassType()
11927 if (Best->Function == nullptr) { in BuildCallToObjectOfClassType()
11932 Best->Conversions[0].UserDefined.ConversionFunction); in BuildCallToObjectOfClassType()
11935 Best->FoundDecl); in BuildCallToObjectOfClassType()
11936 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc)) in BuildCallToObjectOfClassType()
11938 assert(Conv == Best->FoundDecl.getDecl() && in BuildCallToObjectOfClassType()
11946 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
11958 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl); in BuildCallToObjectOfClassType()
11963 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function); in BuildCallToObjectOfClassType()
11977 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
12015 Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
12115 OverloadCandidateSet::iterator Best; in BuildOverloadedArrowExpr() local
12116 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in BuildOverloadedArrowExpr()
12150 << Best->Function->isDeleted() in BuildOverloadedArrowExpr()
12152 << getDeletedOrUnavailableSuffix(Best->Function) in BuildOverloadedArrowExpr()
12158 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
12161 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function); in BuildOverloadedArrowExpr()
12164 Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
12170 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
12206 OverloadCandidateSet::iterator Best; in BuildLiteralOperatorCall() local
12207 switch (CandidateSet.BestViableFunction(*this, UDSuffixLoc, Best)) { in BuildLiteralOperatorCall()
12224 FunctionDecl *FD = Best->Function; in BuildLiteralOperatorCall()
12225 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()
12313 OverloadCandidateSet::iterator Best; in BuildForRangeBeginEndCall() local
12315 CandidateSet->BestViableFunction(*this, Fn->getLocStart(), Best); in BuildForRangeBeginEndCall()
12322 Loc, nullptr, CandidateSet, &Best, in BuildForRangeBeginEndCall()