Lines Matching refs:Arg
382 Expr *Arg = TheCall->getArg(PtrArgNum);
383 if (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(Arg))
384 Arg = ICE->getSubExpr();
385 ExprResult RHS = DefaultFunctionArrayLvalueConversion(Arg);
395 if (DiagnoseAssignmentResult(ConvTy, Arg->getLocStart(), LHSTy, RHSTy,
513 if (const Expr *Arg = Args[ArgIdx])
514 variadicArgumentPODCheck(Arg, CallType);
868 ExprResult Arg = TheCall->getArg(i);
869 Arg = PerformCopyInitialization(Entity, SourceLocation(), Arg);
870 if (Arg.isInvalid())
872 TheCall->setArg(i, Arg.get());
934 ExprResult Arg = E->getArg(0);
935 Arg = S.PerformCopyInitialization(Entity, SourceLocation(), Arg);
936 if (Arg.isInvalid())
939 E->setArg(ArgIndex, Arg.take());
1235 ExprResult Arg = TheCall->getArg(i+1);
1242 Arg = PerformCopyInitialization(Entity, SourceLocation(), Arg);
1243 if (Arg.isInvalid())
1252 TheCall->setArg(i+1, Arg.take());
1287 bool Sema::CheckObjCString(Expr *Arg) {
1288 Arg = Arg->IgnoreParenCasts();
1289 StringLiteral *Literal = dyn_cast<StringLiteral>(Arg);
1292 Diag(Arg->getLocStart(), diag::err_cfstring_literal_not_string_constant)
1293 << Arg->getSourceRange();
1309 Diag(Arg->getLocStart(),
1310 diag::warn_cfstring_truncated) << Arg->getSourceRange();
1357 const Expr *Arg = TheCall->getArg(1)->IgnoreParenCasts();
1359 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Arg)) {
1560 Expr *Arg = TheCall->getArg(i);
1563 if (Arg->isTypeDependent() || Arg->isValueDependent())
1576 << "0" << "1" << Arg->getSourceRange();
1580 << "0" << "3" << Arg->getSourceRange();
1591 Expr *Arg = TheCall->getArg(ArgNum);
1595 if (Arg->isTypeDependent() || Arg->isValueDependent()) return false;
1597 if (!Arg->isIntegerConstantExpr(Result, Context))
1599 << FDecl->getDeclName() << Arg->getSourceRange();
1620 Expr *Arg = TheCall->getArg(1);
1623 << "0" << "3" << SourceRange(Arg->getLocStart(), Arg->getLocEnd());
1632 Expr *Arg = TheCall->getArg(1);
1641 << SourceRange(Arg->getLocStart(), Arg->getLocEnd());
1790 const Expr *Arg = CE->getArg(ArgIndex - 1);
1792 return checkFormatStringExpr(Arg, Args,
1799 const Expr *Arg = CE->getArg(0);
1800 return checkFormatStringExpr(Arg, Args,
2441 const Expr *Arg = getDataArg(argIndex);
2442 if (!Arg)
2445 QualType T = Arg->getType();
2453 << T << Arg->getSourceRange(),
2689 const Expr *Arg = getDataArg(argIndex);
2690 if (!Arg)
2693 return checkFormatExpr(FS, startSpecifier, specifierLen, Arg);
3243 // cache the sizeof arg's ID.