• Home
  • Raw
  • Download

Lines Matching refs:FoundDecl

48 CreateFunctionRefExpr(Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl,  in CreateFunctionRefExpr()  argument
52 if (S.DiagnoseUseOfDecl(FoundDecl, Loc)) in CreateFunctionRefExpr()
60 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc)) in CreateFunctionRefExpr()
1241 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in TryUserDefinedConversion()
3070 S.AddTemplateOverloadCandidate(Info.ConstructorTmpl, Info.FoundDecl, in IsInitializerListConstructorConversion()
3074 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, From, in IsInitializerListConstructorConversion()
3094 User.FoundConversionFunction = Best->FoundDecl; in IsInitializerListConstructorConversion()
3199 Info.ConstructorTmpl, Info.FoundDecl, in IsUserDefinedConversion()
3205 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, in IsUserDefinedConversion()
3224 DeclAccessPair FoundDecl = I.getPair(); in IsUserDefinedConversion() local
3225 NamedDecl *D = FoundDecl.getDecl(); in IsUserDefinedConversion()
3239 S.AddTemplateConversionCandidate(ConvTemplate, FoundDecl, in IsUserDefinedConversion()
3244 S.AddConversionCandidate(Conv, FoundDecl, ActingContext, in IsUserDefinedConversion()
3282 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3299 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
4258 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl; in FindConversionForRefInit()
4270 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in FindConversionForRefInit()
4975 NamedDecl *FoundDecl, in PerformObjectArgumentInitialization() argument
5020 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method); in PerformObjectArgumentInitialization()
5434 DeclAccessPair FoundDecl = ViableConversions[I]; in collectViableConversionCandidates() local
5435 NamedDecl *D = FoundDecl.getDecl(); in collectViableConversionCandidates()
5449 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet, in collectViableConversionCandidates()
5452 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, in collectViableConversionCandidates()
5612 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess()); in PerformContextualImplicitConversion()
5708 DeclAccessPair FoundDecl, in AddOverloadCandidate() argument
5729 AddMethodCandidate(Method, FoundDecl, Method->getParent(), in AddOverloadCandidate()
5766 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate()
6081 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, in AddMethodCandidate() argument
6087 NamedDecl *Decl = FoundDecl.getDecl(); in AddMethodCandidate()
6096 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext, in AddMethodCandidate()
6102 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext, in AddMethodCandidate()
6117 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl, in AddMethodCandidate() argument
6145 Candidate.FoundDecl = FoundDecl; in AddMethodCandidate()
6244 DeclAccessPair FoundDecl, in AddMethodTemplateCandidate() argument
6271 Candidate.FoundDecl = FoundDecl; in AddMethodTemplateCandidate()
6288 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl, in AddMethodTemplateCandidate()
6298 DeclAccessPair FoundDecl, in AddTemplateOverloadCandidate() argument
6322 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
6337 AddOverloadCandidate(Specialization, FoundDecl, Args, CandidateSet, in AddTemplateOverloadCandidate()
6388 DeclAccessPair FoundDecl, in AddConversionCandidate() argument
6420 Candidate.FoundDecl = FoundDecl; in AddConversionCandidate()
6555 DeclAccessPair FoundDecl, in AddTemplateConversionCandidate() argument
6572 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
6587 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType, in AddTemplateConversionCandidate()
6597 DeclAccessPair FoundDecl, in AddSurrogateCandidate() argument
6610 Candidate.FoundDecl = FoundDecl; in AddSurrogateCandidate()
6638 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl; in AddSurrogateCandidate()
6771 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none); in AddBuiltinCandidate()
8475 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none); in AddArgumentDependentLookupCandidates() local
8480 AddOverloadCandidate(FD, FoundDecl, Args, CandidateSet, false, in AddArgumentDependentLookupCandidates()
8484 FoundDecl, ExplicitTemplateArgs, in AddArgumentDependentLookupCandidates()
8652 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl()); in isBetterOverloadCandidate()
8654 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl()); in isBetterOverloadCandidate()
8914 void MaybeEmitInheritedConstructorNote(Sema &S, Decl *FoundDecl) { in MaybeEmitInheritedConstructorNote() argument
8917 if (auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl)) in MaybeEmitInheritedConstructorNote()
8918 S.Diag(FoundDecl->getLocation(), in MaybeEmitInheritedConstructorNote()
9077 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, FnDesc); in DiagnoseBadConversion()
9094 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9125 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9136 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9147 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9156 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9174 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9185 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9203 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9242 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9254 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9267 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9289 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
9372 DiagnoseArityMismatch(S, Cand->FoundDecl, Cand->Function, NumFormalArgs); in DiagnoseArityMismatch()
9603 DiagnoseBadDeduction(S, Cand->FoundDecl, Cand->Function, // pattern in DiagnoseBadDeduction()
9617 ClassifyOverloadCandidate(S, Cand->FoundDecl, Callee, FnDesc); in DiagnoseBadTarget()
9695 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, FnDesc); in NoteFunctionCandidate()
9700 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
9706 S.NoteOverloadCandidate(Cand->FoundDecl, Fn); in NoteFunctionCandidate()
9722 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
9729 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn); in NoteFunctionCandidate()
9740 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn); in NoteFunctionCandidate()
10185 DiagnoseBadDeduction(S, FoundDecl, Specialization, // pattern in NoteDeductionFailure()
10958 DeclAccessPair FoundDecl, in AddOverloadedCallCandidate() argument
10964 NamedDecl *Callee = FoundDecl.getDecl(); in AddOverloadedCallCandidate()
10973 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet, in AddOverloadedCallCandidate()
10981 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl, in AddOverloadedCallCandidate()
11364 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
11367 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
11420 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
11574 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
11578 Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
11596 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
11785 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
11797 Best->FoundDecl, Method); in CreateOverloadedBinOp()
11824 Best->FoundDecl, in CreateOverloadedBinOp()
12014 CheckMemberOperatorAccess(LLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
12020 Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
12041 Best->FoundDecl, in CreateOverloadedArraySubscriptExpr()
12200 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public); in BuildCallToMemberFunction() local
12205 FoundDecl = MemExpr->getFoundDecl(); in BuildCallToMemberFunction()
12268 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
12269 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
12270 if (DiagnoseUseOfDecl(Best->FoundDecl, UnresExpr->getNameLoc())) in BuildCallToMemberFunction()
12278 if (Method != FoundDecl.getDecl() && in BuildCallToMemberFunction()
12309 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method); in BuildCallToMemberFunction()
12353 FoundDecl, Method); in BuildCallToMemberFunction()
12567 Best->FoundDecl); in BuildCallToObjectOfClassType()
12568 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc)) in BuildCallToObjectOfClassType()
12570 assert(Conv == Best->FoundDecl.getDecl() && in BuildCallToObjectOfClassType()
12578 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
12590 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl); in BuildCallToObjectOfClassType()
12609 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
12647 Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
12790 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
12796 Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
12802 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
12857 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()