Lines Matching refs:Cand2
9401 const FunctionDecl *Cand2) { in compareEnableIfAttrs() argument
9404 bool Cand2Attr = Cand2->hasAttr<EnableIfAttr>(); in compareEnableIfAttrs()
9412 auto Cand2Attrs = Cand2->specific_attrs<EnableIfAttr>(); in compareEnableIfAttrs()
9440 const OverloadCandidate &Cand2) { in isBetterMultiversionCandidate() argument
9441 if (!Cand1.Function || !Cand1.Function->isMultiVersion() || !Cand2.Function || in isBetterMultiversionCandidate()
9442 !Cand2.Function->isMultiVersion()) in isBetterMultiversionCandidate()
9448 if (Cand2.Function->isInvalidDecl()) in isBetterMultiversionCandidate()
9452 if (Cand2.Function->isInvalidDecl()) in isBetterMultiversionCandidate()
9458 bool Cand2CPUDisp = Cand2.Function->hasAttr<CPUDispatchAttr>(); in isBetterMultiversionCandidate()
9460 const auto *Cand2CPUSpec = Cand2.Function->getAttr<CPUSpecificAttr>(); in isBetterMultiversionCandidate()
9540 Sema &S, const OverloadCandidate &Cand1, const OverloadCandidate &Cand2, in isBetterOverloadCandidate() argument
9544 if (!Cand2.Viable) in isBetterOverloadCandidate()
9583 if (S.getLangOpts().CUDA && Cand1.Function && Cand2.Function && in isBetterOverloadCandidate()
9590 Sema::isCUDAImplicitHostDeviceFunction(Cand2.Function); in isBetterOverloadCandidate()
9592 auto P2 = S.IdentifyCUDAPreference(Caller, Cand2.Function); in isBetterOverloadCandidate()
9625 if (Cand1.IgnoreObjectArgument || Cand2.IgnoreObjectArgument) in isBetterOverloadCandidate()
9643 assert(Cand2.Conversions.size() == NumArgs && "Overload candidate mismatch"); in isBetterOverloadCandidate()
9647 bool Cand2Bad = IsIllFormedConversion(Cand2.Conversions[ArgIdx]); in isBetterOverloadCandidate()
9666 Cand2.Conversions[ArgIdx])) { in isBetterOverloadCandidate()
9673 if (Cand1.Function && Cand2.Function && in isBetterOverloadCandidate()
9674 Cand1.isReversed() != Cand2.isReversed() && in isBetterOverloadCandidate()
9675 haveSameParameterTypes(S.Context, Cand1.Function, Cand2.Function, in isBetterOverloadCandidate()
9714 Cand1.Function && Cand2.Function && in isBetterOverloadCandidate()
9716 isa<CXXConversionDecl>(Cand2.Function)) { in isBetterOverloadCandidate()
9722 compareConversionFunctions(S, Cand1.Function, Cand2.Function); in isBetterOverloadCandidate()
9726 Cand2.FinalConversion); in isBetterOverloadCandidate()
9743 Cand1.Function && Cand2.Function && in isBetterOverloadCandidate()
9745 isa<CXXConstructorDecl>(Cand2.Function)) in isBetterOverloadCandidate()
9752 bool Cand2IsSpecialization = Cand2.Function && in isBetterOverloadCandidate()
9753 Cand2.Function->getPrimaryTemplate(); in isBetterOverloadCandidate()
9764 Cand2.Function->getPrimaryTemplate(), Loc, in isBetterOverloadCandidate()
9767 Cand1.ExplicitCallArguments, Cand2.ExplicitCallArguments, in isBetterOverloadCandidate()
9768 Cand1.isReversed() ^ Cand2.isReversed())) in isBetterOverloadCandidate()
9774 if (Cand1.Function && Cand2.Function && !Cand1IsSpecialization && in isBetterOverloadCandidate()
9776 Cand2.Function->hasPrototype()) { in isBetterOverloadCandidate()
9778 auto *PT2 = cast<FunctionProtoType>(Cand2.Function->getFunctionType()); in isBetterOverloadCandidate()
9783 Expr *RC2 = Cand2.Function->getTrailingRequiresClause(); in isBetterOverloadCandidate()
9786 if (S.IsAtLeastAsConstrained(Cand1.Function, {RC1}, Cand2.Function, in isBetterOverloadCandidate()
9788 S.IsAtLeastAsConstrained(Cand2.Function, {RC2}, Cand1.Function, in isBetterOverloadCandidate()
9806 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl()); in isBetterOverloadCandidate()
9812 auto *Cand2Class = cast<CXXRecordDecl>(Cand2.Function->getDeclContext()); in isBetterOverloadCandidate()
9827 if (Cand1.RewriteKind != Cand2.RewriteKind) in isBetterOverloadCandidate()
9828 return Cand1.RewriteKind < Cand2.RewriteKind; in isBetterOverloadCandidate()
9833 auto *Guide2 = dyn_cast_or_null<CXXDeductionGuideDecl>(Cand2.Function); in isBetterOverloadCandidate()
9846 if (Cand1.Function && Cand2.Function) { in isBetterOverloadCandidate()
9847 Comparison Cmp = compareEnableIfAttrs(S, Cand1.Function, Cand2.Function); in isBetterOverloadCandidate()
9854 bool HasPS2 = Cand2.Function != nullptr && in isBetterOverloadCandidate()
9855 functionHasPassObjectSizeParams(Cand2.Function); in isBetterOverloadCandidate()
9859 auto MV = isBetterMultiversionCandidate(Cand1, Cand2); in isBetterOverloadCandidate()
9867 if (S.getLangOpts().CUDA && Cand1.Function && Cand2.Function) { in isBetterOverloadCandidate()
9870 S.IdentifyCUDAPreference(Caller, Cand2.Function); in isBetterOverloadCandidate()