Lines Matching refs:FoundDecl

57     Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl, const Expr *Base,  in CreateFunctionRefExpr()  argument
60 if (S.DiagnoseUseOfDecl(FoundDecl, Loc)) in CreateFunctionRefExpr()
68 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc)) in CreateFunctionRefExpr()
1490 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in TryUserDefinedConversion()
3477 S.AddTemplateOverloadCandidate(Info.ConstructorTmpl, Info.FoundDecl, in IsInitializerListConstructorConversion()
3483 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, From, in IsInitializerListConstructorConversion()
3503 User.FoundConversionFunction = Best->FoundDecl; in IsInitializerListConstructorConversion()
3614 Info.ConstructorTmpl, Info.FoundDecl, in IsUserDefinedConversion()
3622 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, in IsUserDefinedConversion()
3643 DeclAccessPair FoundDecl = I.getPair(); in IsUserDefinedConversion() local
3644 NamedDecl *D = FoundDecl.getDecl(); in IsUserDefinedConversion()
3658 ConvTemplate, FoundDecl, ActingContext, From, ToType, in IsUserDefinedConversion()
3662 S.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, ToType, in IsUserDefinedConversion()
3699 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
3716 User.FoundConversionFunction = Best->FoundDecl; in IsUserDefinedConversion()
4805 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl; in FindConversionForRefInit()
4817 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function); in FindConversionForRefInit()
5576 NamedDecl *FoundDecl, in PerformObjectArgumentInitialization() argument
5650 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method); in PerformObjectArgumentInitialization()
6150 DeclAccessPair FoundDecl = ViableConversions[I]; in collectViableConversionCandidates() local
6151 NamedDecl *D = FoundDecl.getDecl(); in collectViableConversionCandidates()
6165 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet, in collectViableConversionCandidates()
6168 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, in collectViableConversionCandidates()
6329 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess()); in PerformContextualImplicitConversion()
6424 FunctionDecl *Function, DeclAccessPair FoundDecl, ArrayRef<Expr *> Args, in AddOverloadCandidate() argument
6444 AddMethodCandidate(Method, FoundDecl, Method->getParent(), QualType(), in AddOverloadCandidate()
6483 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate()
6554 auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl.getDecl()); in AddOverloadCandidate()
6997 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, QualType ObjectType, in AddMethodCandidate() argument
7003 NamedDecl *Decl = FoundDecl.getDecl(); in AddMethodCandidate()
7012 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext, in AddMethodCandidate()
7017 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext, in AddMethodCandidate()
7031 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl, in AddMethodCandidate() argument
7063 Candidate.FoundDecl = FoundDecl; in AddMethodCandidate()
7201 FunctionTemplateDecl *MethodTmpl, DeclAccessPair FoundDecl, in AddMethodTemplateCandidate() argument
7232 Candidate.FoundDecl = FoundDecl; in AddMethodTemplateCandidate()
7257 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl, in AddMethodTemplateCandidate()
7273 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateOverloadCandidate() argument
7286 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7314 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7341 Specialization, FoundDecl, Args, CandidateSet, SuppressUserConversions, in AddTemplateOverloadCandidate()
7453 CXXConversionDecl *Conversion, DeclAccessPair FoundDecl, in AddConversionCandidate() argument
7494 Candidate.FoundDecl = FoundDecl; in AddConversionCandidate()
7660 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl, in AddTemplateConversionCandidate() argument
7675 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7688 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7703 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType, in AddTemplateConversionCandidate()
7714 DeclAccessPair FoundDecl, in AddSurrogateCandidate() argument
7728 Candidate.FoundDecl = FoundDecl; in AddSurrogateCandidate()
7756 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl; in AddSurrogateCandidate()
7935 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none); in AddBuiltinCandidate()
9599 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none); in AddArgumentDependentLookupCandidates() local
9606 FD, FoundDecl, Args, CandidateSet, /*SuppressUserConversions=*/false, in AddArgumentDependentLookupCandidates()
9611 FD, FoundDecl, {Args[1], Args[0]}, CandidateSet, in AddArgumentDependentLookupCandidates()
9620 FTD, FoundDecl, ExplicitTemplateArgs, Args, CandidateSet, in AddArgumentDependentLookupCandidates()
9626 FTD, FoundDecl, ExplicitTemplateArgs, {Args[1], Args[0]}, in AddArgumentDependentLookupCandidates()
10075 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl()); in isBetterOverloadCandidate()
10077 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl()); in isBetterOverloadCandidate()
10436 void MaybeEmitInheritedConstructorNote(Sema &S, Decl *FoundDecl) { in MaybeEmitInheritedConstructorNote() argument
10439 if (auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl)) in MaybeEmitInheritedConstructorNote()
10440 S.Diag(FoundDecl->getLocation(), in MaybeEmitInheritedConstructorNote()
10706 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, Cand->getRewriteKind(), in DiagnoseBadConversion()
10724 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10760 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10770 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10780 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10789 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10807 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10818 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10833 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10851 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10891 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10904 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
10929 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in DiagnoseBadConversion()
11013 DiagnoseArityMismatch(S, Cand->FoundDecl, Cand->Function, NumFormalArgs); in DiagnoseArityMismatch()
11309 DiagnoseBadDeduction(S, Cand->FoundDecl, Cand->Function, // pattern in DiagnoseBadDeduction()
11323 ClassifyOverloadCandidate(S, Cand->FoundDecl, Callee, in DiagnoseBadTarget()
11449 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
11455 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11460 S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11476 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11486 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11493 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11504 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind()); in NoteFunctionCandidate()
11524 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl); in NoteFunctionCandidate()
11540 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, in NoteFunctionCandidate()
12083 DiagnoseBadDeduction(S, FoundDecl, Specialization, // pattern in NoteDeductionFailure()
12919 DeclAccessPair FoundDecl, in AddOverloadedCallCandidate() argument
12925 NamedDecl *Callee = FoundDecl.getDecl(); in AddOverloadedCallCandidate()
12938 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet, in AddOverloadedCallCandidate()
12946 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl, in AddOverloadedCallCandidate()
13075 R.addDecl(Best->FoundDecl.getDecl(), Best->FoundDecl.getAccess()); in DiagnoseTwoPhaseLookup()
13402 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl); in FinishOverloadedCallExpr()
13405 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13463 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13634 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
13638 Best->FoundDecl, Method); in CreateOverloadedUnaryOp()
13656 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
13993 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
14005 Best->FoundDecl, Method); in CreateOverloadedBinOp()
14032 Best->FoundDecl, Base, in CreateOverloadedBinOp()
14437 CheckMemberOperatorAccess(LLoc, Args[0], ArgExpr, Best->FoundDecl); in CreateOverloadedArraySubscriptExpr()
14446 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method); in CreateOverloadedArraySubscriptExpr()
14462 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates, in CreateOverloadedArraySubscriptExpr()
14647 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public); in BuildCallToMemberFunction() local
14652 FoundDecl = MemExpr->getFoundDecl(); in BuildCallToMemberFunction()
14716 FoundDecl = Best->FoundDecl; in BuildCallToMemberFunction()
14717 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl); in BuildCallToMemberFunction()
14718 if (DiagnoseUseOfOverloadedDecl(Best->FoundDecl, UnresExpr->getNameLoc())) in BuildCallToMemberFunction()
14726 if (Method != FoundDecl.getDecl() && in BuildCallToMemberFunction()
14759 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method); in BuildCallToMemberFunction()
14792 FoundDecl, Method); in BuildCallToMemberFunction()
15005 Best->FoundDecl); in BuildCallToObjectOfClassType()
15006 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc)) in BuildCallToObjectOfClassType()
15008 assert(Conv == Best->FoundDecl.getDecl() && in BuildCallToObjectOfClassType()
15016 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl, in BuildCallToObjectOfClassType()
15028 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl); in BuildCallToObjectOfClassType()
15045 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType()
15062 Object.get(), /*Qualifier=*/nullptr, Best->FoundDecl, Method); in BuildCallToObjectOfClassType()
15198 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
15204 Best->FoundDecl, Method); in BuildOverloadedArrowExpr()
15210 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildOverloadedArrowExpr()
15273 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl, in BuildLiteralOperatorCall()