Lines Matching refs:FDecl
946 FunctionDecl *FDecl) { in DefaultVariadicArgumentPromotion() argument
951 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
2764 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local
2767 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
4600 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
4603 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
4607 else if (FDecl) { in getVariadicCallType()
4608 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
4641 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
4644 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
4687 FunctionDecl *FDecl, in ConvertArgumentsForCall() argument
4693 if (FDecl) in ConvertArgumentsForCall()
4694 if (unsigned ID = FDecl->getBuiltinID()) in ConvertArgumentsForCall()
4702 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall()
4713 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
4721 } else if (MinArgs == 1 && FDecl && FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
4726 << FnKind << FDecl->getParamDecl(0) << Fn->getSourceRange(); in ConvertArgumentsForCall()
4735 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
4736 Diag(FDecl->getLocStart(), diag::note_callee_decl) in ConvertArgumentsForCall()
4737 << FDecl; in ConvertArgumentsForCall()
4749 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
4757 } else if (NumParams == 1 && FDecl && in ConvertArgumentsForCall()
4758 FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
4763 << FnKind << FDecl->getParamDecl(0) in ConvertArgumentsForCall()
4778 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
4779 Diag(FDecl->getLocStart(), diag::note_callee_decl) in ConvertArgumentsForCall()
4780 << FDecl; in ConvertArgumentsForCall()
4788 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn); in ConvertArgumentsForCall()
4790 Invalid = GatherArgumentsForCall(Call->getLocStart(), FDecl, in ConvertArgumentsForCall()
4801 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, in GatherArgumentsForCall() argument
4815 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr; in GatherArgumentsForCall()
4827 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
4831 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
4855 BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
4877 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl && in GatherArgumentsForCall()
4878 FDecl->isExternC()) { in GatherArgumentsForCall()
4889 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
5038 const FunctionDecl *FDecl, in rewriteBuiltinFunctionDecl() argument
5041 QualType DeclType = FDecl->getType(); in rewriteBuiltinFunctionDecl()
5044 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || in rewriteBuiltinFunctionDecl()
5081 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
5082 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
5083 FDecl->getIdentifier(), in rewriteBuiltinFunctionDecl()
5218 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); in ActOnCallExpr() local
5219 if (FDecl && FDecl->getBuiltinID()) { in ActOnCallExpr()
5223 if ((FDecl = rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) { in ActOnCallExpr()
5224 NDecl = FDecl; in ActOnCallExpr()
5225 Fn = DeclRefExpr::Create(Context, FDecl->getQualifierLoc(), in ActOnCallExpr()
5226 SourceLocation(), FDecl, false, in ActOnCallExpr()
5227 SourceLocation(), FDecl->getType(), in ActOnCallExpr()
5228 Fn->getValueKind(), FDecl); in ActOnCallExpr()
5310 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); in BuildResolvedCallExpr() local
5311 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
5314 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr()
5325 Result = ImpCastExprToType(Fn, Context.getPointerType(FDecl->getType()), in BuildResolvedCallExpr()
5360 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
5391 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
5393 << FDecl->getName() << Fn->getSourceRange()); in BuildResolvedCallExpr()
5401 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
5403 << FDecl->getName() << Fn->getSourceRange()); in BuildResolvedCallExpr()
5409 FDecl)) in BuildResolvedCallExpr()
5418 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc, in BuildResolvedCallExpr()
5424 if (FDecl) { in BuildResolvedCallExpr()
5428 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) { in BuildResolvedCallExpr()
5432 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange(); in BuildResolvedCallExpr()
5437 if (!FDecl->hasPrototype()) in BuildResolvedCallExpr()
5438 Proto = FDecl->getType()->getAs<FunctionProtoType>(); in BuildResolvedCallExpr()
5473 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in BuildResolvedCallExpr()
5483 if (FDecl) { in BuildResolvedCallExpr()
5484 if (CheckFunctionCall(FDecl, TheCall, Proto)) in BuildResolvedCallExpr()
5488 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()