Lines Matching refs:FDecl

977                                                   FunctionDecl *FDecl) {  in DefaultVariadicArgumentPromotion()  argument
982 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
3114 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local
3117 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
5728 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
5731 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
5735 else if (FDecl) { in getVariadicCallType()
5736 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
5773 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
5776 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
5818 FunctionDecl *FDecl, in ConvertArgumentsForCall() argument
5824 if (FDecl) in ConvertArgumentsForCall()
5825 if (unsigned ID = FDecl->getBuiltinID()) in ConvertArgumentsForCall()
5833 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall()
5844 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
5852 } else if (MinArgs == 1 && FDecl && FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
5857 << FnKind << FDecl->getParamDecl(0) << Fn->getSourceRange(); in ConvertArgumentsForCall()
5866 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
5867 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
5882 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
5890 } else if (NumParams == 1 && FDecl && in ConvertArgumentsForCall()
5891 FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
5896 << FnKind << FDecl->getParamDecl(0) in ConvertArgumentsForCall()
5911 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
5912 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
5920 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn); in ConvertArgumentsForCall()
5922 Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args, in ConvertArgumentsForCall()
5934 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, in GatherArgumentsForCall() argument
5948 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr; in GatherArgumentsForCall()
5959 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
5963 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
5991 ExprResult ArgExpr = BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
6013 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl && in GatherArgumentsForCall()
6014 FDecl->isExternC()) { in GatherArgumentsForCall()
6025 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
6202 FunctionDecl *FDecl, in rewriteBuiltinFunctionDecl() argument
6205 QualType DeclType = FDecl->getType(); in rewriteBuiltinFunctionDecl()
6208 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || !FT || in rewriteBuiltinFunctionDecl()
6251 DeclContext *Parent = FDecl->getParent(); in rewriteBuiltinFunctionDecl()
6253 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
6254 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
6255 FDecl->getIdentifier(), in rewriteBuiltinFunctionDecl()
6272 Sema->mergeDeclAttributes(OverloadDecl, FDecl); in rewriteBuiltinFunctionDecl()
6523 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); in BuildCallExpr() local
6524 if (FDecl && FDecl->getBuiltinID()) { in BuildCallExpr()
6528 if ((FDecl = in BuildCallExpr()
6529 rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) { in BuildCallExpr()
6530 NDecl = FDecl; in BuildCallExpr()
6532 Context, FDecl->getQualifierLoc(), SourceLocation(), FDecl, false, in BuildCallExpr()
6533 SourceLocation(), FDecl->getType(), Fn->getValueKind(), FDecl, in BuildCallExpr()
6640 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); in BuildResolvedCallExpr() local
6641 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
6644 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr()
6659 if (VFP && (!FDecl || !FDecl->hasAttr<ARMInterruptAttr>())) { in BuildResolvedCallExpr()
6661 if (FDecl) in BuildResolvedCallExpr()
6662 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
6666 ((!FDecl || !FDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>()))) { in BuildResolvedCallExpr()
6668 if (FDecl) in BuildResolvedCallExpr()
6669 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
6684 QualType FnPtrTy = Context.getPointerType(FDecl->getType()); in BuildResolvedCallExpr()
6686 ResultTy = FDecl->getCallResultType(); in BuildResolvedCallExpr()
6781 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
6786 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
6788 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
6798 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
6800 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
6806 FDecl)) in BuildResolvedCallExpr()
6814 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc, in BuildResolvedCallExpr()
6820 if (FDecl) { in BuildResolvedCallExpr()
6824 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) { in BuildResolvedCallExpr()
6828 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange(); in BuildResolvedCallExpr()
6833 if (!FDecl->hasPrototype()) in BuildResolvedCallExpr()
6834 Proto = FDecl->getType()->getAs<FunctionProtoType>(); in BuildResolvedCallExpr()
6869 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in BuildResolvedCallExpr()
6891 if (FDecl) { in BuildResolvedCallExpr()
6892 if (CheckFunctionCall(FDecl, TheCall, Proto)) in BuildResolvedCallExpr()
6895 checkFortifiedBuiltinMemoryFunction(FDecl, TheCall); in BuildResolvedCallExpr()
6898 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
6907 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FDecl); in BuildResolvedCallExpr()