Lines Matching refs:CandidateSet
2822 OverloadCandidateSet &CandidateSet,
2851 From, CandidateSet,
2855 From, CandidateSet,
2860 bool HadMultipleCandidates = (CandidateSet.size() > 1);
2863 switch (CandidateSet.BestViableFunction(S, From->getLocStart(), Best, true)) {
2905 OverloadCandidateSet &CandidateSet,
2941 S, From, ToType, ToRecordDecl, User, CandidateSet, AllowExplicit);
2945 CandidateSet.clear();
2990 CandidateSet, SuppressUserConversions);
2996 CandidateSet, SuppressUserConversions);
3033 CandidateSet);
3036 From, ToType, CandidateSet);
3042 bool HadMultipleCandidates = (CandidateSet.size() > 1);
3045 switch (CandidateSet.BestViableFunction(S, From->getLocStart(), Best, true)) {
3124 OverloadCandidateSet CandidateSet(From->getExprLoc());
3127 CandidateSet, false);
3132 else if (OvResult == OR_No_Viable_Function && !CandidateSet.empty())
3138 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, From);
3909 OverloadCandidateSet CandidateSet(DeclLoc);
3970 Init, DeclType, CandidateSet);
3973 DeclType, CandidateSet);
3976 bool HadMultipleCandidates = (CandidateSet.size() > 1);
3979 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best, true)) {
4010 for (OverloadCandidateSet::iterator Cand = CandidateSet.begin();
4011 Cand != CandidateSet.end(); ++Cand)
5200 OverloadCandidateSet& CandidateSet,
5221 Args, CandidateSet, SuppressUserConversions);
5228 if (!CandidateSet.isNewCandidate(Function))
5247 OverloadCandidate &Candidate = CandidateSet.addCandidate(Args.size());
5323 OverloadCandidateSet& CandidateSet,
5333 Args.slice(1), CandidateSet,
5336 AddOverloadCandidate(FD, F.getPair(), Args, CandidateSet,
5347 CandidateSet, SuppressUserConversions);
5351 CandidateSet, SuppressUserConversions);
5362 OverloadCandidateSet& CandidateSet,
5376 llvm::makeArrayRef(Args, NumArgs), CandidateSet,
5382 CandidateSet, SuppressUserConversions);
5398 OverloadCandidateSet& CandidateSet,
5406 if (!CandidateSet.isNewCandidate(Method))
5413 OverloadCandidate &Candidate = CandidateSet.addCandidate(Args.size() + 1);
5502 OverloadCandidateSet& CandidateSet,
5504 if (!CandidateSet.isNewCandidate(MethodTmpl))
5516 TemplateDeductionInfo Info(Context, CandidateSet.getLocation());
5521 OverloadCandidate &Candidate = CandidateSet.addCandidate();
5541 CandidateSet, SuppressUserConversions);
5552 OverloadCandidateSet& CandidateSet,
5554 if (!CandidateSet.isNewCandidate(FunctionTemplate))
5566 TemplateDeductionInfo Info(Context, CandidateSet.getLocation());
5571 OverloadCandidate &Candidate = CandidateSet.addCandidate();
5587 AddOverloadCandidate(Specialization, FoundDecl, Args, CandidateSet,
5602 OverloadCandidateSet& CandidateSet) {
5606 if (!CandidateSet.isNewCandidate(Conversion))
5613 OverloadCandidate &Candidate = CandidateSet.addCandidate(1);
5743 OverloadCandidateSet &CandidateSet) {
5747 if (!CandidateSet.isNewCandidate(FunctionTemplate))
5750 TemplateDeductionInfo Info(Context, CandidateSet.getLocation());
5755 OverloadCandidate &Candidate = CandidateSet.addCandidate();
5772 CandidateSet);
5786 OverloadCandidateSet& CandidateSet) {
5787 if (!CandidateSet.isNewCandidate(Conversion))
5793 OverloadCandidate &Candidate = CandidateSet.addCandidate(Args.size() + 1);
5884 /// CandidateSet will store the added overload candidates. (C++
5889 OverloadCandidateSet& CandidateSet,
5922 CandidateSet,
5937 OverloadCandidateSet& CandidateSet,
5944 OverloadCandidate &Candidate = CandidateSet.addCandidate(NumArgs);
6275 OverloadCandidateSet &CandidateSet) {
6281 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet,
6289 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet,
6364 OverloadCandidateSet &CandidateSet;
6477 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 1, CandidateSet);
6479 S.AddBuiltinCandidate(CandidateTy, ParamTypes, Args, 2, CandidateSet);
6488 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 1, CandidateSet);
6490 S.AddBuiltinCandidate(CandidateTy, ParamTypes, Args, 2, CandidateSet);
6500 OverloadCandidateSet &CandidateSet)
6506 CandidateSet(CandidateSet) {
6600 &ParamTy, Args, 1, CandidateSet);
6617 S.AddBuiltinCandidate(ArithTy, &ArithTy, Args, 1, CandidateSet);
6626 S.AddBuiltinCandidate(VecTy, &VecTy, Args, 1, CandidateSet);
6641 S.AddBuiltinCandidate(ParamTy, &ParamTy, Args, 1, CandidateSet);
6657 S.AddBuiltinCandidate(IntTy, &IntTy, Args, 1, CandidateSet);
6666 S.AddBuiltinCandidate(VecTy, &VecTy, Args, 1, CandidateSet);
6692 CandidateSet);
6728 for (OverloadCandidateSet::iterator C = CandidateSet.begin(),
6729 CEnd = CandidateSet.end();
6766 CandidateSet);
6783 CandidateSet);
6793 CandidateSet);
6838 CandidateSet);
6847 Args, 2, CandidateSet);
6895 S.AddBuiltinCandidate(Result, LandR, Args, 2, CandidateSet);
6918 S.AddBuiltinCandidate(Result, LandR, Args, 2, CandidateSet);
6950 S.AddBuiltinCandidate(Result, LandR, Args, 2, CandidateSet);
6975 CandidateSet);
6986 CandidateSet);
7026 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet,
7034 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet,
7054 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet,
7063 CandidateSet, /*IsAssigmentOperator=*/true);
7094 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet,
7103 CandidateSet,
7122 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet,
7130 CandidateSet,
7162 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet);
7169 CandidateSet);
7184 S.AddBuiltinCandidate(ParamTy, &ParamTy, Args, 1, CandidateSet,
7190 S.AddBuiltinCandidate(S.Context.BoolTy, ParamTypes, Args, 2, CandidateSet,
7218 S.AddBuiltinCandidate(ResultTy, ParamTypes, Args, 2, CandidateSet);
7233 S.AddBuiltinCandidate(ResultTy, ParamTypes, Args, 2, CandidateSet);
7284 S.AddBuiltinCandidate(ResultTy, ParamTypes, Args, 2, CandidateSet);
7312 S.AddBuiltinCandidate(*Ptr, ParamTypes, Args, 2, CandidateSet);
7323 S.AddBuiltinCandidate(*MemPtr, ParamTypes, Args, 2, CandidateSet);
7338 S.AddBuiltinCandidate(*Enum, ParamTypes, Args, 2, CandidateSet);
7356 OverloadCandidateSet& CandidateSet) {
7398 CandidateTypes, CandidateSet);
7546 OverloadCandidateSet& CandidateSet,
7563 for (OverloadCandidateSet::iterator Cand = CandidateSet.begin(),
7564 CandEnd = CandidateSet.end();
7580 AddOverloadCandidate(FD, FoundDecl, Args, CandidateSet, false,
7585 Args, CandidateSet);
7708 /// \param CandidateSet the set of candidate functions.
9233 OverloadCandidateSet &CandidateSet,
9245 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet, false,
9253 ExplicitTemplateArgs, Args, CandidateSet);
9264 CandidateSet,
9307 CandidateSet, PartialOverloading,
9314 CandidateSet, PartialOverloading,
9590 OverloadCandidateSet CandidateSet(Fn->getExprLoc());
9595 CandidateSet);
9600 if (CandidateSet.empty()) {
9622 switch (CandidateSet.BestViableFunction(*this, Fn->getLocStart(), Best)) {
9647 CandidateSet.NoteCandidates(*this, OCD_AllCandidates,
9655 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates,
9666 CandidateSet.NoteCandidates(*this, OCD_AllCandidates,
9753 OverloadCandidateSet CandidateSet(OpLoc);
9756 AddFunctionCandidates(Fns, llvm::makeArrayRef(Args, NumArgs), CandidateSet,
9760 AddMemberOperatorCandidates(Op, OpLoc, &Args[0], NumArgs, CandidateSet);
9766 CandidateSet);
9769 AddBuiltinOperatorCandidates(Op, OpLoc, &Args[0], NumArgs, CandidateSet);
9771 bool HadMultipleCandidates = (CandidateSet.size() > 1);
9775 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
9864 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates,
9875 CandidateSet.NoteCandidates(*this, OCD_AllCandidates,
9978 OverloadCandidateSet CandidateSet(OpLoc);
9981 AddFunctionCandidates(Fns, Args, CandidateSet, false);
9984 AddMemberOperatorCandidates(Op, OpLoc, Args, 2, CandidateSet);
9990 CandidateSet);
9993 AddBuiltinOperatorCandidates(Op, OpLoc, Args, 2, CandidateSet);
9995 bool HadMultipleCandidates = (CandidateSet.size() > 1);
9999 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
10125 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args,
10135 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args,
10160 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args,
10207 OverloadCandidateSet CandidateSet(LLoc);
10212 AddMemberOperatorCandidates(OO_Subscript, LLoc, Args, 2, CandidateSet);
10215 AddBuiltinOperatorCandidates(OO_Subscript, LLoc, Args, 2, CandidateSet);
10217 bool HadMultipleCandidates = (CandidateSet.size() > 1);
10221 switch (CandidateSet.BestViableFunction(*this, LLoc, Best)) {
10304 if (CandidateSet.empty())
10312 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args,
10322 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args,
10331 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args,
10429 OverloadCandidateSet CandidateSet(UnresExpr->getMemberLoc());
10450 llvm::makeArrayRef(Args, NumArgs), CandidateSet);
10459 llvm::makeArrayRef(Args, NumArgs), CandidateSet,
10466 CandidateSet,
10476 switch (CandidateSet.BestViableFunction(*this, UnresExpr->getLocStart(),
10490 CandidateSet.NoteCandidates(*this, OCD_AllCandidates,
10498 CandidateSet.NoteCandidates(*this, OCD_AllCandidates,
10509 CandidateSet.NoteCandidates(*this, OCD_AllCandidates,
10609 OverloadCandidateSet CandidateSet(LParenLoc);
10624 Object.get()->Classify(Context), Args, NumArgs, CandidateSet,
10671 CandidateSet);
10676 bool HadMultipleCandidates = (CandidateSet.size() > 1);
10680 switch (CandidateSet.BestViableFunction(*this, Object.get()->getLocStart(),
10688 if (CandidateSet.empty())
10696 CandidateSet.NoteCandidates(*this, OCD_AllCandidates,
10704 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates,
10715 CandidateSet.NoteCandidates(*this, OCD_AllCandidates,
10720 if (Best == CandidateSet.end())
10898 OverloadCandidateSet CandidateSet(Loc);
10913 0, 0, CandidateSet, /*SuppressUserConversions=*/false);
10916 bool HadMultipleCandidates = (CandidateSet.size() > 1);
10920 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
10926 if (CandidateSet.empty())
10932 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Base);
10938 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Base);
10947 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Base);
10993 OverloadCandidateSet CandidateSet(UDSuffixLoc);
10994 AddFunctionCandidates(R.asUnresolvedSet(), Args, CandidateSet, true,
10997 bool HadMultipleCandidates = (CandidateSet.size() > 1);
11002 switch (CandidateSet.BestViableFunction(*this, UDSuffixLoc, Best)) {
11010 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args);
11015 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args);