Home | History | Annotate | Download | only in Sema

Lines Matching refs:Arg

104   ExprResult Arg(S.Owned(TheCall->getArg(0)));
105 QualType ResultType = S.CheckAddressOfOperand(Arg, TheCall->getLocStart());
109 TheCall->setArg(0, Arg.take());
413 Expr *Arg = TheCall->getArg(PtrArgNum);
414 if (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(Arg))
415 Arg = ICE->getSubExpr();
416 ExprResult RHS = DefaultFunctionArrayLvalueConversion(Arg);
426 if (DiagnoseAssignmentResult(ConvTy, Arg->getLocStart(), LHSTy, RHSTy,
597 Expr *Arg = TheCall->getArg(PtrArgNum);
598 if (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(Arg))
599 Arg = ICE->getSubExpr();
600 ExprResult RHS = DefaultFunctionArrayLvalueConversion(Arg);
610 if (DiagnoseAssignmentResult(ConvTy, Arg->getLocStart(), LHSTy, RHSTy,
735 if (const Expr *Arg = Args[ArgIdx]) {
737 checkVariadicArgument(Arg, CallType);
1118 ExprResult Arg = TheCall->getArg(i);
1119 Arg = PerformCopyInitialization(Entity, SourceLocation(), Arg);
1120 if (Arg.isInvalid())
1122 TheCall->setArg(i, Arg.get());
1192 ExprResult Arg = E->getArg(0);
1193 Arg = S.PerformCopyInitialization(Entity, SourceLocation(), Arg);
1194 if (Arg.isInvalid())
1197 E->setArg(ArgIndex, Arg.take());
1493 ExprResult Arg = TheCall->getArg(i+1);
1500 Arg = PerformCopyInitialization(Entity, SourceLocation(), Arg);
1501 if (Arg.isInvalid())
1510 TheCall->setArg(i+1, Arg.take());
1545 bool Sema::CheckObjCString(Expr *Arg) {
1546 Arg = Arg->IgnoreParenCasts();
1547 StringLiteral *Literal = dyn_cast<StringLiteral>(Arg);
1550 Diag(Arg->getLocStart(), diag::err_cfstring_literal_not_string_constant)
1551 << Arg->getSourceRange();
1567 Diag(Arg->getLocStart(),
1568 diag::warn_cfstring_truncated) << Arg->getSourceRange();
1615 const Expr *Arg = TheCall->getArg(1)->IgnoreParenCasts();
1622 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Arg)) {
1644 Diag(Arg->getLocStart(),
1834 Expr *Arg = TheCall->getArg(i);
1837 if (Arg->isTypeDependent() || Arg->isValueDependent())
1850 << "0" << "1" << Arg->getSourceRange();
1854 << "0" << "3" << Arg->getSourceRange();
1865 Expr *Arg = TheCall->getArg(ArgNum);
1869 if (Arg->isTypeDependent() || Arg->isValueDependent()) return false;
1871 if (!Arg->isIntegerConstantExpr(Result, Context))
1873 << FDecl->getDeclName() << Arg->getSourceRange();
1894 Expr *Arg = TheCall->getArg(1);
1897 << "0" << "3" << SourceRange(Arg->getLocStart(), Arg->getLocEnd());
1906 Expr *Arg = TheCall->getArg(1);
1915 << SourceRange(Arg->getLocStart(), Arg->getLocEnd());
2072 const Expr *Arg = CE->getArg(ArgIndex - 1);
2074 return checkFormatStringExpr(S, Arg, Args,
2082 const Expr *Arg = CE->getArg(0);
2083 return checkFormatStringExpr(S, Arg, Args,
2732 const Expr *Arg = getDataArg(argIndex);
2733 if (!Arg)
2736 QualType T = Arg->getType();
2744 << T << Arg->getSourceRange(),
2980 const Expr *Arg = getDataArg(argIndex);
2981 if (!Arg)
2984 return checkFormatExpr(FS, startSpecifier, specifierLen, Arg);
3568 // cache the sizeof arg's ID.