Lines Matching defs:FoundDecl
62 Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl, const Expr *Base,
65 if (S.DiagnoseUseOfDecl(FoundDecl, Loc))
67 // If FoundDecl is different from Fn (such as if one is a template
71 // DiagnoseUseOfDecl to accept both the FoundDecl and the decl
73 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc))
1726 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function);
3793 S.AddTemplateOverloadCandidate(Info.ConstructorTmpl, Info.FoundDecl,
3799 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, From,
3819 User.FoundConversionFunction = Best->FoundDecl;
3930 Info.ConstructorTmpl, Info.FoundDecl,
3938 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl,
3959 DeclAccessPair FoundDecl = I.getPair();
3960 NamedDecl *D = FoundDecl.getDecl();
3974 ConvTemplate, FoundDecl, ActingContext, From, ToType,
3978 S.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, ToType,
4014 User.FoundConversionFunction = Best->FoundDecl;
4031 User.FoundConversionFunction = Best->FoundDecl;
5127 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl;
5139 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function);
5940 Expr *From, NestedNameSpecifier *Qualifier, NamedDecl *FoundDecl,
6015 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method);
6637 for (const DeclAccessPair &FoundDecl : ViableConversions.pairs()) {
6638 NamedDecl *D = FoundDecl.getDecl();
6645 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet,
6651 Conv, FoundDecl, ActingContext, From, ToType, CandidateSet,
6812 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess());
6925 FunctionDecl *Function, DeclAccessPair FoundDecl, ArrayRef<Expr *> Args,
6946 AddMethodCandidate(Method, FoundDecl, Method->getParent(), QualType(),
6986 Candidate.FoundDecl = FoundDecl;
7065 auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl.getDecl());
7534 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, QualType ObjectType,
7540 NamedDecl *Decl = FoundDecl.getDecl();
7549 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext,
7554 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext,
7561 CXXMethodDecl *Method, DeclAccessPair FoundDecl,
7590 Candidate.FoundDecl = FoundDecl;
7746 FunctionTemplateDecl *MethodTmpl, DeclAccessPair FoundDecl,
7780 Candidate.FoundDecl = FoundDecl;
7805 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl,
7819 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl,
7832 Candidate.FoundDecl = FoundDecl;
7866 Candidate.FoundDecl = FoundDecl;
7893 Specialization, FoundDecl, Args, CandidateSet, SuppressUserConversions,
8016 CXXConversionDecl *Conversion, DeclAccessPair FoundDecl,
8058 Candidate.FoundDecl = FoundDecl;
8221 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl,
8236 Candidate.FoundDecl = FoundDecl;
8253 Candidate.FoundDecl = FoundDecl;
8266 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType,
8273 DeclAccessPair FoundDecl,
8287 Candidate.FoundDecl = FoundDecl;
8323 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl;
8495 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none);
10170 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none);
10177 FD, FoundDecl, Args, CandidateSet, /*SuppressUserConversions=*/false,
10182 FD, FoundDecl, {Args[1], Args[0]}, CandidateSet,
10190 FTD, FoundDecl, ExplicitTemplateArgs, Args, CandidateSet,
10196 FTD, FoundDecl, ExplicitTemplateArgs, {Args[1], Args[0]},
10640 dyn_cast<CXXRecordDecl>(Cand1.FoundDecl->getDeclContext());
10642 dyn_cast<CXXRecordDecl>(Cand2.FoundDecl->getDeclContext());
10671 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl());
10673 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl());
11055 void MaybeEmitInheritedConstructorNote(Sema &S, const Decl *FoundDecl) {
11058 if (const auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl))
11059 S.Diag(FoundDecl->getLocation(),
11325 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, Cand->getRewriteKind(),
11352 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11386 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11395 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11404 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11420 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11431 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11445 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11462 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11503 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11516 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11539 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11641 DiagnoseArityMismatch(S, Cand->FoundDecl, Fn, NumFormalArgs,
11949 DiagnoseBadDeduction(S, Cand->FoundDecl, Fn, // pattern
11964 ClassifyOverloadCandidate(S, Cand->FoundDecl, Callee,
12140 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn,
12146 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
12151 S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind());
12178 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
12188 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
12195 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind());
12206 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind());
12226 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
12242 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn,
12838 DiagnoseBadDeduction(S, FoundDecl, Specialization, // pattern
13646 DeclAccessPair FoundDecl,
13652 NamedDecl *Callee = FoundDecl.getDecl();
13665 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet,
13673 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl,
13798 R.addDecl(Best->FoundDecl.getDecl(), Best->FoundDecl.getAccess());
14122 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl);
14126 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
14201 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
14287 ExprResult Sema::BuildCXXMemberCallExpr(Expr *E, NamedDecl *FoundDecl,
14297 FoundDecl, Method);
14336 CreateFunctionRefExpr(*this, Method, FoundDecl, Exp.get(),
14348 DeclAccessPair::make(FoundDecl, FoundDecl->getAccess()),
14450 CheckMemberOperatorAccess(OpLoc, Input, nullptr, Best->FoundDecl);
14457 Input, /*Qualifier=*/nullptr, Best->FoundDecl, Method);
14475 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl,
14825 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl);
14834 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method);
14867 Best->FoundDecl, Base,
15289 CheckMemberOperatorAccess(LLoc, Args[0], ArgExpr, Best->FoundDecl);
15305 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method);
15321 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates,
15500 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public);
15505 FoundDecl = MemExpr->getFoundDecl();
15585 FoundDecl = Best->FoundDecl;
15586 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl);
15587 if (DiagnoseUseOfOverloadedDecl(Best->FoundDecl, UnresExpr->getNameLoc()))
15589 // If FoundDecl is different from Method (such as if one is a template
15593 // DiagnoseUseOfDecl to accept both the FoundDecl and the decl
15595 if (Method != FoundDecl.getDecl() &&
15627 FixOverloadedFunctionReference(MemExprE, FoundDecl, Method);
15658 CreateFunctionRefExpr(*this, Method, FoundDecl, MemExpr,
15669 MemExpr->getBase(), Qualifier, FoundDecl, Method);
15908 Best->FoundDecl);
15909 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc))
15911 assert(Conv == Best->FoundDecl.getDecl() &&
15919 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl,
15931 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl);
15948 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
15966 Object.get(), /*Qualifier=*/nullptr, Best->FoundDecl, Method);
16099 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl);
16111 Base, /*Qualifier=*/nullptr, Best->FoundDecl, Method);
16118 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
16180 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl,