Lines Matching refs:CandidateSet
2381 OverloadCandidateSet& CandidateSet, in IsUserDefinedConversion() argument
2431 &From, 1, CandidateSet, in IsUserDefinedConversion()
2438 &From, 1, CandidateSet, in IsUserDefinedConversion()
2477 CandidateSet); in IsUserDefinedConversion()
2480 From, ToType, CandidateSet); in IsUserDefinedConversion()
2487 switch (CandidateSet.BestViableFunction(S, From->getLocStart(), Best, true)) { in IsUserDefinedConversion()
2560 OverloadCandidateSet CandidateSet(From->getExprLoc()); in DiagnoseMultipleUserDefinedConversion() local
2563 CandidateSet, false); in DiagnoseMultipleUserDefinedConversion()
2568 else if (OvResult == OR_No_Viable_Function && !CandidateSet.empty()) in DiagnoseMultipleUserDefinedConversion()
2574 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, &From, 1); in DiagnoseMultipleUserDefinedConversion()
3268 OverloadCandidateSet CandidateSet(DeclLoc); in FindConversionForRefInit() local
3319 Init, DeclType, CandidateSet); in FindConversionForRefInit()
3322 DeclType, CandidateSet); in FindConversionForRefInit()
3326 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best, true)) { in FindConversionForRefInit()
3356 for (OverloadCandidateSet::iterator Cand = CandidateSet.begin(); in FindConversionForRefInit()
3357 Cand != CandidateSet.end(); ++Cand) in FindConversionForRefInit()
4066 OverloadCandidateSet& CandidateSet, in AddOverloadCandidate() argument
4086 Args, NumArgs, CandidateSet, in AddOverloadCandidate()
4094 if (!CandidateSet.isNewCandidate(Function)) in AddOverloadCandidate()
4113 CandidateSet.push_back(OverloadCandidate()); in AddOverloadCandidate()
4114 OverloadCandidate& Candidate = CandidateSet.back(); in AddOverloadCandidate()
4181 OverloadCandidateSet& CandidateSet, in AddFunctionCandidates() argument
4191 CandidateSet, SuppressUserConversions); in AddFunctionCandidates()
4193 AddOverloadCandidate(FD, F.getPair(), Args, NumArgs, CandidateSet, in AddFunctionCandidates()
4205 CandidateSet, in AddFunctionCandidates()
4210 Args, NumArgs, CandidateSet, in AddFunctionCandidates()
4222 OverloadCandidateSet& CandidateSet, in AddMethodCandidate() argument
4236 CandidateSet, in AddMethodCandidate()
4241 CandidateSet, SuppressUserConversions); in AddMethodCandidate()
4257 OverloadCandidateSet& CandidateSet, in AddMethodCandidate() argument
4265 if (!CandidateSet.isNewCandidate(Method)) in AddMethodCandidate()
4272 CandidateSet.push_back(OverloadCandidate()); in AddMethodCandidate()
4273 OverloadCandidate& Candidate = CandidateSet.back(); in AddMethodCandidate()
4363 OverloadCandidateSet& CandidateSet, in AddMethodTemplateCandidate() argument
4365 if (!CandidateSet.isNewCandidate(MethodTmpl)) in AddMethodTemplateCandidate()
4377 TemplateDeductionInfo Info(Context, CandidateSet.getLocation()); in AddMethodTemplateCandidate()
4382 CandidateSet.push_back(OverloadCandidate()); in AddMethodTemplateCandidate()
4383 OverloadCandidate &Candidate = CandidateSet.back(); in AddMethodTemplateCandidate()
4403 Args, NumArgs, CandidateSet, SuppressUserConversions); in AddMethodTemplateCandidate()
4414 OverloadCandidateSet& CandidateSet, in AddTemplateOverloadCandidate() argument
4416 if (!CandidateSet.isNewCandidate(FunctionTemplate)) in AddTemplateOverloadCandidate()
4428 TemplateDeductionInfo Info(Context, CandidateSet.getLocation()); in AddTemplateOverloadCandidate()
4433 CandidateSet.push_back(OverloadCandidate()); in AddTemplateOverloadCandidate()
4434 OverloadCandidate &Candidate = CandidateSet.back(); in AddTemplateOverloadCandidate()
4450 AddOverloadCandidate(Specialization, FoundDecl, Args, NumArgs, CandidateSet, in AddTemplateOverloadCandidate()
4465 OverloadCandidateSet& CandidateSet) { in AddConversionCandidate() argument
4469 if (!CandidateSet.isNewCandidate(Conversion)) in AddConversionCandidate()
4476 CandidateSet.push_back(OverloadCandidate()); in AddConversionCandidate()
4477 OverloadCandidate& Candidate = CandidateSet.back(); in AddConversionCandidate()
4608 OverloadCandidateSet &CandidateSet) { in AddTemplateConversionCandidate() argument
4612 if (!CandidateSet.isNewCandidate(FunctionTemplate)) in AddTemplateConversionCandidate()
4615 TemplateDeductionInfo Info(Context, CandidateSet.getLocation()); in AddTemplateConversionCandidate()
4620 CandidateSet.push_back(OverloadCandidate()); in AddTemplateConversionCandidate()
4621 OverloadCandidate &Candidate = CandidateSet.back(); in AddTemplateConversionCandidate()
4638 CandidateSet); in AddTemplateConversionCandidate()
4652 OverloadCandidateSet& CandidateSet) { in AddSurrogateCandidate() argument
4653 if (!CandidateSet.isNewCandidate(Conversion)) in AddSurrogateCandidate()
4659 CandidateSet.push_back(OverloadCandidate()); in AddSurrogateCandidate()
4660 OverloadCandidate& Candidate = CandidateSet.back(); in AddSurrogateCandidate()
4757 OverloadCandidateSet& CandidateSet, in AddMemberOperatorCandidates() argument
4790 CandidateSet, in AddMemberOperatorCandidates()
4805 OverloadCandidateSet& CandidateSet, in AddBuiltinCandidate() argument
4812 CandidateSet.push_back(OverloadCandidate()); in AddBuiltinCandidate()
4813 OverloadCandidate& Candidate = CandidateSet.back(); in AddBuiltinCandidate()
5145 OverloadCandidateSet &CandidateSet) { in AddBuiltinAssignmentOperatorCandidates() argument
5151 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet, in AddBuiltinAssignmentOperatorCandidates()
5159 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet, in AddBuiltinAssignmentOperatorCandidates()
5234 OverloadCandidateSet &CandidateSet; member in clang::__anon1808bbb60211::BuiltinOperatorOverloadBuilder
5347 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 1, CandidateSet); in addPlusPlusMinusMinusStyleOverloads()
5349 S.AddBuiltinCandidate(CandidateTy, ParamTypes, Args, 2, CandidateSet); in addPlusPlusMinusMinusStyleOverloads()
5358 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 1, CandidateSet); in addPlusPlusMinusMinusStyleOverloads()
5360 S.AddBuiltinCandidate(CandidateTy, ParamTypes, Args, 2, CandidateSet); in addPlusPlusMinusMinusStyleOverloads()
5370 OverloadCandidateSet &CandidateSet) in BuiltinOperatorOverloadBuilder() argument
5376 CandidateSet(CandidateSet) { in BuiltinOperatorOverloadBuilder()
5470 &ParamTy, Args, 1, CandidateSet); in addUnaryStarPointerOverloads()
5487 S.AddBuiltinCandidate(ArithTy, &ArithTy, Args, 1, CandidateSet); in addUnaryPlusOrMinusArithmeticOverloads()
5496 S.AddBuiltinCandidate(VecTy, &VecTy, Args, 1, CandidateSet); in addUnaryPlusOrMinusArithmeticOverloads()
5511 S.AddBuiltinCandidate(ParamTy, &ParamTy, Args, 1, CandidateSet); in addUnaryPlusPointerOverloads()
5527 S.AddBuiltinCandidate(IntTy, &IntTy, Args, 1, CandidateSet); in addUnaryTildePromotedIntegralOverloads()
5536 S.AddBuiltinCandidate(VecTy, &VecTy, Args, 1, CandidateSet); in addUnaryTildePromotedIntegralOverloads()
5562 CandidateSet); in addEqualEqualOrNotEqualMemberPointerOverloads()
5598 for (OverloadCandidateSet::iterator C = CandidateSet.begin(), in addRelationalPointerOrEnumeralOverloads()
5599 CEnd = CandidateSet.end(); in addRelationalPointerOrEnumeralOverloads()
5636 CandidateSet); in addRelationalPointerOrEnumeralOverloads()
5653 CandidateSet); in addRelationalPointerOrEnumeralOverloads()
5663 CandidateSet); in addRelationalPointerOrEnumeralOverloads()
5708 CandidateSet); in addBinaryPlusOrMinusPointerOverloads()
5717 Args, 2, CandidateSet); in addBinaryPlusOrMinusPointerOverloads()
5765 S.AddBuiltinCandidate(Result, LandR, Args, 2, CandidateSet); in addGenericBinaryArithmeticOverloads()
5788 S.AddBuiltinCandidate(Result, LandR, Args, 2, CandidateSet); in addGenericBinaryArithmeticOverloads()
5820 S.AddBuiltinCandidate(Result, LandR, Args, 2, CandidateSet); in addBinaryBitwiseArithmeticOverloads()
5845 CandidateSet); in addAssignmentMemberPointerOrEnumeralOverloads()
5856 CandidateSet); in addAssignmentMemberPointerOrEnumeralOverloads()
5896 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet, in addAssignmentPointerOverloads()
5904 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet, in addAssignmentPointerOverloads()
5924 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet, in addAssignmentPointerOverloads()
5933 CandidateSet, /*IsAssigmentOperator=*/true); in addAssignmentPointerOverloads()
5964 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet, in addAssignmentArithmeticOverloads()
5973 CandidateSet, in addAssignmentArithmeticOverloads()
5992 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet, in addAssignmentArithmeticOverloads()
6000 CandidateSet, in addAssignmentArithmeticOverloads()
6032 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, 2, CandidateSet); in addAssignmentIntegralOverloads()
6039 CandidateSet); in addAssignmentIntegralOverloads()
6054 S.AddBuiltinCandidate(ParamTy, &ParamTy, Args, 1, CandidateSet, in addExclaimOverload()
6060 S.AddBuiltinCandidate(S.Context.BoolTy, ParamTypes, Args, 2, CandidateSet, in addAmpAmpOrPipePipeOverload()
6088 S.AddBuiltinCandidate(ResultTy, ParamTypes, Args, 2, CandidateSet); in addSubscriptOverloads()
6103 S.AddBuiltinCandidate(ResultTy, ParamTypes, Args, 2, CandidateSet); in addSubscriptOverloads()
6154 S.AddBuiltinCandidate(ResultTy, ParamTypes, Args, 2, CandidateSet); in addArrowStarOverloads()
6182 S.AddBuiltinCandidate(*Ptr, ParamTypes, Args, 2, CandidateSet); in addConditionalOperatorOverloads()
6193 S.AddBuiltinCandidate(*MemPtr, ParamTypes, Args, 2, CandidateSet); in addConditionalOperatorOverloads()
6208 S.AddBuiltinCandidate(*Enum, ParamTypes, Args, 2, CandidateSet); in addConditionalOperatorOverloads()
6226 OverloadCandidateSet& CandidateSet) { in AddBuiltinOperatorCandidates() argument
6264 CandidateTypes, CandidateSet); in AddBuiltinOperatorCandidates()
6413 OverloadCandidateSet& CandidateSet, in AddArgumentDependentLookupCandidates() argument
6430 for (OverloadCandidateSet::iterator Cand = CandidateSet.begin(), in AddArgumentDependentLookupCandidates()
6431 CandEnd = CandidateSet.end(); in AddArgumentDependentLookupCandidates()
6447 AddOverloadCandidate(FD, FoundDecl, Args, NumArgs, CandidateSet, in AddArgumentDependentLookupCandidates()
6452 Args, NumArgs, CandidateSet); in AddArgumentDependentLookupCandidates()
8066 OverloadCandidateSet &CandidateSet, in AddOverloadedCallCandidate() argument
8078 S.AddOverloadCandidate(Func, FoundDecl, Args, NumArgs, CandidateSet, in AddOverloadedCallCandidate()
8087 Args, NumArgs, CandidateSet); in AddOverloadedCallCandidate()
8098 OverloadCandidateSet &CandidateSet, in AddOverloadedCallCandidates() argument
8141 Args, NumArgs, CandidateSet, in AddOverloadedCallCandidates()
8148 CandidateSet, in AddOverloadedCallCandidates()
8345 OverloadCandidateSet CandidateSet(Fn->getExprLoc()); in BuildOverloadedCallExpr() local
8349 AddOverloadedCallCandidates(ULE, Args, NumArgs, CandidateSet); in BuildOverloadedCallExpr()
8354 if (CandidateSet.empty()) in BuildOverloadedCallExpr()
8359 switch (CandidateSet.BestViableFunction(*this, Fn->getLocStart(), Best)) { in BuildOverloadedCallExpr()
8383 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs); in BuildOverloadedCallExpr()
8390 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args, NumArgs); in BuildOverloadedCallExpr()
8400 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs); in BuildOverloadedCallExpr()
8484 OverloadCandidateSet CandidateSet(OpLoc); in CreateOverloadedUnaryOp() local
8487 AddFunctionCandidates(Fns, &Args[0], NumArgs, CandidateSet, false); in CreateOverloadedUnaryOp()
8490 AddMemberOperatorCandidates(Op, OpLoc, &Args[0], NumArgs, CandidateSet); in CreateOverloadedUnaryOp()
8496 CandidateSet); in CreateOverloadedUnaryOp()
8499 AddBuiltinOperatorCandidates(Op, OpLoc, &Args[0], NumArgs, CandidateSet); in CreateOverloadedUnaryOp()
8503 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedUnaryOp()
8590 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, in CreateOverloadedUnaryOp()
8601 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs); in CreateOverloadedUnaryOp()
8732 OverloadCandidateSet CandidateSet(OpLoc); in CreateOverloadedBinOp() local
8735 AddFunctionCandidates(Fns, Args, 2, CandidateSet, false); in CreateOverloadedBinOp()
8738 AddMemberOperatorCandidates(Op, OpLoc, Args, 2, CandidateSet); in CreateOverloadedBinOp()
8744 CandidateSet); in CreateOverloadedBinOp()
8747 AddBuiltinOperatorCandidates(Op, OpLoc, Args, 2, CandidateSet); in CreateOverloadedBinOp()
8751 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedBinOp()
8876 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, 2, in CreateOverloadedBinOp()
8886 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args, 2, in CreateOverloadedBinOp()
8896 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, 2); in CreateOverloadedBinOp()
8949 OverloadCandidateSet CandidateSet(LLoc); in CreateOverloadedArraySubscriptExpr() local
8954 AddMemberOperatorCandidates(OO_Subscript, LLoc, Args, 2, CandidateSet); in CreateOverloadedArraySubscriptExpr()
8957 AddBuiltinOperatorCandidates(OO_Subscript, LLoc, Args, 2, CandidateSet); in CreateOverloadedArraySubscriptExpr()
8961 switch (CandidateSet.BestViableFunction(*this, LLoc, Best)) { in CreateOverloadedArraySubscriptExpr()
9042 if (CandidateSet.empty()) in CreateOverloadedArraySubscriptExpr()
9050 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, 2, in CreateOverloadedArraySubscriptExpr()
9060 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args, 2, in CreateOverloadedArraySubscriptExpr()
9069 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, 2, in CreateOverloadedArraySubscriptExpr()
9162 OverloadCandidateSet CandidateSet(UnresExpr->getMemberLoc()); in BuildCallToMemberFunction() local
9183 CandidateSet); in BuildCallToMemberFunction()
9192 Args, NumArgs, CandidateSet, in BuildCallToMemberFunction()
9198 Args, NumArgs, CandidateSet, in BuildCallToMemberFunction()
9206 switch (CandidateSet.BestViableFunction(*this, UnresExpr->getLocStart(), in BuildCallToMemberFunction()
9220 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs); in BuildCallToMemberFunction()
9227 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs); in BuildCallToMemberFunction()
9237 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs); in BuildCallToMemberFunction()
9333 OverloadCandidateSet CandidateSet(LParenLoc); in BuildCallToObjectOfClassType() local
9348 Object.get()->Classify(Context), Args, NumArgs, CandidateSet, in BuildCallToObjectOfClassType()
9393 Object.get(), Args, NumArgs, CandidateSet); in BuildCallToObjectOfClassType()
9398 switch (CandidateSet.BestViableFunction(*this, Object.get()->getLocStart(), in BuildCallToObjectOfClassType()
9406 if (CandidateSet.empty()) in BuildCallToObjectOfClassType()
9414 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs); in BuildCallToObjectOfClassType()
9421 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args, NumArgs); in BuildCallToObjectOfClassType()
9431 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs); in BuildCallToObjectOfClassType()
9435 if (Best == CandidateSet.end()) in BuildCallToObjectOfClassType()
9602 OverloadCandidateSet CandidateSet(Loc); in BuildOverloadedArrowExpr() local
9617 0, 0, CandidateSet, /*SuppressUserConversions=*/false); in BuildOverloadedArrowExpr()
9622 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in BuildOverloadedArrowExpr()
9628 if (CandidateSet.empty()) in BuildOverloadedArrowExpr()
9634 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, &Base, 1); in BuildOverloadedArrowExpr()
9640 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, &Base, 1); in BuildOverloadedArrowExpr()
9649 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, &Base, 1); in BuildOverloadedArrowExpr()