Home | History | Annotate | Download | only in Sema

Lines Matching defs:Args

397                                  ArrayRef<Expr *> Args) {
450 // the sentinel, and the args after the sentinel, complain.
451 if (Args.size() < numFormalParams + numArgsAfterSentinel + 1) {
458 Expr *sentinelExpr = Args[Args.size() - numArgsAfterSentinel - 1];
1510 ArrayRef<Expr*> Args,
1512 assert(Args.size() <= 2 && "too many arguments for literal operator");
1515 for (unsigned ArgIdx = 0; ArgIdx != Args.size(); ++ArgIdx) {
1516 ArgTy[ArgIdx] = Args[ArgIdx]->getType();
1527 if (S.LookupLiteralOperator(Scope, R, llvm::makeArrayRef(ArgTy, Args.size()),
1532 return S.BuildLiteralOperatorCall(R, OpNameInfo, Args, LitEndLoc);
1627 Expr *Args[] = { Lit, LenArg };
1629 return BuildLiteralOperatorCall(R, OpNameInfo, Args, StringTokLocs.back());
1761 DeclarationName Typo, SourceLocation TypoLoc, ArrayRef<Expr *> Args,
1800 ArrayRef<Expr *> Args, TypoExpr **Out) {
1886 "Diagnosing an empty lookup with explicit template args!");
1890 emitEmptyLookupTypoDiagnostic(TC, *this, SS, Name, TypoLoc, Args,
1917 Args, OCS);
1921 Args, OCS);
4394 ArrayRef<Expr *> Args) {
4403 Args.size(), ME),
4411 S.AddOverloadCandidate(FD, DeclAccessPair::make(FD, AS_none), Args,
4432 /// Args/NumArgs to the parameter types of the function FDecl with
4441 ArrayRef<Expr *> Args,
4462 if (Args.size() < NumParams) {
4463 if (Args.size() < MinArgs) {
4465 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) {
4471 << static_cast<unsigned>(Args.size())
4483 << FnKind << MinArgs << static_cast<unsigned>(Args.size())
4498 if (Args.size() > NumParams) {
4501 if (FDecl && (TC = TryTypoCorrectionForCall(*this, Fn, FDecl, Args))) {
4507 << static_cast<unsigned>(Args.size())
4511 Diag(Args[NumParams]->getLocStart(),
4516 << static_cast<unsigned>(Args.size()) << Fn->getSourceRange()
4517 << SourceRange(Args[NumParams]->getLocStart(),
4518 Args.back()->getLocEnd());
4520 Diag(Args[NumParams]->getLocStart(),
4524 << FnKind << NumParams << static_cast<unsigned>(Args.size())
4526 << SourceRange(Args[NumParams]->getLocStart(),
4527 Args.back()->getLocEnd());
4543 Args, AllArgs, CallType);
4555 unsigned FirstParam, ArrayRef<Expr *> Args,
4562 // Continue to check argument types (even if we have too few/many args).
4568 if (ArgIx < Args.size()) {
4569 Arg = Args[ArgIx++];
4625 // If this is a variadic call, handle args passed through "...".
4631 for (Expr *A : Args.slice(ArgIx)) {
4640 for (Expr *A : Args.slice(ArgIx)) {
4648 for (Expr *A : Args.slice(ArgIx))
4759 static bool checkArgsForPlaceholders(Sema &S, MultiExprArg args) {
4763 for (size_t i = 0, e = args.size(); i != e; i++) {
4764 if (isPlaceholderToRemoveAsArg(args[i]->getType())) {
4765 ExprResult result = S.CheckPlaceholderExpr(args[i]);
4767 else args[i] = result.get();
4769 (void)S.CorrectDelayedTyposInExpr(args[i]);
5036 ArrayRef<Expr *> Args,
5062 cast<CallExpr>(Config), Args,
5066 TheCall = new (Context) CallExpr(Context, Fn, Args, Context.BoolTy,
5078 Args = llvm::makeArrayRef(TheCall->getArgs(), TheCall->getNumArgs());
5141 if (ConvertArgumentsForCall(TheCall, Fn, FDecl, Proto, Args, RParenLoc,
5151 if (FDecl->hasBody(Def) && Args.size() != Def->param_size()) {
5153 if (!Proto || !(Proto->isVariadic() && Args.size() >= Def->param_size()))
5155 << (Args.size() > Def->param_size()) << FDecl << Fn->getSourceRange();
5165 for (unsigned i = 0, e = Args.size(); i != e; i++) {
5166 Expr *Arg = Args[i];
5203 DiagnoseSentinelCalls(NDecl, LParenLoc, Args);
13657 const TemplateArgumentList &Args = Spec->getTemplateArgs();
13658 return TraverseTemplateArguments(Args.data(), Args.size());