Lines Matching refs:Cand1
8504 static Comparison compareEnableIfAttrs(const Sema &S, const FunctionDecl *Cand1, in compareEnableIfAttrs() argument
8507 bool Cand1Attr = Cand1->hasAttr<EnableIfAttr>(); in compareEnableIfAttrs()
8518 auto Cand1Attrs = getOrderedEnableIfAttrs(Cand1); in compareEnableIfAttrs()
8544 bool clang::isBetterOverloadCandidate(Sema &S, const OverloadCandidate &Cand1, in isBetterOverloadCandidate() argument
8551 return Cand1.Viable; in isBetterOverloadCandidate()
8552 else if (!Cand1.Viable) in isBetterOverloadCandidate()
8562 if (Cand1.IgnoreObjectArgument || Cand2.IgnoreObjectArgument) in isBetterOverloadCandidate()
8569 unsigned NumArgs = Cand1.NumConversions; in isBetterOverloadCandidate()
8574 Cand1.Conversions[ArgIdx], in isBetterOverloadCandidate()
8602 if (UserDefinedConversion && Cand1.Function && Cand2.Function && in isBetterOverloadCandidate()
8603 isa<CXXConversionDecl>(Cand1.Function) && in isBetterOverloadCandidate()
8610 compareConversionFunctions(S, Cand1.Function, Cand2.Function); in isBetterOverloadCandidate()
8613 Cand1.FinalConversion, in isBetterOverloadCandidate()
8626 bool Cand1IsSpecialization = Cand1.Function && in isBetterOverloadCandidate()
8627 Cand1.Function->getPrimaryTemplate(); in isBetterOverloadCandidate()
8639 = S.getMoreSpecializedTemplate(Cand1.Function->getPrimaryTemplate(), in isBetterOverloadCandidate()
8642 isa<CXXConversionDecl>(Cand1.Function)? TPOC_Conversion in isBetterOverloadCandidate()
8644 Cand1.ExplicitCallArguments, in isBetterOverloadCandidate()
8646 return BetterTemplate == Cand1.Function->getPrimaryTemplate(); in isBetterOverloadCandidate()
8652 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl()); in isBetterOverloadCandidate()
8659 auto *Cand1Class = cast<CXXRecordDecl>(Cand1.Function->getDeclContext()); in isBetterOverloadCandidate()
8669 if (Cand1.Function && Cand2.Function) { in isBetterOverloadCandidate()
8670 Comparison Cmp = compareEnableIfAttrs(S, Cand1.Function, Cand2.Function); in isBetterOverloadCandidate()
8675 if (S.getLangOpts().CUDA && Cand1.Function && Cand2.Function) { in isBetterOverloadCandidate()
8677 return S.IdentifyCUDAPreference(Caller, Cand1.Function) > in isBetterOverloadCandidate()
8681 bool HasPS1 = Cand1.Function != nullptr && in isBetterOverloadCandidate()
8682 functionHasPassObjectSizeParams(Cand1.Function); in isBetterOverloadCandidate()