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()
5989 DeclAccessPair FoundDecl = ViableConversions[I]; in collectViableConversionCandidates() local
5990 NamedDecl *D = FoundDecl.getDecl(); in collectViableConversionCandidates()
6004 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet, in collectViableConversionCandidates()
6007 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, in collectViableConversionCandidates()
6168 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess()); in PerformContextualImplicitConversion()
6263 FunctionDecl *Function, DeclAccessPair FoundDecl, ArrayRef<Expr *> Args, in AddOverloadCandidate() argument
6283 AddMethodCandidate(Method, FoundDecl, Method->getParent(), QualType(), in AddOverloadCandidate()
6322 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate()
6369 auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl.getDecl()); in AddOverloadCandidate()
6810 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, QualType ObjectType, in AddMethodCandidate() argument
6816 NamedDecl *Decl = FoundDecl.getDecl(); in AddMethodCandidate()
6825 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext, in AddMethodCandidate()
6830 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext, in AddMethodCandidate()
6844 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl, in AddMethodCandidate() argument
6876 Candidate.FoundDecl = FoundDecl; in AddMethodCandidate()
6999 FunctionTemplateDecl *MethodTmpl, DeclAccessPair FoundDecl, in AddMethodTemplateCandidate() argument
7030 Candidate.FoundDecl = FoundDecl; in AddMethodTemplateCandidate()
7055 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl, in AddMethodTemplateCandidate()
7071 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateOverloadCandidate() argument
7084 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7112 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7139 Specialization, FoundDecl, Args, CandidateSet, SuppressUserConversions, in AddTemplateOverloadCandidate()
7251 CXXConversionDecl *Conversion, DeclAccessPair FoundDecl, in AddConversionCandidate() argument
7292 Candidate.FoundDecl = FoundDecl; in AddConversionCandidate()
7455 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateConversionCandidate() argument
7470 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7483 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7498 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType, in AddTemplateConversionCandidate()
7509 DeclAccessPair FoundDecl, in AddSurrogateCandidate() argument
7523 Candidate.FoundDecl = FoundDecl; in AddSurrogateCandidate()
7551 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl; in AddSurrogateCandidate()
7725 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()
10147 void MaybeEmitInheritedConstructorNote(Sema &S, Decl *FoundDecl) { in MaybeEmitInheritedConstructorNote() argument
10150 if (auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl)) in MaybeEmitInheritedConstructorNote()
10151 S.Diag(FoundDecl->getLocation(), in MaybeEmitInheritedConstructorNote()
10405 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, Cand->getRewriteKind(), in DiagnoseBadConversion()
10423 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10459 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10469 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10479 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10488 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10506 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10517 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10528 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10546 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10586 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10599 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10621 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10705 DiagnoseArityMismatch(S, Cand->FoundDecl, Cand->Function, NumFormalArgs); in DiagnoseArityMismatch()
11001 DiagnoseBadDeduction(S, Cand->FoundDecl, Cand->Function, // pattern in DiagnoseBadDeduction()
11015 ClassifyOverloadCandidate(S, Cand->FoundDecl, Callee, in DiagnoseBadTarget()
11134 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
11140 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11145 S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11161 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11171 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11178 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11189 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11209 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11225 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
11765 DiagnoseBadDeduction(S, FoundDecl, Specialization, // pattern in NoteDeductionFailure()
12594 DeclAccessPair FoundDecl, in AddOverloadedCallCandidate() argument
12600 NamedDecl *Callee = FoundDecl.getDecl(); in AddOverloadedCallCandidate()
12613 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet, in AddOverloadedCallCandidate()
12621 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl, in AddOverloadedCallCandidate()
12750 R.addDecl(Best->FoundDecl.getDecl(), Best->FoundDecl.getAccess()); in DiagnoseTwoPhaseLookup()
13078 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
13081 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13139 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13310 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
13314 Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
13332 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
13653 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
13665 Best->FoundDecl, Method); in CreateOverloadedBinOp()
13692 Best->FoundDecl, Base, in CreateOverloadedBinOp()
14049 CheckMemberOperatorAccess(LLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
14055 Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
14076 Best->FoundDecl, in CreateOverloadedArraySubscriptExpr()
14247 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public); in BuildCallToMemberFunction() local
14252 FoundDecl = MemExpr->getFoundDecl(); in BuildCallToMemberFunction()
14316 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
14317 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
14318 if (DiagnoseUseOfDecl(Best->FoundDecl, UnresExpr->getNameLoc())) in BuildCallToMemberFunction()
14326 if (Method != FoundDecl.getDecl() && in BuildCallToMemberFunction()
14359 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method); in BuildCallToMemberFunction()
14392 FoundDecl, Method); in BuildCallToMemberFunction()
14605 Best->FoundDecl); in BuildCallToObjectOfClassType()
14606 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc)) in BuildCallToObjectOfClassType()
14608 assert(Conv == Best->FoundDecl.getDecl() && in BuildCallToObjectOfClassType()
14616 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
14628 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl); in BuildCallToObjectOfClassType()
14645 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
14666 Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
14822 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
14828 Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
14834 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
14897 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()