Lines Matching refs:FDecl

1020                                                   FunctionDecl *FDecl) {  in DefaultVariadicArgumentPromotion()  argument
1025 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
3176 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local
3179 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
6160 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
6163 if (isa_and_nonnull<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
6167 else if (FDecl) { in getVariadicCallType()
6168 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
6205 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
6208 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
6250 FunctionDecl *FDecl, in ConvertArgumentsForCall() argument
6256 if (FDecl) in ConvertArgumentsForCall()
6257 if (unsigned ID = FDecl->getBuiltinID()) in ConvertArgumentsForCall()
6265 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall()
6276 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
6284 } else if (MinArgs == 1 && FDecl && FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
6289 << FnKind << FDecl->getParamDecl(0) << Fn->getSourceRange(); in ConvertArgumentsForCall()
6298 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
6299 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
6314 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
6322 } else if (NumParams == 1 && FDecl && in ConvertArgumentsForCall()
6323 FDecl->getParamDecl(0)->getDeclName()) in ConvertArgumentsForCall()
6328 << FnKind << FDecl->getParamDecl(0) in ConvertArgumentsForCall()
6343 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
6344 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in ConvertArgumentsForCall()
6352 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn); in ConvertArgumentsForCall()
6354 Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args, in ConvertArgumentsForCall()
6366 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, in GatherArgumentsForCall() argument
6380 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr; in GatherArgumentsForCall()
6391 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
6395 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
6423 ExprResult ArgExpr = BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
6445 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl && in GatherArgumentsForCall()
6446 FDecl->isExternC()) { in GatherArgumentsForCall()
6457 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
6635 FunctionDecl *FDecl, in rewriteBuiltinFunctionDecl() argument
6638 QualType DeclType = FDecl->getType(); in rewriteBuiltinFunctionDecl()
6641 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || !FT || in rewriteBuiltinFunctionDecl()
6684 DeclContext *Parent = FDecl->getParent(); in rewriteBuiltinFunctionDecl()
6686 Context, Parent, FDecl->getLocation(), FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
6687 FDecl->getIdentifier(), OverloadTy, in rewriteBuiltinFunctionDecl()
6703 Sema->mergeDeclAttributes(OverloadDecl, FDecl); in rewriteBuiltinFunctionDecl()
6991 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); in BuildCallExpr() local
6992 if (FDecl && FDecl->getBuiltinID()) { in BuildCallExpr()
6996 if ((FDecl = in BuildCallExpr()
6997 rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) { in BuildCallExpr()
6998 NDecl = FDecl; in BuildCallExpr()
7000 Context, FDecl->getQualifierLoc(), SourceLocation(), FDecl, false, in BuildCallExpr()
7001 SourceLocation(), FDecl->getType(), Fn->getValueKind(), FDecl, in BuildCallExpr()
7159 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); in BuildResolvedCallExpr() local
7160 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
7163 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr()
7178 if (VFP && (!FDecl || !FDecl->hasAttr<ARMInterruptAttr>())) { in BuildResolvedCallExpr()
7180 if (FDecl) in BuildResolvedCallExpr()
7181 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
7185 ((!FDecl || !FDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>()))) { in BuildResolvedCallExpr()
7187 if (FDecl) in BuildResolvedCallExpr()
7188 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
7203 QualType FnPtrTy = Context.getPointerType(FDecl->getType()); in BuildResolvedCallExpr()
7205 ResultTy = FDecl->getCallResultType(); in BuildResolvedCallExpr()
7300 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
7305 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
7307 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
7317 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
7319 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
7325 FDecl)) in BuildResolvedCallExpr()
7333 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc, in BuildResolvedCallExpr()
7339 if (FDecl) { in BuildResolvedCallExpr()
7343 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) { in BuildResolvedCallExpr()
7347 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange(); in BuildResolvedCallExpr()
7352 if (!FDecl->hasPrototype()) in BuildResolvedCallExpr()
7353 Proto = FDecl->getType()->getAs<FunctionProtoType>(); in BuildResolvedCallExpr()
7367 (!FDecl || (!FDecl->isImplicit() && in BuildResolvedCallExpr()
7369 FDecl->getLocation())))) in BuildResolvedCallExpr()
7371 << (FDecl != nullptr) << FDecl; in BuildResolvedCallExpr()
7405 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in BuildResolvedCallExpr()
7427 if (FDecl) { in BuildResolvedCallExpr()
7428 if (CheckFunctionCall(FDecl, TheCall, Proto)) in BuildResolvedCallExpr()
7431 checkFortifiedBuiltinMemoryFunction(FDecl, TheCall); in BuildResolvedCallExpr()
7434 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
7443 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FDecl); in BuildResolvedCallExpr()