Lines Matching refs:FoundDecl
50 CreateFunctionRefExpr(Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl, in CreateFunctionRefExpr() argument
54 if (S.DiagnoseUseOfDecl(FoundDecl, Loc)) in CreateFunctionRefExpr()
62 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc)) in CreateFunctionRefExpr()
1321 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in TryUserDefinedConversion()
3263 S.AddTemplateOverloadCandidate(Info.ConstructorTmpl, Info.FoundDecl, in IsInitializerListConstructorConversion()
3267 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, From, in IsInitializerListConstructorConversion()
3286 User.FoundConversionFunction = Best->FoundDecl; in IsInitializerListConstructorConversion()
3393 Info.ConstructorTmpl, Info.FoundDecl, in IsUserDefinedConversion()
3399 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, in IsUserDefinedConversion()
3418 DeclAccessPair FoundDecl = I.getPair(); in IsUserDefinedConversion() local
3419 NamedDecl *D = FoundDecl.getDecl(); in IsUserDefinedConversion()
3433 S.AddTemplateConversionCandidate(ConvTemplate, FoundDecl, in IsUserDefinedConversion()
3438 S.AddConversionCandidate(Conv, FoundDecl, ActingContext, in IsUserDefinedConversion()
3476 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3493 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
4490 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl; in FindConversionForRefInit()
4502 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in FindConversionForRefInit()
5212 NamedDecl *FoundDecl, in PerformObjectArgumentInitialization() argument
5282 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method); in PerformObjectArgumentInitialization()
5718 DeclAccessPair FoundDecl = ViableConversions[I]; in collectViableConversionCandidates() local
5719 NamedDecl *D = FoundDecl.getDecl(); in collectViableConversionCandidates()
5733 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet, in collectViableConversionCandidates()
5736 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, in collectViableConversionCandidates()
5896 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess()); in PerformContextualImplicitConversion()
5991 DeclAccessPair FoundDecl, ArrayRef<Expr *> Args, in AddOverloadCandidate() argument
6012 AddMethodCandidate(Method, FoundDecl, Method->getParent(), QualType(), in AddOverloadCandidate()
6051 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate()
6087 auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl.getDecl()); in AddOverloadCandidate()
6519 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, in AddMethodCandidate() argument
6525 NamedDecl *Decl = FoundDecl.getDecl(); in AddMethodCandidate()
6534 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext, in AddMethodCandidate()
6539 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext, in AddMethodCandidate()
6553 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl, in AddMethodCandidate() argument
6584 Candidate.FoundDecl = FoundDecl; in AddMethodCandidate()
6692 DeclAccessPair FoundDecl, in AddMethodTemplateCandidate() argument
6726 Candidate.FoundDecl = FoundDecl; in AddMethodTemplateCandidate()
6749 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl, in AddMethodTemplateCandidate()
6759 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateOverloadCandidate() argument
6787 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
6811 AddOverloadCandidate(Specialization, FoundDecl, Args, CandidateSet, in AddTemplateOverloadCandidate()
6920 DeclAccessPair FoundDecl, in AddConversionCandidate() argument
6960 Candidate.FoundDecl = FoundDecl; in AddConversionCandidate()
7105 DeclAccessPair FoundDecl, in AddTemplateConversionCandidate() argument
7123 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7138 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType, in AddTemplateConversionCandidate()
7149 DeclAccessPair FoundDecl, in AddSurrogateCandidate() argument
7163 Candidate.FoundDecl = FoundDecl; in AddSurrogateCandidate()
7191 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl; in AddSurrogateCandidate()
7322 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none); in AddBuiltinCandidate()
8979 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none); in AddArgumentDependentLookupCandidates() local
8985 AddOverloadCandidate(FD, FoundDecl, Args, CandidateSet, in AddArgumentDependentLookupCandidates()
8989 AddTemplateOverloadCandidate(cast<FunctionTemplateDecl>(*I), FoundDecl, in AddArgumentDependentLookupCandidates()
9245 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl()); in isBetterOverloadCandidate()
9247 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl()); in isBetterOverloadCandidate()
9530 void MaybeEmitInheritedConstructorNote(Sema &S, Decl *FoundDecl) { in MaybeEmitInheritedConstructorNote() argument
9533 if (auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl)) in MaybeEmitInheritedConstructorNote()
9534 S.Diag(FoundDecl->getLocation(), in MaybeEmitInheritedConstructorNote()
9699 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, FnDesc); in DiagnoseBadConversion()
9716 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9745 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9755 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9765 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9774 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9792 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9803 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9821 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9860 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9870 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9883 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9905 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9989 DiagnoseArityMismatch(S, Cand->FoundDecl, Cand->Function, NumFormalArgs); in DiagnoseArityMismatch()
10254 DiagnoseBadDeduction(S, Cand->FoundDecl, Cand->Function, // pattern in DiagnoseBadDeduction()
10268 ClassifyOverloadCandidate(S, Cand->FoundDecl, Callee, FnDesc); in DiagnoseBadTarget()
10356 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, FnDesc); in NoteFunctionCandidate()
10361 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
10366 S.NoteOverloadCandidate(Cand->FoundDecl, Fn); in NoteFunctionCandidate()
10382 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
10389 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn); in NoteFunctionCandidate()
10400 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn); in NoteFunctionCandidate()
10420 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
10865 DiagnoseBadDeduction(S, FoundDecl, Specialization, // pattern in NoteDeductionFailure()
11654 DeclAccessPair FoundDecl, in AddOverloadedCallCandidate() argument
11660 NamedDecl *Callee = FoundDecl.getDecl(); in AddOverloadedCallCandidate()
11673 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet, in AddOverloadedCallCandidate()
11681 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl, in AddOverloadedCallCandidate()
12070 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
12073 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
12126 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
12282 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
12286 Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
12304 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
12497 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
12509 Best->FoundDecl, Method); in CreateOverloadedBinOp()
12536 Best->FoundDecl, Base, in CreateOverloadedBinOp()
12729 CheckMemberOperatorAccess(LLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
12735 Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
12756 Best->FoundDecl, in CreateOverloadedArraySubscriptExpr()
12918 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public); in BuildCallToMemberFunction() local
12923 FoundDecl = MemExpr->getFoundDecl(); in BuildCallToMemberFunction()
12985 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
12986 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
12987 if (DiagnoseUseOfDecl(Best->FoundDecl, UnresExpr->getNameLoc())) in BuildCallToMemberFunction()
12995 if (Method != FoundDecl.getDecl() && in BuildCallToMemberFunction()
13026 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method); in BuildCallToMemberFunction()
13059 FoundDecl, Method); in BuildCallToMemberFunction()
13264 Best->FoundDecl); in BuildCallToObjectOfClassType()
13265 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc)) in BuildCallToObjectOfClassType()
13267 assert(Conv == Best->FoundDecl.getDecl() && in BuildCallToObjectOfClassType()
13275 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
13287 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl); in BuildCallToObjectOfClassType()
13306 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
13327 Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
13483 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
13489 Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
13495 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
13553 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()