Lines Matching refs:FDecl
882 FunctionDecl *FDecl) { in DefaultVariadicArgumentPromotion() argument
887 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
2736 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local
2739 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
4780 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
4783 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
4787 else if (FDecl) { in getVariadicCallType()
4788 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
4821 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
4824 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
4867 FunctionDecl *FDecl, in ConvertArgumentsForCall() argument
4873 if (FDecl) in ConvertArgumentsForCall()
4874 if (unsigned ID = FDecl->getBuiltinID()) in ConvertArgumentsForCall()
4882 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall()
4893 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
4901 } else if (MinArgs == 1 && FDecl && FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
4906 << FnKind << FDecl->getParamDecl(0) << Fn->getSourceRange(); in ConvertArgumentsForCall()
4915 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
4916 Diag(FDecl->getBeginLoc(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
4931 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
4939 } else if (NumParams == 1 && FDecl && in ConvertArgumentsForCall()
4940 FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
4945 << FnKind << FDecl->getParamDecl(0) in ConvertArgumentsForCall()
4960 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
4961 Diag(FDecl->getBeginLoc(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
4969 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn); in ConvertArgumentsForCall()
4971 Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args, in ConvertArgumentsForCall()
4982 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, in GatherArgumentsForCall() argument
4996 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr; in GatherArgumentsForCall()
5007 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
5011 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
5039 BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
5061 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl && in GatherArgumentsForCall()
5062 FDecl->isExternC()) { in GatherArgumentsForCall()
5073 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
5225 const FunctionDecl *FDecl, in rewriteBuiltinFunctionDecl() argument
5228 QualType DeclType = FDecl->getType(); in rewriteBuiltinFunctionDecl()
5231 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || in rewriteBuiltinFunctionDecl()
5275 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
5276 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
5277 FDecl->getIdentifier(), in rewriteBuiltinFunctionDecl()
5513 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); in ActOnCallExpr() local
5514 if (FDecl && FDecl->getBuiltinID()) { in ActOnCallExpr()
5518 if ((FDecl = in ActOnCallExpr()
5519 rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) { in ActOnCallExpr()
5520 NDecl = FDecl; in ActOnCallExpr()
5522 Context, FDecl->getQualifierLoc(), SourceLocation(), FDecl, false, in ActOnCallExpr()
5523 SourceLocation(), FDecl->getType(), Fn->getValueKind(), FDecl); in ActOnCallExpr()
5588 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); in BuildResolvedCallExpr() local
5589 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
5592 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr()
5604 if (VFP && (!FDecl || !FDecl->hasAttr<ARMInterruptAttr>())) in BuildResolvedCallExpr()
5619 QualType FnPtrTy = Context.getPointerType(FDecl->getType()); in BuildResolvedCallExpr()
5621 ResultTy = FDecl->getCallResultType(); in BuildResolvedCallExpr()
5713 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
5718 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
5720 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
5728 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
5730 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
5736 FDecl)) in BuildResolvedCallExpr()
5744 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc, in BuildResolvedCallExpr()
5750 if (FDecl) { in BuildResolvedCallExpr()
5754 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) { in BuildResolvedCallExpr()
5758 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange(); in BuildResolvedCallExpr()
5763 if (!FDecl->hasPrototype()) in BuildResolvedCallExpr()
5764 Proto = FDecl->getType()->getAs<FunctionProtoType>(); in BuildResolvedCallExpr()
5798 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in BuildResolvedCallExpr()
5808 if (FDecl) { in BuildResolvedCallExpr()
5809 if (CheckFunctionCall(FDecl, TheCall, Proto)) in BuildResolvedCallExpr()
5813 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()