Lines Matching defs:FDecl

1057                                                   FunctionDecl *FDecl) {
1062 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) {
3154 if (const auto *FDecl = dyn_cast<FunctionDecl>(D)) {
3156 if (FDecl->getBuiltinID() && FDecl->isImplicit())
5724 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto,
5727 if (isa_and_nonnull<CXXConstructorDecl>(FDecl))
5731 else if (FDecl) {
5732 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
5769 FunctionDecl *FDecl,
5772 DeclarationName FuncName = FDecl->getDeclName();
5828 FunctionDecl *FDecl,
5834 if (FDecl)
5835 if (unsigned ID = FDecl->getBuiltinID())
5844 !AddressOf && FDecl && FDecl->hasCXXExplicitFunctionObjectParameter();
5848 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams;
5859 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) {
5870 } else if (MinArgs - ExplicitObjectParameterOffset == 1 && FDecl &&
5871 FDecl->getParamDecl(ExplicitObjectParameterOffset)
5877 << FnKind << FDecl->getParamDecl(ExplicitObjectParameterOffset)
5889 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig)
5890 Diag(FDecl->getLocation(), diag::note_callee_decl)
5891 << FDecl << FDecl->getParametersSourceRange();
5906 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) {
5917 } else if (NumParams - ExplicitObjectParameterOffset == 1 && FDecl &&
5918 FDecl->getParamDecl(ExplicitObjectParameterOffset)
5924 << FnKind << FDecl->getParamDecl(ExplicitObjectParameterOffset)
5943 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig)
5944 Diag(FDecl->getLocation(), diag::note_callee_decl)
5945 << FDecl << FDecl->getParametersSourceRange();
5953 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn);
5955 Invalid = GatherArgumentsForCall(Call->getExprLoc(), FDecl, Proto, 0, Args,
5967 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl,
5981 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr;
5992 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() &&
5996 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() &&
6031 ExprResult ArgExpr = BuildCXXDefaultArgExpr(CallLoc, FDecl, Param);
6053 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl &&
6054 FDecl->isExternC()) {
6065 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl);
6239 FunctionDecl *FDecl,
6242 QualType DeclType = FDecl->getType();
6245 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || !FT ||
6288 DeclContext *Parent = FDecl->getParent();
6290 Context, Parent, FDecl->getLocation(), FDecl->getLocation(),
6291 FDecl->getIdentifier(), OverloadTy,
6307 Sema->mergeDeclAttributes(OverloadDecl, FDecl);
6605 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl);
6606 if (FDecl && FDecl->getBuiltinID()) {
6610 if ((FDecl =
6611 rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) {
6612 NDecl = FDecl;
6614 Context, FDecl->getQualifierLoc(), SourceLocation(), FDecl, false,
6615 SourceLocation(), FDecl->getType(), Fn->getValueKind(), FDecl,
6751 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl);
6752 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0);
6755 if (FDecl) {
6756 if (FDecl->hasAttr<AnyX86InterruptAttr>()) {
6760 if (FDecl->hasAttr<ARMInterruptAttr>()) {
6776 (!FDecl || !FDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>())) {
6779 if (FDecl)
6780 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl;
6796 QualType FnPtrTy = Context.getPointerType(FDecl->getType());
6798 ResultTy = FDecl->getCallResultType();
6893 ExprResult E = CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall);
6895 E = CheckForImmediateInvocation(E, FDecl);
6902 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>())
6904 << FDecl << Fn->getSourceRange());
6914 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>())
6916 << FDecl << Fn->getSourceRange());
6922 FDecl))
6940 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc,
6946 if (FDecl) {
6950 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) {
6954 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange();
6959 if (!FDecl->hasPrototype())
6960 Proto = FDecl->getType()->getAs<FunctionProtoType>();
6974 (!FDecl || (!FDecl->isImplicit() &&
6976 FDecl->getLocation()))))
6978 << (FDecl != nullptr) << FDecl;
7012 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
7034 if (FDecl) {
7035 if (CheckFunctionCall(FDecl, TheCall, Proto))
7038 checkFortifiedBuiltinMemoryFunction(FDecl, TheCall);
7041 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall);
7050 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FDecl);