Lines Matching refs:FoundDecl
48 CreateFunctionRefExpr(Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl,
52 if (S.DiagnoseUseOfDecl(FoundDecl, Loc))
54 // If FoundDecl is different from Fn (such as if one is a template
58 // DiagnoseUseOfDecl to accept both the FoundDecl and the decl
60 if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc))
2984 DeclAccessPair FoundDecl = DeclAccessPair::make(D, D->getAccess());
3005 S.AddTemplateOverloadCandidate(ConstructorTmpl, FoundDecl,
3010 S.AddOverloadCandidate(Constructor, FoundDecl,
3031 User.FoundConversionFunction = Best->FoundDecl;
3116 DeclAccessPair FoundDecl = DeclAccessPair::make(D, D->getAccess());
3145 S.AddTemplateOverloadCandidate(ConstructorTmpl, FoundDecl,
3152 S.AddOverloadCandidate(Constructor, FoundDecl,
3171 DeclAccessPair FoundDecl = I.getPair();
3172 NamedDecl *D = FoundDecl.getDecl();
3186 S.AddTemplateConversionCandidate(ConvTemplate, FoundDecl,
3191 S.AddConversionCandidate(Conv, FoundDecl, ActingContext,
3229 User.FoundConversionFunction = Best->FoundDecl;
3246 User.FoundConversionFunction = Best->FoundDecl;
4201 ICS.UserDefined.FoundConversionFunction = Best->FoundDecl;
4915 NamedDecl *FoundDecl,
4960 PerformObjectMemberConversion(From, Qualifier, FoundDecl, Method);
5374 DeclAccessPair FoundDecl = ViableConversions[I];
5375 NamedDecl *D = FoundDecl.getDecl();
5389 ConvTemplate, FoundDecl, ActingContext, From, ToType, CandidateSet,
5392 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From,
5552 DeclAccessPair::make(Best->Function, Best->FoundDecl.getAccess());
5648 DeclAccessPair FoundDecl,
5669 AddMethodCandidate(Method, FoundDecl, Method->getParent(),
5706 Candidate.FoundDecl = FoundDecl;
6035 void Sema::AddMethodCandidate(DeclAccessPair FoundDecl,
6041 NamedDecl *Decl = FoundDecl.getDecl();
6050 AddMethodTemplateCandidate(TD, FoundDecl, ActingContext,
6056 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext,
6071 Sema::AddMethodCandidate(CXXMethodDecl *Method, DeclAccessPair FoundDecl,
6099 Candidate.FoundDecl = FoundDecl;
6198 DeclAccessPair FoundDecl,
6225 Candidate.FoundDecl = FoundDecl;
6242 AddMethodCandidate(cast<CXXMethodDecl>(Specialization), FoundDecl,
6252 DeclAccessPair FoundDecl,
6276 Candidate.FoundDecl = FoundDecl;
6291 AddOverloadCandidate(Specialization, FoundDecl, Args, CandidateSet,
6342 DeclAccessPair FoundDecl,
6374 Candidate.FoundDecl = FoundDecl;
6509 DeclAccessPair FoundDecl,
6526 Candidate.FoundDecl = FoundDecl;
6541 AddConversionCandidate(Specialization, FoundDecl, ActingDC, From, ToType,
6551 DeclAccessPair FoundDecl,
6564 Candidate.FoundDecl = FoundDecl;
6592 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl;
6725 Candidate.FoundDecl = DeclAccessPair::make(nullptr, AS_none);
8427 DeclAccessPair FoundDecl = DeclAccessPair::make(*I, AS_none);
8432 AddOverloadCandidate(FD, FoundDecl, Args, CandidateSet, false,
8436 FoundDecl, ExplicitTemplateArgs,
10728 DeclAccessPair FoundDecl,
10734 NamedDecl *Callee = FoundDecl.getDecl();
10743 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet,
10751 S.AddTemplateOverloadCandidate(FuncTemplate, FoundDecl,
11134 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl);
11137 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
11190 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
11327 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl);
11331 Best->FoundDecl, Method);
11349 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl,
11538 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl);
11550 Best->FoundDecl, Method);
11577 Best->FoundDecl,
11767 CheckMemberOperatorAccess(LLoc, Args[0], Args[1], Best->FoundDecl);
11773 Best->FoundDecl, Method);
11794 Best->FoundDecl,
11953 DeclAccessPair FoundDecl = DeclAccessPair::make(nullptr, AS_public);
11958 FoundDecl = MemExpr->getFoundDecl();
12021 FoundDecl = Best->FoundDecl;
12022 CheckUnresolvedMemberAccess(UnresExpr, Best->FoundDecl);
12023 if (DiagnoseUseOfDecl(Best->FoundDecl, UnresExpr->getNameLoc()))
12025 // If FoundDecl is different from Method (such as if one is a template
12029 // DiagnoseUseOfDecl to accept both the FoundDecl and the decl
12031 if (Method != FoundDecl.getDecl() &&
12062 MemExprE = FixOverloadedFunctionReference(MemExprE, FoundDecl, Method);
12106 FoundDecl, Method);
12310 Best->FoundDecl);
12311 if (DiagnoseUseOfDecl(Best->FoundDecl, LParenLoc))
12313 assert(Conv == Best->FoundDecl.getDecl() &&
12321 ExprResult Call = BuildCXXMemberCallExpr(Object.get(), Best->FoundDecl,
12333 CheckMemberOperatorAccess(LParenLoc, Object.get(), nullptr, Best->FoundDecl);
12352 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
12390 Best->FoundDecl, Method);
12533 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl);
12539 Best->FoundDecl, Method);
12545 ExprResult FnExpr = CreateFunctionRefExpr(*this, Method, Best->FoundDecl,
12600 ExprResult Fn = CreateFunctionRefExpr(*this, FD, Best->FoundDecl,