Lines Matching refs:FDecl

1040                                                   FunctionDecl *FDecl) {  in DefaultVariadicArgumentPromotion()  argument
1045 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
3375 if (const auto *FDecl = dyn_cast<FunctionDecl>(D)) { in UseArgumentDependentLookup() local
3377 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
6443 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
6446 if (isa_and_nonnull<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
6450 else if (FDecl) { in getVariadicCallType()
6451 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
6488 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
6491 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
6533 FunctionDecl *FDecl, in ConvertArgumentsForCall() argument
6539 if (FDecl) in ConvertArgumentsForCall()
6540 if (unsigned ID = FDecl->getBuiltinID()) in ConvertArgumentsForCall()
6547 FDecl && FDecl->hasCXXExplicitFunctionObjectParameter(); in ConvertArgumentsForCall()
6551 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall()
6562 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
6573 } else if (MinArgs - ExplicitObjectParameterOffset == 1 && FDecl && in ConvertArgumentsForCall()
6574 FDecl->getParamDecl(ExplicitObjectParameterOffset) in ConvertArgumentsForCall()
6580 << FnKind << FDecl->getParamDecl(ExplicitObjectParameterOffset) in ConvertArgumentsForCall()
6592 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
6593 Diag(FDecl->getLocation(), diag::note_callee_decl) in ConvertArgumentsForCall()
6594 << FDecl << FDecl->getParametersSourceRange(); in ConvertArgumentsForCall()
6609 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) { in ConvertArgumentsForCall()
6620 } else if (NumParams - ExplicitObjectParameterOffset == 1 && FDecl && in ConvertArgumentsForCall()
6621 FDecl->getParamDecl(ExplicitObjectParameterOffset) in ConvertArgumentsForCall()
6627 << FnKind << FDecl->getParamDecl(ExplicitObjectParameterOffset) in ConvertArgumentsForCall()
6646 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig) in ConvertArgumentsForCall()
6647 Diag(FDecl->getLocation(), diag::note_callee_decl) in ConvertArgumentsForCall()
6648 << FDecl << FDecl->getParametersSourceRange(); in ConvertArgumentsForCall()
6656 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn); in ConvertArgumentsForCall()
6658 Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args, in ConvertArgumentsForCall()
6670 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, in GatherArgumentsForCall() argument
6684 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr; in GatherArgumentsForCall()
6695 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
6699 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
6727 ExprResult ArgExpr = BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
6749 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl && in GatherArgumentsForCall()
6750 FDecl->isExternC()) { in GatherArgumentsForCall()
6761 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
6939 FunctionDecl *FDecl, in rewriteBuiltinFunctionDecl() argument
6942 QualType DeclType = FDecl->getType(); in rewriteBuiltinFunctionDecl()
6945 if (!Context.BuiltinInfo.hasPtrArgsOrResult(FDecl->getBuiltinID()) || !FT || in rewriteBuiltinFunctionDecl()
6988 DeclContext *Parent = FDecl->getParent(); in rewriteBuiltinFunctionDecl()
6990 Context, Parent, FDecl->getLocation(), FDecl->getLocation(), in rewriteBuiltinFunctionDecl()
6991 FDecl->getIdentifier(), OverloadTy, in rewriteBuiltinFunctionDecl()
7007 Sema->mergeDeclAttributes(OverloadDecl, FDecl); in rewriteBuiltinFunctionDecl()
7294 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); in BuildCallExpr() local
7295 if (FDecl && FDecl->getBuiltinID()) { in BuildCallExpr()
7299 if ((FDecl = in BuildCallExpr()
7300 rewriteBuiltinFunctionDecl(this, Context, FDecl, ArgExprs))) { in BuildCallExpr()
7301 NDecl = FDecl; in BuildCallExpr()
7303 Context, FDecl->getQualifierLoc(), SourceLocation(), FDecl, false, in BuildCallExpr()
7304 SourceLocation(), FDecl->getType(), Fn->getValueKind(), FDecl, in BuildCallExpr()
7457 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); in BuildResolvedCallExpr() local
7458 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
7461 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr()
7476 if (VFP && (!FDecl || !FDecl->hasAttr<ARMInterruptAttr>())) { in BuildResolvedCallExpr()
7478 if (FDecl) in BuildResolvedCallExpr()
7479 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
7488 (!FDecl || !FDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>())) { in BuildResolvedCallExpr()
7491 if (FDecl) in BuildResolvedCallExpr()
7492 Diag(FDecl->getLocation(), diag::note_callee_decl) << FDecl; in BuildResolvedCallExpr()
7508 QualType FnPtrTy = Context.getPointerType(FDecl->getType()); in BuildResolvedCallExpr()
7510 ResultTy = FDecl->getCallResultType(); in BuildResolvedCallExpr()
7605 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
7610 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
7612 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
7622 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
7624 << FDecl << Fn->getSourceRange()); in BuildResolvedCallExpr()
7630 FDecl)) in BuildResolvedCallExpr()
7648 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc, in BuildResolvedCallExpr()
7654 if (FDecl) { in BuildResolvedCallExpr()
7658 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) { in BuildResolvedCallExpr()
7662 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange(); in BuildResolvedCallExpr()
7667 if (!FDecl->hasPrototype()) in BuildResolvedCallExpr()
7668 Proto = FDecl->getType()->getAs<FunctionProtoType>(); in BuildResolvedCallExpr()
7682 (!FDecl || (!FDecl->isImplicit() && in BuildResolvedCallExpr()
7684 FDecl->getLocation())))) in BuildResolvedCallExpr()
7686 << (FDecl != nullptr) << FDecl; in BuildResolvedCallExpr()
7720 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in BuildResolvedCallExpr()
7742 if (FDecl) { in BuildResolvedCallExpr()
7743 if (CheckFunctionCall(FDecl, TheCall, Proto)) in BuildResolvedCallExpr()
7746 checkFortifiedBuiltinMemoryFunction(FDecl, TheCall); in BuildResolvedCallExpr()
7749 return CheckBuiltinFunctionCall(FDecl, BuiltinID, TheCall); in BuildResolvedCallExpr()
7758 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FDecl); in BuildResolvedCallExpr()