Home | History | Annotate | Download | only in Sema

Lines Matching refs:Args

334                                  ArrayRef<Expr *> Args) {
387 // the sentinel, and the args after the sentinel, complain.
388 if (Args.size() < numFormalParams + numArgsAfterSentinel + 1) {
395 Expr *sentinelExpr = Args[Args.size() - numArgsAfterSentinel - 1];
1470 ArrayRef<Expr*> Args,
1472 assert(Args.size() <= 2 && "too many arguments for literal operator");
1475 for (unsigned ArgIdx = 0; ArgIdx != Args.size(); ++ArgIdx) {
1476 ArgTy[ArgIdx] = Args[ArgIdx]->getType();
1487 if (S.LookupLiteralOperator(Scope, R, llvm::makeArrayRef(ArgTy, Args.size()),
1492 return S.BuildLiteralOperatorCall(R, OpNameInfo, Args, LitEndLoc);
1587 Expr *Args[] = { Lit, LenArg };
1589 return BuildLiteralOperatorCall(R, OpNameInfo, Args, StringTokLocs.back());
1728 ArrayRef<Expr *> Args) {
1867 Args, OCS);
1871 Args, OCS);
4082 ArrayRef<Expr *> Args) {
4086 FunctionCallCCC CCC(S, FuncName.getAsIdentifierInfo(), Args.size(), ME);
4100 S.AddOverloadCandidate(FD, DeclAccessPair::make(FD, AS_none), Args,
4121 /// Args/NumArgs to the parameter types of the function FDecl with
4130 ArrayRef<Expr *> Args,
4152 if (Args.size() < NumParams) {
4153 if (Args.size() < MinArgs) {
4155 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) {
4161 << static_cast<unsigned>(Args.size())
4173 << FnKind << MinArgs << static_cast<unsigned>(Args.size())
4188 if (Args.size() > NumParams) {
4191 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) {
4197 << static_cast<unsigned>(Args.size())
4201 Diag(Args[NumParams]->getLocStart(),
4206 << static_cast<unsigned>(Args.size()) << Fn->getSourceRange()
4207 << SourceRange(Args[NumParams]->getLocStart(),
4208 Args.back()->getLocEnd());
4210 Diag(Args[NumParams]->getLocStart(),
4214 << FnKind << NumParams << static_cast<unsigned>(Args.size())
4216 << SourceRange(Args[NumParams]->getLocStart(),
4217 Args.back()->getLocEnd());
4233 Proto, 0, Args, AllArgs, CallType);
4245 unsigned FirstParam, ArrayRef<Expr *> Args,
4252 // Continue to check argument types (even if we have too few/many args).
4258 if (ArgIx < Args.size()) {
4259 Arg = Args[ArgIx++];
4315 // If this is a variadic call, handle args passed through "...".
4321 for (unsigned i = ArgIx, e = Args.size(); i != e; ++i) {
4323 ExprResult arg = checkUnknownAnyArg(CallLoc, Args[i], paramType);
4330 for (unsigned i = ArgIx, e = Args.size(); i != e; ++i) {
4331 ExprResult Arg = DefaultVariadicArgumentPromotion(Args[i], CallType,
4339 for (unsigned i = ArgIx, e = Args.size(); i != e; ++i)
4340 CheckArrayAccess(Args[i]);
4448 static bool checkArgsForPlaceholders(Sema &S, MultiExprArg args) {
4452 for (size_t i = 0, e = args.size(); i != e; i++) {
4453 if (isPlaceholderToRemoveAsArg(args[i]->getType())) {
4454 ExprResult result = S.CheckPlaceholderExpr(args[i]);
4456 else args[i] = result.get();
4649 ArrayRef<Expr *> Args,
4675 cast<CallExpr>(Config), Args,
4679 TheCall = new (Context) CallExpr(Context, Fn, Args, Context.BoolTy,
4742 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc,
4752 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) {
4754 if (!Proto || !(Proto->isVariadic() && Args.size() >= Def->param_size()))
4756 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange();
4766 for (unsigned i = 0, e = Args.size(); i != e; i++) {
4767 Expr *Arg = Args[i];
4804 DiagnoseSentinelCalls(NDecl, LParenLoc, Args);
12650 const TemplateArgumentList &Args = Spec->getTemplateArgs();
12651 return TraverseTemplateArguments(Args.data(), Args.size());