Lines Matching refs:FoundDecl

53     Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl, const Expr *Base,  in CreateFunctionRefExpr()  argument
56 if (S.DiagnoseUseOfDecl(FoundDecl, Loc)) in CreateFunctionRefExpr()
64 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc)) in CreateFunctionRefExpr()
1383 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in TryUserDefinedConversion()
3370 S.AddTemplateOverloadCandidate(Info.ConstructorTmpl, Info.FoundDecl, in IsInitializerListConstructorConversion()
3376 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, From, in IsInitializerListConstructorConversion()
3396 User.FoundConversionFunction = Best->FoundDecl; in IsInitializerListConstructorConversion()
3507 Info.ConstructorTmpl, Info.FoundDecl, in IsUserDefinedConversion()
3515 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, in IsUserDefinedConversion()
3536 DeclAccessPair FoundDecl = I.getPair(); in IsUserDefinedConversion() local
3537 NamedDecl *D = FoundDecl.getDecl(); in IsUserDefinedConversion()
3551 ConvTemplate, FoundDecl, ActingContext, From, ToType, in IsUserDefinedConversion()
3555 S.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, ToType, in IsUserDefinedConversion()
3592 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3609 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
4708 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl; in FindConversionForRefInit()
4720 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in FindConversionForRefInit()
5479 NamedDecl *FoundDecl, in PerformObjectArgumentInitialization() argument
5553 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method); in PerformObjectArgumentInitialization()
6051 DeclAccessPair FoundDecl = ViableConversions[I]; in collectViableConversionCandidates() local
6052 NamedDecl *D = FoundDecl.getDecl(); in collectViableConversionCandidates()
6066 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet, in collectViableConversionCandidates()
6069 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, in collectViableConversionCandidates()
6230 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess()); in PerformContextualImplicitConversion()
6325 FunctionDecl *Function, DeclAccessPair FoundDecl, ArrayRef<Expr *> Args, in AddOverloadCandidate() argument
6345 AddMethodCandidate(Method, FoundDecl, Method->getParent(), QualType(), in AddOverloadCandidate()
6384 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate()
6452 auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl.getDecl()); in AddOverloadCandidate()
6894 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, QualType ObjectType, in AddMethodCandidate() argument
6900 NamedDecl *Decl = FoundDecl.getDecl(); in AddMethodCandidate()
6909 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext, in AddMethodCandidate()
6914 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext, in AddMethodCandidate()
6928 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl, in AddMethodCandidate() argument
6960 Candidate.FoundDecl = FoundDecl; in AddMethodCandidate()
7084 FunctionTemplateDecl *MethodTmpl, DeclAccessPair FoundDecl, in AddMethodTemplateCandidate() argument
7115 Candidate.FoundDecl = FoundDecl; in AddMethodTemplateCandidate()
7140 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl, in AddMethodTemplateCandidate()
7156 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateOverloadCandidate() argument
7169 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7197 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7224 Specialization, FoundDecl, Args, CandidateSet, SuppressUserConversions, in AddTemplateOverloadCandidate()
7336 CXXConversionDecl *Conversion, DeclAccessPair FoundDecl, in AddConversionCandidate() argument
7377 Candidate.FoundDecl = FoundDecl; in AddConversionCandidate()
7540 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateConversionCandidate() argument
7555 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7568 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7583 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType, in AddTemplateConversionCandidate()
7594 DeclAccessPair FoundDecl, in AddSurrogateCandidate() argument
7608 Candidate.FoundDecl = FoundDecl; in AddSurrogateCandidate()
7636 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl; in AddSurrogateCandidate()
7810 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none); in AddBuiltinCandidate()
9474 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none); in AddArgumentDependentLookupCandidates() local
9481 FD, FoundDecl, Args, CandidateSet, /*SuppressUserConversions=*/false, in AddArgumentDependentLookupCandidates()
9486 FD, FoundDecl, {Args[1], Args[0]}, CandidateSet, in AddArgumentDependentLookupCandidates()
9494 FTD, FoundDecl, ExplicitTemplateArgs, Args, CandidateSet, in AddArgumentDependentLookupCandidates()
9500 FTD, FoundDecl, ExplicitTemplateArgs, {Args[1], Args[0]}, in AddArgumentDependentLookupCandidates()
9949 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl()); in isBetterOverloadCandidate()
9951 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl()); in isBetterOverloadCandidate()
10295 void MaybeEmitInheritedConstructorNote(Sema &S, Decl *FoundDecl) { in MaybeEmitInheritedConstructorNote() argument
10298 if (auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl)) in MaybeEmitInheritedConstructorNote()
10299 S.Diag(FoundDecl->getLocation(), in MaybeEmitInheritedConstructorNote()
10562 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, Cand->getRewriteKind(), in DiagnoseBadConversion()
10580 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10616 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10626 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10636 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10645 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10663 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10674 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10689 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10707 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10747 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10760 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10782 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10866 DiagnoseArityMismatch(S, Cand->FoundDecl, Cand->Function, NumFormalArgs); in DiagnoseArityMismatch()
11162 DiagnoseBadDeduction(S, Cand->FoundDecl, Cand->Function, // pattern in DiagnoseBadDeduction()
11176 ClassifyOverloadCandidate(S, Cand->FoundDecl, Callee, in DiagnoseBadTarget()
11302 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
11308 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11313 S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11329 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11339 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11346 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11357 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11377 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11393 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
11935 DiagnoseBadDeduction(S, FoundDecl, Specialization, // pattern in NoteDeductionFailure()
12765 DeclAccessPair FoundDecl, in AddOverloadedCallCandidate() argument
12771 NamedDecl *Callee = FoundDecl.getDecl(); in AddOverloadedCallCandidate()
12784 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet, in AddOverloadedCallCandidate()
12792 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl, in AddOverloadedCallCandidate()
12921 R.addDecl(Best->FoundDecl.getDecl(), Best->FoundDecl.getAccess()); in DiagnoseTwoPhaseLookup()
13249 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
13252 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13310 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13481 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
13485 Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
13503 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
13824 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
13836 Best->FoundDecl, Method); in CreateOverloadedBinOp()
13863 Best->FoundDecl, Base, in CreateOverloadedBinOp()
14268 CheckMemberOperatorAccess(LLoc, Args[0], ArgExpr, Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
14274 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
14288 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates, in CreateOverloadedArraySubscriptExpr()
14466 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public); in BuildCallToMemberFunction() local
14471 FoundDecl = MemExpr->getFoundDecl(); in BuildCallToMemberFunction()
14535 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
14536 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
14537 if (DiagnoseUseOfDecl(Best->FoundDecl, UnresExpr->getNameLoc())) in BuildCallToMemberFunction()
14545 if (Method != FoundDecl.getDecl() && in BuildCallToMemberFunction()
14578 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method); in BuildCallToMemberFunction()
14611 FoundDecl, Method); in BuildCallToMemberFunction()
14824 Best->FoundDecl); in BuildCallToObjectOfClassType()
14825 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc)) in BuildCallToObjectOfClassType()
14827 assert(Conv == Best->FoundDecl.getDecl() && in BuildCallToObjectOfClassType()
14835 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
14847 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl); in BuildCallToObjectOfClassType()
14864 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
14879 Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
15008 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
15014 Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
15020 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
15083 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()