Lines Matching refs:FoundDecl
53 CreateFunctionRefExpr(Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl, in CreateFunctionRefExpr() argument
57 if (S.DiagnoseUseOfDecl(FoundDecl, Loc)) in CreateFunctionRefExpr()
65 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc)) in CreateFunctionRefExpr()
1385 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in TryUserDefinedConversion()
3351 S.AddTemplateOverloadCandidate(Info.ConstructorTmpl, Info.FoundDecl, in IsInitializerListConstructorConversion()
3357 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, From, in IsInitializerListConstructorConversion()
3377 User.FoundConversionFunction = Best->FoundDecl; in IsInitializerListConstructorConversion()
3488 Info.ConstructorTmpl, Info.FoundDecl, in IsUserDefinedConversion()
3496 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, in IsUserDefinedConversion()
3517 DeclAccessPair FoundDecl = I.getPair(); in IsUserDefinedConversion() local
3518 NamedDecl *D = FoundDecl.getDecl(); in IsUserDefinedConversion()
3532 ConvTemplate, FoundDecl, ActingContext, From, ToType, in IsUserDefinedConversion()
3536 S.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, ToType, in IsUserDefinedConversion()
3573 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3590 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
4700 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl; in FindConversionForRefInit()
4712 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in FindConversionForRefInit()
5421 NamedDecl *FoundDecl, in PerformObjectArgumentInitialization() argument
5491 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method); in PerformObjectArgumentInitialization()
5993 DeclAccessPair FoundDecl = ViableConversions[I]; in collectViableConversionCandidates() local
5994 NamedDecl *D = FoundDecl.getDecl(); in collectViableConversionCandidates()
6008 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet, in collectViableConversionCandidates()
6011 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, in collectViableConversionCandidates()
6172 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess()); in PerformContextualImplicitConversion()
6267 FunctionDecl *Function, DeclAccessPair FoundDecl, ArrayRef<Expr *> Args, in AddOverloadCandidate() argument
6287 AddMethodCandidate(Method, FoundDecl, Method->getParent(), QualType(), in AddOverloadCandidate()
6326 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate()
6373 auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl.getDecl()); in AddOverloadCandidate()
6814 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, QualType ObjectType, in AddMethodCandidate() argument
6820 NamedDecl *Decl = FoundDecl.getDecl(); in AddMethodCandidate()
6829 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext, in AddMethodCandidate()
6834 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext, in AddMethodCandidate()
6848 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl, in AddMethodCandidate() argument
6880 Candidate.FoundDecl = FoundDecl; in AddMethodCandidate()
7003 FunctionTemplateDecl *MethodTmpl, DeclAccessPair FoundDecl, in AddMethodTemplateCandidate() argument
7034 Candidate.FoundDecl = FoundDecl; in AddMethodTemplateCandidate()
7059 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl, in AddMethodTemplateCandidate()
7075 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateOverloadCandidate() argument
7088 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7116 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7143 Specialization, FoundDecl, Args, CandidateSet, SuppressUserConversions, in AddTemplateOverloadCandidate()
7255 CXXConversionDecl *Conversion, DeclAccessPair FoundDecl, in AddConversionCandidate() argument
7296 Candidate.FoundDecl = FoundDecl; in AddConversionCandidate()
7459 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateConversionCandidate() argument
7474 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7487 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7502 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType, in AddTemplateConversionCandidate()
7513 DeclAccessPair FoundDecl, in AddSurrogateCandidate() argument
7527 Candidate.FoundDecl = FoundDecl; in AddSurrogateCandidate()
7555 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl; in AddSurrogateCandidate()
7729 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none); in AddBuiltinCandidate()
9347 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none); in AddArgumentDependentLookupCandidates() local
9354 FD, FoundDecl, Args, CandidateSet, /*SuppressUserConversions=*/false, in AddArgumentDependentLookupCandidates()
9359 FD, FoundDecl, {Args[1], Args[0]}, CandidateSet, in AddArgumentDependentLookupCandidates()
9367 FTD, FoundDecl, ExplicitTemplateArgs, Args, CandidateSet, in AddArgumentDependentLookupCandidates()
9373 FTD, FoundDecl, ExplicitTemplateArgs, {Args[1], Args[0]}, in AddArgumentDependentLookupCandidates()
9801 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl()); in isBetterOverloadCandidate()
9803 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl()); in isBetterOverloadCandidate()
10130 void MaybeEmitInheritedConstructorNote(Sema &S, Decl *FoundDecl) { in MaybeEmitInheritedConstructorNote() argument
10133 if (auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl)) in MaybeEmitInheritedConstructorNote()
10134 S.Diag(FoundDecl->getLocation(), in MaybeEmitInheritedConstructorNote()
10388 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, Cand->getRewriteKind(), in DiagnoseBadConversion()
10406 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10442 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10452 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10462 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10471 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10489 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10500 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10511 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10529 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10569 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10582 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10604 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10688 DiagnoseArityMismatch(S, Cand->FoundDecl, Cand->Function, NumFormalArgs); in DiagnoseArityMismatch()
10984 DiagnoseBadDeduction(S, Cand->FoundDecl, Cand->Function, // pattern in DiagnoseBadDeduction()
10998 ClassifyOverloadCandidate(S, Cand->FoundDecl, Callee, in DiagnoseBadTarget()
11117 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
11123 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11128 S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11144 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11154 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11161 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11172 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11192 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11208 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
11747 DiagnoseBadDeduction(S, FoundDecl, Specialization, // pattern in NoteDeductionFailure()
12576 DeclAccessPair FoundDecl, in AddOverloadedCallCandidate() argument
12582 NamedDecl *Callee = FoundDecl.getDecl(); in AddOverloadedCallCandidate()
12595 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet, in AddOverloadedCallCandidate()
12603 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl, in AddOverloadedCallCandidate()
12732 R.addDecl(Best->FoundDecl.getDecl(), Best->FoundDecl.getAccess()); in DiagnoseTwoPhaseLookup()
13060 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
13063 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13121 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13292 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
13296 Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
13314 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
13635 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
13647 Best->FoundDecl, Method); in CreateOverloadedBinOp()
13674 Best->FoundDecl, Base, in CreateOverloadedBinOp()
14029 CheckMemberOperatorAccess(LLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
14035 Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
14056 Best->FoundDecl, in CreateOverloadedArraySubscriptExpr()
14227 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public); in BuildCallToMemberFunction() local
14232 FoundDecl = MemExpr->getFoundDecl(); in BuildCallToMemberFunction()
14296 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
14297 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
14298 if (DiagnoseUseOfDecl(Best->FoundDecl, UnresExpr->getNameLoc())) in BuildCallToMemberFunction()
14306 if (Method != FoundDecl.getDecl() && in BuildCallToMemberFunction()
14339 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method); in BuildCallToMemberFunction()
14372 FoundDecl, Method); in BuildCallToMemberFunction()
14585 Best->FoundDecl); in BuildCallToObjectOfClassType()
14586 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc)) in BuildCallToObjectOfClassType()
14588 assert(Conv == Best->FoundDecl.getDecl() && in BuildCallToObjectOfClassType()
14596 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
14608 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl); in BuildCallToObjectOfClassType()
14625 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
14646 Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
14802 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
14808 Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
14814 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
14877 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()