Lines Matching refs:FoundDecl

43 CreateFunctionRefExpr(Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl,  in CreateFunctionRefExpr()  argument
47 if (S.DiagnoseUseOfDecl(FoundDecl, Loc)) in CreateFunctionRefExpr()
55 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc)) in CreateFunctionRefExpr()
2906 DeclAccessPair FoundDecl = DeclAccessPair::make(D, D->getAccess()); in IsInitializerListConstructorConversion() local
2927 S.AddTemplateOverloadCandidate(ConstructorTmpl, FoundDecl, in IsInitializerListConstructorConversion()
2932 S.AddOverloadCandidate(Constructor, FoundDecl, in IsInitializerListConstructorConversion()
2953 User.FoundConversionFunction = Best->FoundDecl; in IsInitializerListConstructorConversion()
3042 DeclAccessPair FoundDecl = DeclAccessPair::make(D, D->getAccess()); in IsUserDefinedConversion() local
3071 S.AddTemplateOverloadCandidate(ConstructorTmpl, FoundDecl, in IsUserDefinedConversion()
3078 S.AddOverloadCandidate(Constructor, FoundDecl, in IsUserDefinedConversion()
3097 DeclAccessPair FoundDecl = I.getPair(); in IsUserDefinedConversion() local
3098 NamedDecl *D = FoundDecl.getDecl(); in IsUserDefinedConversion()
3112 S.AddTemplateConversionCandidate(ConvTemplate, FoundDecl, in IsUserDefinedConversion()
3117 S.AddConversionCandidate(Conv, FoundDecl, ActingContext, in IsUserDefinedConversion()
3155 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3172 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
4127 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl; in FindConversionForRefInit()
4840 NamedDecl *FoundDecl, in PerformObjectArgumentInitialization() argument
4884 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method); in PerformObjectArgumentInitialization()
5297 DeclAccessPair FoundDecl = ViableConversions[I]; in collectViableConversionCandidates() local
5298 NamedDecl *D = FoundDecl.getDecl(); in collectViableConversionCandidates()
5312 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet, in collectViableConversionCandidates()
5315 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, in collectViableConversionCandidates()
5474 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess()); in PerformContextualImplicitConversion()
5570 DeclAccessPair FoundDecl, in AddOverloadCandidate() argument
5591 AddMethodCandidate(Method, FoundDecl, Method->getParent(), in AddOverloadCandidate()
5628 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate()
5927 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, in AddMethodCandidate() argument
5933 NamedDecl *Decl = FoundDecl.getDecl(); in AddMethodCandidate()
5942 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext, in AddMethodCandidate()
5948 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext, in AddMethodCandidate()
5963 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl, in AddMethodCandidate() argument
5991 Candidate.FoundDecl = FoundDecl; in AddMethodCandidate()
6090 DeclAccessPair FoundDecl, in AddMethodTemplateCandidate() argument
6117 Candidate.FoundDecl = FoundDecl; in AddMethodTemplateCandidate()
6134 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl, in AddMethodTemplateCandidate()
6144 DeclAccessPair FoundDecl, in AddTemplateOverloadCandidate() argument
6168 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
6183 AddOverloadCandidate(Specialization, FoundDecl, Args, CandidateSet, in AddTemplateOverloadCandidate()
6234 DeclAccessPair FoundDecl, in AddConversionCandidate() argument
6266 Candidate.FoundDecl = FoundDecl; in AddConversionCandidate()
6401 DeclAccessPair FoundDecl, in AddTemplateConversionCandidate() argument
6418 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
6433 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType, in AddTemplateConversionCandidate()
6443 DeclAccessPair FoundDecl, in AddSurrogateCandidate() argument
6456 Candidate.FoundDecl = FoundDecl; in AddSurrogateCandidate()
6485 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl; in AddSurrogateCandidate()
6617 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none); in AddBuiltinCandidate()
8317 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none); in AddArgumentDependentLookupCandidates() local
8322 AddOverloadCandidate(FD, FoundDecl, Args, CandidateSet, false, in AddArgumentDependentLookupCandidates()
8326 FoundDecl, ExplicitTemplateArgs, in AddArgumentDependentLookupCandidates()
10381 DeclAccessPair FoundDecl, in AddOverloadedCallCandidate() argument
10387 NamedDecl *Callee = FoundDecl.getDecl(); in AddOverloadedCallCandidate()
10396 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet, in AddOverloadedCallCandidate()
10404 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl, in AddOverloadedCallCandidate()
10785 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
10788 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
10827 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
10967 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
10971 Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
10989 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
11180 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
11192 Best->FoundDecl, Method); in CreateOverloadedBinOp()
11219 Best->FoundDecl, in CreateOverloadedBinOp()
11409 CheckMemberOperatorAccess(LLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
11415 Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
11436 Best->FoundDecl, in CreateOverloadedArraySubscriptExpr()
11599 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public); in BuildCallToMemberFunction() local
11604 FoundDecl = MemExpr->getFoundDecl(); in BuildCallToMemberFunction()
11667 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
11668 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
11669 if (DiagnoseUseOfDecl(Best->FoundDecl, UnresExpr->getNameLoc())) in BuildCallToMemberFunction()
11677 if (Method != FoundDecl.getDecl() && in BuildCallToMemberFunction()
11708 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method); in BuildCallToMemberFunction()
11752 FoundDecl, Method); in BuildCallToMemberFunction()
11935 Best->FoundDecl); in BuildCallToObjectOfClassType()
11936 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc)) in BuildCallToObjectOfClassType()
11938 assert(Conv == Best->FoundDecl.getDecl() && in BuildCallToObjectOfClassType()
11946 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
11958 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl); in BuildCallToObjectOfClassType()
11977 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
12015 Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
12158 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
12164 Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
12170 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
12225 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()