Lines Matching defs:FoundDecl

67     Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl, const Expr *Base,
70 if (S.DiagnoseUseOfDecl(FoundDecl, Loc))
72 // If FoundDecl is different from Fn (such as if one is a template
76 // DiagnoseUseOfDecl to accept both the FoundDecl and the decl
78 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc))
1650 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function);
3667 S.AddTemplateOverloadCandidate(Info.ConstructorTmpl, Info.FoundDecl,
3673 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, From,
3693 User.FoundConversionFunction = Best->FoundDecl;
3804 Info.ConstructorTmpl, Info.FoundDecl,
3812 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl,
3833 DeclAccessPair FoundDecl = I.getPair();
3834 NamedDecl *D = FoundDecl.getDecl();
3848 ConvTemplate, FoundDecl, ActingContext, From, ToType,
3852 S.AddConversionCandidate(Conv, FoundDecl, ActingContext, From, ToType,
3888 User.FoundConversionFunction = Best->FoundDecl;
3905 User.FoundConversionFunction = Best->FoundDecl;
5001 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl;
5013 ICS.Ambiguous.addConversion(Cand->FoundDecl, Cand->Function);
5813 Expr *From, NestedNameSpecifier *Qualifier, NamedDecl *FoundDecl,
5886 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method);
6502 DeclAccessPair FoundDecl = ViableConversions[I];
6503 NamedDecl *D = FoundDecl.getDecl();
6517 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet,
6520 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From,
6683 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess());
6796 FunctionDecl *Function, DeclAccessPair FoundDecl, ArrayRef<Expr *> Args,
6816 AddMethodCandidate(Method, FoundDecl, Method->getParent(), QualType(),
6855 Candidate.FoundDecl = FoundDecl;
6917 auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl.getDecl());
7359 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl, QualType ObjectType,
7365 NamedDecl *Decl = FoundDecl.getDecl();
7374 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext,
7379 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext,
7386 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl,
7418 Candidate.FoundDecl = FoundDecl;
7572 FunctionTemplateDecl *MethodTmpl, DeclAccessPair FoundDecl,
7606 Candidate.FoundDecl = FoundDecl;
7631 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl,
7644 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl,
7657 Candidate.FoundDecl = FoundDecl;
7690 Candidate.FoundDecl = FoundDecl;
7717 Specialization, FoundDecl, Args, CandidateSet, SuppressUserConversions,
7839 CXXConversionDecl *Conversion, DeclAccessPair FoundDecl,
7880 Candidate.FoundDecl = FoundDecl;
8041 FunctionTemplateDecl *FunctionTemplate, DeclAccessPair FoundDecl,
8056 Candidate.FoundDecl = FoundDecl;
8073 Candidate.FoundDecl = FoundDecl;
8086 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType,
8092 DeclAccessPair FoundDecl,
8106 Candidate.FoundDecl = FoundDecl;
8142 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl;
8314 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none);
9988 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none);
9995 FD, FoundDecl, Args, CandidateSet, /*SuppressUserConversions=*/false,
10000 FD, FoundDecl, {Args[1], Args[0]}, CandidateSet,
10009 FTD, FoundDecl, ExplicitTemplateArgs, Args, CandidateSet,
10015 FTD, FoundDecl, ExplicitTemplateArgs, {Args[1], Args[0]},
10455 dyn_cast<CXXRecordDecl>(Cand1.FoundDecl->getDeclContext());
10457 dyn_cast<CXXRecordDecl>(Cand2.FoundDecl->getDeclContext());
10486 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl());
10488 isa_and_nonnull<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl());
10870 void MaybeEmitInheritedConstructorNote(Sema &S, const Decl *FoundDecl) {
10873 if (const auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl))
10874 S.Diag(FoundDecl->getLocation(),
11140 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn, Cand->getRewriteKind(),
11167 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11201 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11210 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11219 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11235 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11246 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11260 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11277 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11317 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11330 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11354 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11453 DiagnoseArityMismatch(S, Cand->FoundDecl, Cand->Function, NumFormalArgs,
11759 DiagnoseBadDeduction(S, Cand->FoundDecl, Cand->Function, // pattern
11773 ClassifyOverloadCandidate(S, Cand->FoundDecl, Callee,
11946 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn,
11952 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11957 S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind());
11984 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
11994 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
12001 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind());
12012 return S.NoteOverloadCandidate(Cand->FoundDecl, Fn, Cand->getRewriteKind());
12032 MaybeEmitInheritedConstructorNote(S, Cand->FoundDecl);
12048 ClassifyOverloadCandidate(S, Cand->FoundDecl, Fn,
12644 DiagnoseBadDeduction(S, FoundDecl, Specialization, // pattern
13452 DeclAccessPair FoundDecl,
13458 NamedDecl *Callee = FoundDecl.getDecl();
13471 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet,
13479 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl,
13604 R.addDecl(Best->FoundDecl.getDecl(), Best->FoundDecl.getAccess());
13928 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl);
13932 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
14006 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
14091 ExprResult Sema::BuildCXXMemberCallExpr(Expr *E, NamedDecl *FoundDecl,
14101 FoundDecl, Method);
14140 CreateFunctionRefExpr(*this, Method, FoundDecl, Exp.get(),
14152 DeclAccessPair::make(FoundDecl, FoundDecl->getAccess()),
14254 CheckMemberOperatorAccess(OpLoc, Input, nullptr, Best->FoundDecl);
14261 Input, /*Qualifier=*/nullptr, Best->FoundDecl, Method);
14279 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl,
14627 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl);
14636 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method);
14669 Best->FoundDecl, Base,
15086 CheckMemberOperatorAccess(LLoc, Args[0], ArgExpr, Best->FoundDecl);
15102 Args[0], /*Qualifier=*/nullptr, Best->FoundDecl, Method);
15118 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates,
15295 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public);
15300 FoundDecl = MemExpr->getFoundDecl();
15380 FoundDecl = Best->FoundDecl;
15381 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl);
15382 if (DiagnoseUseOfOverloadedDecl(Best->FoundDecl, UnresExpr->getNameLoc()))
15384 // If FoundDecl is different from Method (such as if one is a template
15388 // DiagnoseUseOfDecl to accept both the FoundDecl and the decl
15390 if (Method != FoundDecl.getDecl() &&
15422 FixOverloadedFunctionReference(MemExprE, FoundDecl, Method);
15453 CreateFunctionRefExpr(*this, Method, FoundDecl, MemExpr,
15466 MemExpr->getBase(), Qualifier, FoundDecl, Method);
15705 Best->FoundDecl);
15706 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc))
15708 assert(Conv == Best->FoundDecl.getDecl() &&
15716 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl,
15728 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl);
15745 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
15763 Object.get(), /*Qualifier=*/nullptr, Best->FoundDecl, Method);
15896 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl);
15908 Base, /*Qualifier=*/nullptr, Best->FoundDecl, Method);
15915 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
15977 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl,