Home | History | Annotate | Download | only in Sema

Lines Matching defs:FDecl

854                                                   FunctionDecl *FDecl) {
859 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) {
2627 FunctionDecl *FDecl = cast<FunctionDecl>(D);
2630 if (FDecl->getBuiltinID() && FDecl->isImplicit())
4040 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto,
4043 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl))
4047 else if (FDecl) {
4048 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
4081 FunctionDecl *FDecl,
4084 DeclarationName FuncName = FDecl->getDeclName();
4121 /// Args/NumArgs to the parameter types of the function FDecl with
4128 FunctionDecl *FDecl,
4135 if (FDecl)
4136 if (unsigned ID = FDecl->getBuiltinID())
4144 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams;
4155 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) {
4163 } else if (MinArgs == 1 && FDecl && FDecl->getParamDecl(0)->getDeclName())
4168 << FnKind << FDecl->getParamDecl(0) << Fn->getSourceRange();
4177 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig)
4178 Diag(FDecl->getLocStart(), diag::note_callee_decl)
4179 << FDecl;
4191 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) {
4199 } else if (NumParams == 1 && FDecl &&
4200 FDecl->getParamDecl(0)->getDeclName())
4205 << FnKind << FDecl->getParamDecl(0)
4220 if (!TC && FDecl && !FDecl->getBuiltinID() && !IsExecConfig)
4221 Diag(FDecl->getLocStart(), diag::note_callee_decl)
4222 << FDecl;
4230 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn);
4232 Invalid = GatherArgumentsForCall(Call->getLocStart(), FDecl,
4243 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl,
4257 ParmVarDecl *Param = FDecl ? FDecl->getParamDecl(i) : nullptr;
4269 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() &&
4273 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() &&
4297 BuildCXXDefaultArgExpr(CallLoc, FDecl, Param);
4319 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl &&
4320 FDecl->isExternC()) {
4332 FDecl);
4652 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl);
4653 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0);
4661 Result = ImpCastExprToType(Fn, Context.getPointerType(FDecl->getType()),
4715 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>())
4717 << FDecl->getName() << Fn->getSourceRange());
4725 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>())
4727 << FDecl->getName() << Fn->getSourceRange());
4733 FDecl))
4742 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc,
4748 if (FDecl) {
4752 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) {
4756 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange();
4761 if (!FDecl->hasPrototype())
4762 Proto = FDecl->getType()->getAs<FunctionProtoType>();
4797 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
4807 if (FDecl) {
4808 if (CheckFunctionCall(FDecl, TheCall, Proto))