• Home
  • Raw
  • Download

Lines Matching refs:FDecl

934                                                   FunctionDecl *FDecl) {  in DefaultVariadicArgumentPromotion()  argument
939 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
2701 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local
2704 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
4352 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
4355 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
4359 else if (FDecl) { in getVariadicCallType()
4360 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
4393 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
4396 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
4439 FunctionDecl *FDecl, in ConvertArgumentsForCall() argument
4445 if (FDecl) in ConvertArgumentsForCall()
4446 if (unsigned ID = FDecl->getBuiltinID()) in ConvertArgumentsForCall()
4454 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall()
4465 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
4473 } else if (MinArgs == 1 && FDecl && FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
4478 << FnKind << FDecl->getParamDecl(0) << Fn->getSourceRange(); in ConvertArgumentsForCall()
4487 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
4488 Diag(FDecl->getLocStart(), diag::note_callee_decl) in ConvertArgumentsForCall()
4489 << FDecl; in ConvertArgumentsForCall()
4501 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
4509 } else if (NumParams == 1 && FDecl && in ConvertArgumentsForCall()
4510 FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
4515 << FnKind << FDecl->getParamDecl(0) in ConvertArgumentsForCall()
4530 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
4531 Diag(FDecl->getLocStart(), diag::note_callee_decl) in ConvertArgumentsForCall()
4532 << FDecl; in ConvertArgumentsForCall()
4540 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn); in ConvertArgumentsForCall()
4542 Invalid = GatherArgumentsForCall(Call->getLocStart(), FDecl, in ConvertArgumentsForCall()
4553 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, in GatherArgumentsForCall() argument
4567 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr; in GatherArgumentsForCall()
4579 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
4583 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
4607 BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
4629 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl && in GatherArgumentsForCall()
4630 FDecl->isExternC()) { in GatherArgumentsForCall()
4641 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
4787 const FunctionDecl *FDecl, in rewriteBuiltinFunctionDecl() argument
4790 QualType DeclType = FDecl->getType(); in rewriteBuiltinFunctionDecl()
4793 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || in rewriteBuiltinFunctionDecl()
4830 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
4831 FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
4832 FDecl->getIdentifier(), in rewriteBuiltinFunctionDecl()
4959 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); in ActOnCallExpr() local
4960 if (FDecl && FDecl->getBuiltinID()) { in ActOnCallExpr()
4964 if ((FDecl = rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) { in ActOnCallExpr()
4965 NDecl = FDecl; in ActOnCallExpr()
4966 Fn = DeclRefExpr::Create(Context, FDecl->getQualifierLoc(), in ActOnCallExpr()
4967 SourceLocation(), FDecl, false, in ActOnCallExpr()
4968 SourceLocation(), FDecl->getType(), in ActOnCallExpr()
4969 Fn->getValueKind(), FDecl); in ActOnCallExpr()
5039 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); in BuildResolvedCallExpr() local
5040 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
5048 Result = ImpCastExprToType(Fn, Context.getPointerType(FDecl->getType()), in BuildResolvedCallExpr()
5083 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
5114 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
5116 << FDecl->getName() << Fn->getSourceRange()); in BuildResolvedCallExpr()
5124 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
5126 << FDecl->getName() << Fn->getSourceRange()); in BuildResolvedCallExpr()
5132 FDecl)) in BuildResolvedCallExpr()
5141 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc, in BuildResolvedCallExpr()
5147 if (FDecl) { in BuildResolvedCallExpr()
5151 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) { in BuildResolvedCallExpr()
5155 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange(); in BuildResolvedCallExpr()
5160 if (!FDecl->hasPrototype()) in BuildResolvedCallExpr()
5161 Proto = FDecl->getType()->getAs<FunctionProtoType>(); in BuildResolvedCallExpr()
5196 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in BuildResolvedCallExpr()
5206 if (FDecl) { in BuildResolvedCallExpr()
5207 if (CheckFunctionCall(FDecl, TheCall, Proto)) in BuildResolvedCallExpr()
5211 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()