Lines Matching refs:FDecl

1016                                                   FunctionDecl *FDecl) {  in DefaultVariadicArgumentPromotion()  argument
1021 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
3173 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local
3176 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
5921 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
5924 if (isa_and_nonnull<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
5928 else if (FDecl) { in getVariadicCallType()
5929 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
5966 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
5969 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
6011 FunctionDecl *FDecl, in ConvertArgumentsForCall() argument
6017 if (FDecl) in ConvertArgumentsForCall()
6018 if (unsigned ID = FDecl->getBuiltinID()) in ConvertArgumentsForCall()
6026 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall()
6037 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
6045 } else if (MinArgs == 1 && FDecl && FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
6050 << FnKind << FDecl->getParamDecl(0) << Fn->getSourceRange(); in ConvertArgumentsForCall()
6059 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
6060 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
6075 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
6083 } else if (NumParams == 1 && FDecl && in ConvertArgumentsForCall()
6084 FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
6089 << FnKind << FDecl->getParamDecl(0) in ConvertArgumentsForCall()
6104 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
6105 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
6113 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn); in ConvertArgumentsForCall()
6115 Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args, in ConvertArgumentsForCall()
6127 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, in GatherArgumentsForCall() argument
6141 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr; in GatherArgumentsForCall()
6152 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
6156 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
6184 ExprResult ArgExpr = BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
6206 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl && in GatherArgumentsForCall()
6207 FDecl->isExternC()) { in GatherArgumentsForCall()
6218 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
6395 FunctionDecl *FDecl, in rewriteBuiltinFunctionDecl() argument
6398 QualType DeclType = FDecl->getType(); in rewriteBuiltinFunctionDecl()
6401 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || !FT || in rewriteBuiltinFunctionDecl()
6444 DeclContext *Parent = FDecl->getParent(); in rewriteBuiltinFunctionDecl()
6446 Context, Parent, FDecl->getLocation(), FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
6447 FDecl->getIdentifier(), OverloadTy, in rewriteBuiltinFunctionDecl()
6463 Sema->mergeDeclAttributes(OverloadDecl, FDecl); in rewriteBuiltinFunctionDecl()
6751 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); in BuildCallExpr() local
6752 if (FDecl && FDecl->getBuiltinID()) { in BuildCallExpr()
6756 if ((FDecl = in BuildCallExpr()
6757 rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) { in BuildCallExpr()
6758 NDecl = FDecl; in BuildCallExpr()
6760 Context, FDecl->getQualifierLoc(), SourceLocation(), FDecl, false, in BuildCallExpr()
6761 SourceLocation(), FDecl->getType(), Fn->getValueKind(), FDecl, in BuildCallExpr()
6919 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); in BuildResolvedCallExpr() local
6920 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
6923 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr()
6938 if (VFP && (!FDecl || !FDecl->hasAttr<ARMInterruptAttr>())) { in BuildResolvedCallExpr()
6940 if (FDecl) in BuildResolvedCallExpr()
6941 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
6945 ((!FDecl || !FDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>()))) { in BuildResolvedCallExpr()
6947 if (FDecl) in BuildResolvedCallExpr()
6948 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
6963 QualType FnPtrTy = Context.getPointerType(FDecl->getType()); in BuildResolvedCallExpr()
6965 ResultTy = FDecl->getCallResultType(); in BuildResolvedCallExpr()
7060 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
7065 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
7067 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
7077 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
7079 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
7085 FDecl)) in BuildResolvedCallExpr()
7093 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc, in BuildResolvedCallExpr()
7099 if (FDecl) { in BuildResolvedCallExpr()
7103 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) { in BuildResolvedCallExpr()
7107 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange(); in BuildResolvedCallExpr()
7112 if (!FDecl->hasPrototype()) in BuildResolvedCallExpr()
7113 Proto = FDecl->getType()->getAs<FunctionProtoType>(); in BuildResolvedCallExpr()
7127 (!FDecl || (!FDecl->isImplicit() && in BuildResolvedCallExpr()
7129 FDecl->getLocation())))) in BuildResolvedCallExpr()
7131 << (FDecl != nullptr) << FDecl; in BuildResolvedCallExpr()
7165 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in BuildResolvedCallExpr()
7187 if (FDecl) { in BuildResolvedCallExpr()
7188 if (CheckFunctionCall(FDecl, TheCall, Proto)) in BuildResolvedCallExpr()
7191 checkFortifiedBuiltinMemoryFunction(FDecl, TheCall); in BuildResolvedCallExpr()
7194 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
7203 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FDecl); in BuildResolvedCallExpr()