Home | History | Annotate | Download | only in Sema

Lines Matching full:cand2

8442 // Cand2 for overloading. This function assumes that all of the enable_if attrs
8443 // on Cand1 and Cand2 have conditions that evaluate to true.
8445 // Cand1's set of enable_if attributes are said to be "better" than Cand2's iff
8447 // Cand2's first N enable_if attributes (where N = the number of enable_if
8448 // attributes on Cand2), and Cand1 has more than N enable_if attributes.
8450 const FunctionDecl *Cand2) {
8456 auto Cand2Attrs = getOrderedEnableIfAttrs(Cand2);
8482 const OverloadCandidate &Cand2,
8487 if (!Cand2.Viable)
8499 if (Cand1.IgnoreObjectArgument || Cand2.IgnoreObjectArgument)
8507 assert(Cand2.NumConversions == NumArgs && "Overload candidate mismatch");
8512 Cand2.Conversions[ArgIdx])) {
8519 // Cand1 can't be better than Cand2.
8539 if (UserDefinedConversion && Cand1.Function && Cand2.Function &&
8541 isa<CXXConversionDecl>(Cand2.Function)) {
8547 compareConversionFunctions(S, Cand1.Function, Cand2.Function);
8551 Cand2.FinalConversion);
8565 bool Cand2IsSpecialization = Cand2.Function &&
8566 Cand2.Function->getPrimaryTemplate();
8577 Cand2.Function->getPrimaryTemplate(),
8582 Cand2.ExplicitCallArguments))
8587 if (Cand1.Function && Cand2.Function &&
8589 Cand2.Function->hasAttr<EnableIfAttr>()))
8590 return hasBetterEnableIfAttrs(S, Cand1.Function, Cand2.Function);
8593 Cand1.Function && Cand2.Function) {
8596 S.IdentifyCUDAPreference(Caller, Cand2.Function);
8601 bool HasPS2 = Cand2.Function != nullptr &&
8602 functionHasPassObjectSizeParams(Cand2.Function);