Lines Matching refs:Best
2989 OverloadCandidateSet::iterator Best; in IsInitializerListConstructorConversion() local
2990 switch (CandidateSet.BestViableFunction(S, From->getLocStart(), Best, true)) { in IsInitializerListConstructorConversion()
2993 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function); in IsInitializerListConstructorConversion()
2999 User.FoundConversionFunction = Best->FoundDecl; in IsInitializerListConstructorConversion()
3169 OverloadCandidateSet::iterator Best; in IsUserDefinedConversion() local
3170 switch (CandidateSet.BestViableFunction(S, From->getLocStart(), Best, true)) { in IsUserDefinedConversion()
3174 = dyn_cast<CXXConstructorDecl>(Best->Function)) { in IsUserDefinedConversion()
3186 if (Best->Conversions[0].isEllipsis()) in IsUserDefinedConversion()
3189 User.Before = Best->Conversions[0].Standard; in IsUserDefinedConversion()
3195 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3202 = dyn_cast<CXXConversionDecl>(Best->Function)) { in IsUserDefinedConversion()
3209 User.Before = Best->Conversions[0].Standard; in IsUserDefinedConversion()
3212 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3224 User.After = Best->FinalConversion; in IsUserDefinedConversion()
4100 OverloadCandidateSet::iterator Best; in FindConversionForRefInit() local
4101 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best, true)) { in FindConversionForRefInit()
4113 if (!Best->FinalConversion.DirectBinding) in FindConversionForRefInit()
4117 ICS.UserDefined.Before = Best->Conversions[0].Standard; in FindConversionForRefInit()
4118 ICS.UserDefined.After = Best->FinalConversion; in FindConversionForRefInit()
4120 ICS.UserDefined.ConversionFunction = Best->Function; in FindConversionForRefInit()
4121 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl; in FindConversionForRefInit()
7913 iterator &Best, in BestViableFunction() argument
7916 Best = end(); in BestViableFunction()
7919 if (Best == end() || isBetterOverloadCandidate(S, *Cand, *Best, Loc, in BestViableFunction()
7921 Best = Cand; in BestViableFunction()
7925 if (Best == end()) in BestViableFunction()
7932 Cand != Best && in BestViableFunction()
7933 !isBetterOverloadCandidate(S, *Best, *Cand, Loc, in BestViableFunction()
7935 Best = end(); in BestViableFunction()
7941 if (Best->Function && in BestViableFunction()
7942 (Best->Function->isDeleted() || in BestViableFunction()
7943 S.isFunctionConsideredUnavailable(Best->Function))) in BestViableFunction()
9612 OverloadCandidateSet::iterator Best; in DiagnoseTwoPhaseLookup() local
9613 if (Candidates.BestViableFunction(SemaRef, FnLoc, Best) != OR_Success) { in DiagnoseTwoPhaseLookup()
9649 SemaRef.Diag(Best->Function->getLocation(), in DiagnoseTwoPhaseLookup()
9653 SemaRef.Diag(Best->Function->getLocation(), in DiagnoseTwoPhaseLookup()
9660 SemaRef.Diag(Best->Function->getLocation(), in DiagnoseTwoPhaseLookup()
9911 OverloadCandidateSet::iterator *Best, in FinishOverloadedCallExpr() argument
9922 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr()
9923 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
9925 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
9958 << (*Best)->Function->isDeleted() in FinishOverloadedCallExpr()
9960 << SemaRef.getDeletedOrUnavailableSuffix((*Best)->Function) in FinishOverloadedCallExpr()
9967 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr()
9968 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
9998 OverloadCandidateSet::iterator Best; in BuildOverloadedCallExpr() local
10000 CandidateSet.BestViableFunction(*this, Fn->getLocStart(), Best); in BuildOverloadedCallExpr()
10004 &Best, OverloadResult, in BuildOverloadedCallExpr()
10100 OverloadCandidateSet::iterator Best; in CreateOverloadedUnaryOp() local
10101 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedUnaryOp()
10104 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedUnaryOp()
10112 CheckMemberOperatorAccess(OpLoc, Args[0], 0, Best->FoundDecl); in CreateOverloadedUnaryOp()
10116 Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
10139 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
10160 PerformImplicitConversion(Input, Best->BuiltinTypes.ParamTypes[0], in CreateOverloadedUnaryOp()
10161 Best->Conversions[0], AA_Passing); in CreateOverloadedUnaryOp()
10194 << Best->Function->isDeleted() in CreateOverloadedUnaryOp()
10196 << getDeletedOrUnavailableSuffix(Best->Function) in CreateOverloadedUnaryOp()
10321 OverloadCandidateSet::iterator Best; in CreateOverloadedBinOp() local
10322 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedBinOp()
10325 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedBinOp()
10334 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
10346 Best->FoundDecl, Method); in CreateOverloadedBinOp()
10378 Best->FoundDecl, in CreateOverloadedBinOp()
10405 PerformImplicitConversion(Args[0], Best->BuiltinTypes.ParamTypes[0], in CreateOverloadedBinOp()
10406 Best->Conversions[0], AA_Passing); in CreateOverloadedBinOp()
10412 PerformImplicitConversion(Args[1], Best->BuiltinTypes.ParamTypes[1], in CreateOverloadedBinOp()
10413 Best->Conversions[1], AA_Passing); in CreateOverloadedBinOp()
10468 if (isImplicitlyDeleted(Best->Function)) { in CreateOverloadedBinOp()
10469 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function); in CreateOverloadedBinOp()
10480 << Best->Function->isDeleted() in CreateOverloadedBinOp()
10482 << getDeletedOrUnavailableSuffix(Best->Function) in CreateOverloadedBinOp()
10545 OverloadCandidateSet::iterator Best; in CreateOverloadedArraySubscriptExpr() local
10546 switch (CandidateSet.BestViableFunction(*this, LLoc, Best)) { in CreateOverloadedArraySubscriptExpr()
10549 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedArraySubscriptExpr()
10555 CheckMemberOperatorAccess(LLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
10561 Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
10587 Best->FoundDecl, in CreateOverloadedArraySubscriptExpr()
10610 PerformImplicitConversion(Args[0], Best->BuiltinTypes.ParamTypes[0], in CreateOverloadedArraySubscriptExpr()
10611 Best->Conversions[0], AA_Passing); in CreateOverloadedArraySubscriptExpr()
10617 PerformImplicitConversion(Args[1], Best->BuiltinTypes.ParamTypes[1], in CreateOverloadedArraySubscriptExpr()
10618 Best->Conversions[1], AA_Passing); in CreateOverloadedArraySubscriptExpr()
10652 << Best->Function->isDeleted() << "[]" in CreateOverloadedArraySubscriptExpr()
10653 << getDeletedOrUnavailableSuffix(Best->Function) in CreateOverloadedArraySubscriptExpr()
10800 OverloadCandidateSet::iterator Best; in BuildCallToMemberFunction() local
10802 Best)) { in BuildCallToMemberFunction()
10804 Method = cast<CXXMethodDecl>(Best->Function); in BuildCallToMemberFunction()
10805 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
10806 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
10807 DiagnoseUseOfDecl(Best->FoundDecl, UnresExpr->getNameLoc()); in BuildCallToMemberFunction()
10829 << Best->Function->isDeleted() in BuildCallToMemberFunction()
10831 << getDeletedOrUnavailableSuffix(Best->Function) in BuildCallToMemberFunction()
11004 OverloadCandidateSet::iterator Best; in BuildCallToObjectOfClassType() local
11006 Best)) { in BuildCallToObjectOfClassType()
11036 << Best->Function->isDeleted() in BuildCallToObjectOfClassType()
11038 << getDeletedOrUnavailableSuffix(Best->Function) in BuildCallToObjectOfClassType()
11045 if (Best == CandidateSet.end()) in BuildCallToObjectOfClassType()
11050 if (Best->Function == 0) { in BuildCallToObjectOfClassType()
11055 Best->Conversions[0].UserDefined.ConversionFunction); in BuildCallToObjectOfClassType()
11057 CheckMemberOperatorAccess(LParenLoc, Object.get(), 0, Best->FoundDecl); in BuildCallToObjectOfClassType()
11058 DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc); in BuildCallToObjectOfClassType()
11066 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
11079 CheckMemberOperatorAccess(LParenLoc, Object.get(), 0, Best->FoundDecl); in BuildCallToObjectOfClassType()
11084 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function); in BuildCallToObjectOfClassType()
11113 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
11148 Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
11246 OverloadCandidateSet::iterator Best; in BuildOverloadedArrowExpr() local
11247 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in BuildOverloadedArrowExpr()
11270 << Best->Function->isDeleted() in BuildOverloadedArrowExpr()
11272 << getDeletedOrUnavailableSuffix(Best->Function) in BuildOverloadedArrowExpr()
11278 CheckMemberOperatorAccess(OpLoc, Base, 0, Best->FoundDecl); in BuildOverloadedArrowExpr()
11281 CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function); in BuildOverloadedArrowExpr()
11284 Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
11290 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
11326 OverloadCandidateSet::iterator Best; in BuildLiteralOperatorCall() local
11327 switch (CandidateSet.BestViableFunction(*this, UDSuffixLoc, Best)) { in BuildLiteralOperatorCall()
11344 FunctionDecl *FD = Best->Function; in BuildLiteralOperatorCall()
11345 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()
11433 OverloadCandidateSet::iterator Best; in BuildForRangeBeginEndCall() local
11435 CandidateSet->BestViableFunction(*this, Fn->getLocStart(), Best); in BuildForRangeBeginEndCall()
11442 Loc, 0, CandidateSet, &Best, in BuildForRangeBeginEndCall()