Home | History | Annotate | Download | only in Sema

Lines Matching refs:FDecl

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