Lines Matching refs:FoundDecl

61     Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl, const Expr *Base,  in CreateFunctionRefExpr()  argument
64 if (S.DiagnoseUseOfDecl(FoundDecl, Loc)) in CreateFunctionRefExpr()
72 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc)) in CreateFunctionRefExpr()
1600 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in TryUserDefinedConversion()
3633 S.AddTemplateOverloadCandidate(Info.ConstructorTmpl, Info.FoundDecl, in IsInitializerListConstructorConversion()
3639 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, From, in IsInitializerListConstructorConversion()
3659 User.FoundConversionFunction = Best->FoundDecl; in IsInitializerListConstructorConversion()
3770 Info.ConstructorTmpl, Info.FoundDecl, in IsUserDefinedConversion()
3778 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, in IsUserDefinedConversion()
3799 DeclAccessPair FoundDecl = I.getPair(); in IsUserDefinedConversion() local
3800 NamedDecl *D = FoundDecl.getDecl(); in IsUserDefinedConversion()
3814 ConvTemplate, FoundDecl, ActingContext, From, ToType, in IsUserDefinedConversion()
3818 S.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, ToType, in IsUserDefinedConversion()
3854 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3871 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
4974 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl; in FindConversionForRefInit()
4986 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in FindConversionForRefInit()
5785 Expr *From, NestedNameSpecifier *Qualifier, NamedDecl *FoundDecl, in PerformImplicitObjectArgumentInitialization() argument
5858 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method); in PerformImplicitObjectArgumentInitialization()
6471 DeclAccessPair FoundDecl = ViableConversions[I]; in collectViableConversionCandidates() local
6472 NamedDecl *D = FoundDecl.getDecl(); in collectViableConversionCandidates()
6486 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet, in collectViableConversionCandidates()
6489 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, in collectViableConversionCandidates()
6652 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess()); in PerformContextualImplicitConversion()
6747 FunctionDecl *Function, DeclAccessPair FoundDecl, ArrayRef<Expr *> Args, in AddOverloadCandidate() argument
6767 AddMethodCandidate(Method, FoundDecl, Method->getParent(), QualType(), in AddOverloadCandidate()
6806 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate()
6874 auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl.getDecl()); in AddOverloadCandidate()
7320 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, QualType ObjectType, in AddMethodCandidate() argument
7326 NamedDecl *Decl = FoundDecl.getDecl(); in AddMethodCandidate()
7335 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext, in AddMethodCandidate()
7340 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext, in AddMethodCandidate()
7354 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl, in AddMethodCandidate() argument
7386 Candidate.FoundDecl = FoundDecl; in AddMethodCandidate()
7524 FunctionTemplateDecl *MethodTmpl, DeclAccessPair FoundDecl, in AddMethodTemplateCandidate() argument
7556 Candidate.FoundDecl = FoundDecl; in AddMethodTemplateCandidate()
7581 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl, in AddMethodTemplateCandidate()
7597 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateOverloadCandidate() argument
7610 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7641 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7668 Specialization, FoundDecl, Args, CandidateSet, SuppressUserConversions, in AddTemplateOverloadCandidate()
7799 CXXConversionDecl *Conversion, DeclAccessPair FoundDecl, in AddConversionCandidate() argument
7840 Candidate.FoundDecl = FoundDecl; in AddConversionCandidate()
8012 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateConversionCandidate() argument
8027 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
8043 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
8058 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType, in AddTemplateConversionCandidate()
8069 DeclAccessPair FoundDecl, in AddSurrogateCandidate() argument
8083 Candidate.FoundDecl = FoundDecl; in AddSurrogateCandidate()
8120 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl; in AddSurrogateCandidate()
8310 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none); in AddBuiltinCandidate()
9973 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none); in AddArgumentDependentLookupCandidates() local
9980 FD, FoundDecl, Args, CandidateSet, /*SuppressUserConversions=*/false, in AddArgumentDependentLookupCandidates()
9985 FD, FoundDecl, {Args[1], Args[0]}, CandidateSet, in AddArgumentDependentLookupCandidates()
9994 FTD, FoundDecl, ExplicitTemplateArgs, Args, CandidateSet, in AddArgumentDependentLookupCandidates()
10000 FTD, FoundDecl, ExplicitTemplateArgs, {Args[1], Args[0]}, in AddArgumentDependentLookupCandidates()
10481 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl()); in isBetterOverloadCandidate()
10483 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl()); in isBetterOverloadCandidate()
10858 void MaybeEmitInheritedConstructorNote(Sema &S, const Decl *FoundDecl) { in MaybeEmitInheritedConstructorNote() argument
10861 if (const auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl)) in MaybeEmitInheritedConstructorNote()
10862 S.Diag(FoundDecl->getLocation(), in MaybeEmitInheritedConstructorNote()
11128 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, Cand->getRewriteKind(), in DiagnoseBadConversion()
11147 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11181 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11190 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11199 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11215 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11226 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11240 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11257 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11297 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11310 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11334 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11424 DiagnoseArityMismatch(S, Cand->FoundDecl, Cand->Function, NumFormalArgs); in DiagnoseArityMismatch()
11720 DiagnoseBadDeduction(S, Cand->FoundDecl, Cand->Function, // pattern in DiagnoseBadDeduction()
11734 ClassifyOverloadCandidate(S, Cand->FoundDecl, Callee, in DiagnoseBadTarget()
11860 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
11866 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11871 S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11887 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11897 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11904 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11915 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11935 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11951 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
12547 DiagnoseBadDeduction(S, FoundDecl, Specialization, // pattern in NoteDeductionFailure()
13423 DeclAccessPair FoundDecl, in AddOverloadedCallCandidate() argument
13429 NamedDecl *Callee = FoundDecl.getDecl(); in AddOverloadedCallCandidate()
13442 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet, in AddOverloadedCallCandidate()
13450 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl, in AddOverloadedCallCandidate()
13579 R.addDecl(Best->FoundDecl.getDecl(), Best->FoundDecl.getAccess()); in DiagnoseTwoPhaseLookup()
13906 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
13910 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13971 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
14066 ExprResult Sema::BuildCXXMemberCallExpr(Expr *E, NamedDecl *FoundDecl, in BuildCXXMemberCallExpr() argument
14076 FoundDecl, Method); in BuildCXXMemberCallExpr()
14115 CreateFunctionRefExpr(*this, Method, FoundDecl, Exp.get(), in BuildCXXMemberCallExpr()
14127 DeclAccessPair::make(FoundDecl, FoundDecl->getAccess()), in BuildCXXMemberCallExpr()
14237 CheckMemberOperatorAccess(OpLoc, Input, nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
14244 Input, /*Qualifier=*/nullptr, Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
14262 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
14623 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
14632 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method); in CreateOverloadedBinOp()
14665 Best->FoundDecl, Base, in CreateOverloadedBinOp()
15075 CheckMemberOperatorAccess(LLoc, Args[0], ArgExpr, Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
15091 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
15107 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates, in CreateOverloadedArraySubscriptExpr()
15287 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public); in BuildCallToMemberFunction() local
15292 FoundDecl = MemExpr->getFoundDecl(); in BuildCallToMemberFunction()
15372 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
15373 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
15374 if (DiagnoseUseOfOverloadedDecl(Best->FoundDecl, UnresExpr->getNameLoc())) in BuildCallToMemberFunction()
15382 if (Method != FoundDecl.getDecl() && in BuildCallToMemberFunction()
15416 FixOverloadedFunctionReference(MemExprE, FoundDecl, Method); in BuildCallToMemberFunction()
15445 CreateFunctionRefExpr(*this, Method, FoundDecl, MemExpr, in BuildCallToMemberFunction()
15458 MemExpr->getBase(), Qualifier, FoundDecl, Method); in BuildCallToMemberFunction()
15695 Best->FoundDecl); in BuildCallToObjectOfClassType()
15696 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc)) in BuildCallToObjectOfClassType()
15698 assert(Conv == Best->FoundDecl.getDecl() && in BuildCallToObjectOfClassType()
15706 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
15718 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl); in BuildCallToObjectOfClassType()
15735 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
15755 Object.get(), /*Qualifier=*/nullptr, Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
15887 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
15899 Base, /*Qualifier=*/nullptr, Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
15906 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
15970 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()