Lines Matching refs:FDecl

962                                                   FunctionDecl *FDecl) {  in DefaultVariadicArgumentPromotion()  argument
967 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
3104 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local
3107 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
5690 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
5693 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
5697 else if (FDecl) { in getVariadicCallType()
5698 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
5735 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
5738 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
5780 FunctionDecl *FDecl, in ConvertArgumentsForCall() argument
5786 if (FDecl) in ConvertArgumentsForCall()
5787 if (unsigned ID = FDecl->getBuiltinID()) in ConvertArgumentsForCall()
5795 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall()
5806 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
5814 } else if (MinArgs == 1 && FDecl && FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
5819 << FnKind << FDecl->getParamDecl(0) << Fn->getSourceRange(); in ConvertArgumentsForCall()
5828 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
5829 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
5844 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
5852 } else if (NumParams == 1 && FDecl && in ConvertArgumentsForCall()
5853 FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
5858 << FnKind << FDecl->getParamDecl(0) in ConvertArgumentsForCall()
5873 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
5874 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
5882 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn); in ConvertArgumentsForCall()
5884 Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args, in ConvertArgumentsForCall()
5895 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, in GatherArgumentsForCall() argument
5909 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr; in GatherArgumentsForCall()
5920 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
5924 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
5952 ExprResult ArgExpr = BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
5974 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl && in GatherArgumentsForCall()
5975 FDecl->isExternC()) { in GatherArgumentsForCall()
5986 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
6163 FunctionDecl *FDecl, in rewriteBuiltinFunctionDecl() argument
6166 QualType DeclType = FDecl->getType(); in rewriteBuiltinFunctionDecl()
6169 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || !FT || in rewriteBuiltinFunctionDecl()
6212 DeclContext *Parent = FDecl->getParent(); in rewriteBuiltinFunctionDecl()
6214 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
6215 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
6216 FDecl->getIdentifier(), in rewriteBuiltinFunctionDecl()
6233 Sema->mergeDeclAttributes(OverloadDecl, FDecl); in rewriteBuiltinFunctionDecl()
6483 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); in BuildCallExpr() local
6484 if (FDecl && FDecl->getBuiltinID()) { in BuildCallExpr()
6488 if ((FDecl = in BuildCallExpr()
6489 rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) { in BuildCallExpr()
6490 NDecl = FDecl; in BuildCallExpr()
6492 Context, FDecl->getQualifierLoc(), SourceLocation(), FDecl, false, in BuildCallExpr()
6493 SourceLocation(), FDecl->getType(), Fn->getValueKind(), FDecl, in BuildCallExpr()
6577 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); in BuildResolvedCallExpr() local
6578 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
6581 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr()
6596 if (VFP && (!FDecl || !FDecl->hasAttr<ARMInterruptAttr>())) { in BuildResolvedCallExpr()
6598 if (FDecl) in BuildResolvedCallExpr()
6599 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
6603 ((!FDecl || !FDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>()))) { in BuildResolvedCallExpr()
6605 if (FDecl) in BuildResolvedCallExpr()
6606 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
6621 QualType FnPtrTy = Context.getPointerType(FDecl->getType()); in BuildResolvedCallExpr()
6623 ResultTy = FDecl->getCallResultType(); in BuildResolvedCallExpr()
6718 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
6723 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
6725 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
6735 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
6737 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
6743 FDecl)) in BuildResolvedCallExpr()
6751 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc, in BuildResolvedCallExpr()
6757 if (FDecl) { in BuildResolvedCallExpr()
6761 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) { in BuildResolvedCallExpr()
6765 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange(); in BuildResolvedCallExpr()
6770 if (!FDecl->hasPrototype()) in BuildResolvedCallExpr()
6771 Proto = FDecl->getType()->getAs<FunctionProtoType>(); in BuildResolvedCallExpr()
6805 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in BuildResolvedCallExpr()
6827 if (FDecl) { in BuildResolvedCallExpr()
6828 if (CheckFunctionCall(FDecl, TheCall, Proto)) in BuildResolvedCallExpr()
6831 checkFortifiedBuiltinMemoryFunction(FDecl, TheCall); in BuildResolvedCallExpr()
6834 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
6843 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FDecl); in BuildResolvedCallExpr()