Lines Matching refs:FDecl

1025                                                   FunctionDecl *FDecl) {  in DefaultVariadicArgumentPromotion()  argument
1030 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
3115 if (const auto *FDecl = dyn_cast<FunctionDecl>(D)) { in UseArgumentDependentLookup() local
3117 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
5651 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
5654 if (isa_and_nonnull<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
5658 else if (FDecl) { in getVariadicCallType()
5659 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
5696 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
5699 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
5755 FunctionDecl *FDecl, in ConvertArgumentsForCall() argument
5761 if (FDecl) in ConvertArgumentsForCall()
5762 if (unsigned ID = FDecl->getBuiltinID()) in ConvertArgumentsForCall()
5771 !AddressOf && FDecl && FDecl->hasCXXExplicitFunctionObjectParameter(); in ConvertArgumentsForCall()
5775 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall()
5786 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
5797 } else if (MinArgs - ExplicitObjectParameterOffset == 1 && FDecl && in ConvertArgumentsForCall()
5798 FDecl->getParamDecl(ExplicitObjectParameterOffset) in ConvertArgumentsForCall()
5804 << FnKind << FDecl->getParamDecl(ExplicitObjectParameterOffset) in ConvertArgumentsForCall()
5816 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
5817 Diag(FDecl->getLocation(), diag::note_callee_decl) in ConvertArgumentsForCall()
5818 << FDecl << FDecl->getParametersSourceRange(); in ConvertArgumentsForCall()
5833 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
5844 } else if (NumParams - ExplicitObjectParameterOffset == 1 && FDecl && in ConvertArgumentsForCall()
5845 FDecl->getParamDecl(ExplicitObjectParameterOffset) in ConvertArgumentsForCall()
5851 << FnKind << FDecl->getParamDecl(ExplicitObjectParameterOffset) in ConvertArgumentsForCall()
5870 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
5871 Diag(FDecl->getLocation(), diag::note_callee_decl) in ConvertArgumentsForCall()
5872 << FDecl << FDecl->getParametersSourceRange(); in ConvertArgumentsForCall()
5880 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn); in ConvertArgumentsForCall()
5882 Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args, in ConvertArgumentsForCall()
5894 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, in GatherArgumentsForCall() argument
5908 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr; in GatherArgumentsForCall()
5919 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
5923 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
5951 ExprResult ArgExpr = BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
5973 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl && in GatherArgumentsForCall()
5974 FDecl->isExternC()) { in GatherArgumentsForCall()
5985 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
6157 FunctionDecl *FDecl, in rewriteBuiltinFunctionDecl() argument
6160 QualType DeclType = FDecl->getType(); in rewriteBuiltinFunctionDecl()
6163 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || !FT || in rewriteBuiltinFunctionDecl()
6206 DeclContext *Parent = FDecl->getParent(); in rewriteBuiltinFunctionDecl()
6208 Context, Parent, FDecl->getLocation(), FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
6209 FDecl->getIdentifier(), OverloadTy, in rewriteBuiltinFunctionDecl()
6225 Sema->mergeDeclAttributes(OverloadDecl, FDecl); in rewriteBuiltinFunctionDecl()
6517 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); in BuildCallExpr() local
6518 if (FDecl && FDecl->getBuiltinID()) { in BuildCallExpr()
6522 if ((FDecl = in BuildCallExpr()
6523 rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) { in BuildCallExpr()
6524 NDecl = FDecl; in BuildCallExpr()
6526 Context, FDecl->getQualifierLoc(), SourceLocation(), FDecl, false, in BuildCallExpr()
6527 SourceLocation(), FDecl->getType(), Fn->getValueKind(), FDecl, in BuildCallExpr()
6663 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); in BuildResolvedCallExpr() local
6664 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
6667 if (FDecl) { in BuildResolvedCallExpr()
6668 if (FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr()
6672 if (FDecl->hasAttr<ARMInterruptAttr>()) { in BuildResolvedCallExpr()
6688 (!FDecl || !FDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>())) { in BuildResolvedCallExpr()
6691 if (FDecl) in BuildResolvedCallExpr()
6692 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
6708 QualType FnPtrTy = Context.getPointerType(FDecl->getType()); in BuildResolvedCallExpr()
6710 ResultTy = FDecl->getCallResultType(); in BuildResolvedCallExpr()
6805 ExprResult E = CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
6807 E = CheckForImmediateInvocation(E, FDecl); in BuildResolvedCallExpr()
6814 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
6816 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
6826 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
6828 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
6834 FDecl)) in BuildResolvedCallExpr()
6852 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc, in BuildResolvedCallExpr()
6858 if (FDecl) { in BuildResolvedCallExpr()
6862 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) { in BuildResolvedCallExpr()
6866 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange(); in BuildResolvedCallExpr()
6871 if (!FDecl->hasPrototype()) in BuildResolvedCallExpr()
6872 Proto = FDecl->getType()->getAs<FunctionProtoType>(); in BuildResolvedCallExpr()
6886 (!FDecl || (!FDecl->isImplicit() && in BuildResolvedCallExpr()
6888 FDecl->getLocation())))) in BuildResolvedCallExpr()
6890 << (FDecl != nullptr) << FDecl; in BuildResolvedCallExpr()
6924 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in BuildResolvedCallExpr()
6946 if (FDecl) { in BuildResolvedCallExpr()
6947 if (CheckFunctionCall(FDecl, TheCall, Proto)) in BuildResolvedCallExpr()
6950 checkFortifiedBuiltinMemoryFunction(FDecl, TheCall); in BuildResolvedCallExpr()
6953 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
6962 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FDecl); in BuildResolvedCallExpr()