Lines Matching refs:FunctionDecl
63 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
103 void Sema::NoteDeletedFunction(FunctionDecl *Decl) {
125 /// Determine whether a FunctionDecl was ever declared with an
127 static bool hasAnyExplicitStorageClass(const FunctionDecl *D) {
153 FunctionDecl *Current = S.getCurFunctionDecl();
172 const FunctionDecl *UsedFn = dyn_cast<FunctionDecl>(D);
187 void Sema::MaybeSuggestAddingStaticToDecl(const FunctionDecl *Cur) {
188 const FunctionDecl *First = Cur->getFirstDecl();
216 if (getLangOpts().CPlusPlus && isa<FunctionDecl>(D)) {
233 if (cast<FunctionDecl>(D)->isMain())
236 diagnoseUnavailableAlignedAllocation(*cast<FunctionDecl>(D), Loc);
251 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
402 } else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
499 if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl()))
947 FunctionDecl *FDecl) {
2180 else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(CD))
3018 if (isa<FunctionDecl>(D)) {
3019 FunctionDecl *FDecl = cast<FunctionDecl>(D);
3062 const auto *FD = dyn_cast<FunctionDecl>(R.getFoundDecl());
3266 if (unsigned BID = cast<FunctionDecl>(VD)->getBuiltinID()) {
3295 if (!cast<FunctionDecl>(VD)->hasPrototype() &&
5557 bool Sema::CheckCXXDefaultArgExpr(SourceLocation CallLoc, FunctionDecl *FD,
5613 FunctionDecl *FD, ParmVarDecl *Param) {
5621 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto,
5666 FunctionDecl *FDecl,
5682 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(CD))
5711 FunctionDecl *FDecl,
5826 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl,
6087 /// FunctionDecl is returned.
6089 static FunctionDecl *rewriteBuiltinFunctionDecl(Sema *Sema, ASTContext &Context,
6090 FunctionDecl *FDecl,
6140 FunctionDecl *OverloadDecl = FunctionDecl::Create(Context, Parent,
6165 FunctionDecl *Callee,
6408 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl);
6425 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(NDecl)) {
6484 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl);
6652 const FunctionDecl *Def = nullptr;
9355 if (FunctionDecl *FD = ResolveAddressOfOverloadedFunction(
11646 if (isa<FunctionDecl>(DC))
12330 if (auto *FD = dyn_cast<FunctionDecl>(DC))
12438 const FunctionDecl *FD = CE->getDirectCallee();
13214 if (auto *FD = dyn_cast_or_null<FunctionDecl>(dcl))
13338 } else if (!isa<FunctionDecl>(dcl) && !isa<NonTypeTemplateParmDecl>(dcl) &&
13374 if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(Param->getDeclContext()))
14102 FunctionDecl *FD = OCE->getDirectCallee();
15322 if (const FunctionDecl *F = dyn_cast<FunctionDecl>(CurContext)) {
15525 auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl());
16120 ExprResult Sema::CheckForImmediateInvocation(ExprResult E, FunctionDecl *Decl) {
16157 FunctionDecl *FD = nullptr;
16159 FD = cast<FunctionDecl>(Call->getCalleeDecl());
16293 auto *FD = cast<FunctionDecl>(DR->getDecl());
16415 static bool funcHasParameterSizeMangling(Sema &S, FunctionDecl *FD) {
16449 static void CheckCompleteParameterTypesForMangler(Sema &S, FunctionDecl *FD,
16452 FunctionDecl *FD;
16456 ParamIncompleteTypeDiagnoser(FunctionDecl *FD, ParmVarDecl *Param)
16534 static bool isImplicitlyDefinableConstexprFunction(FunctionDecl *Func) {
16541 void Sema::MarkFunctionReferenced(SourceLocation Loc, FunctionDecl *Func,
16843 } else if (isa<FunctionDecl>(VarDC)) {
18085 if (auto *FD = dyn_cast<FunctionDecl>(E->getDecl()))
18129 if (auto *FD = dyn_cast<FunctionDecl>(D)) {
18191 S.MarkFunctionReferenced(Loc, cast<FunctionDecl>(D));
18287 CallExpr *CE, FunctionDecl *FD) {
18300 FunctionDecl *FD;
18304 CallReturnIncompleteDiagnoser(FunctionDecl *FD, CallExpr *CE)
18532 if (!isa<FunctionDecl>(VD)) return VisitExpr(E);
18828 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(VD)) {
18843 // We must match the FunctionDecl's type to the hack introduced in
18852 FunctionDecl *NewFD = FunctionDecl::Create(
19075 auto *FD = cast<FunctionDecl>(DRE->getDecl());