Home | History | Annotate | Download | only in Sema

Lines Matching refs:Args

734     for (const auto &Val : NonNull->args())
756 void Sema::checkCall(NamedDecl *FDecl, ArrayRef<const Expr *> Args,
769 CheckedVarArgs.resize(Args.size());
771 CheckFormatArguments(I, Args, IsMemberFunction, CallType, Loc, Range,
779 for (unsigned ArgIdx = NumParams; ArgIdx < Args.size(); ++ArgIdx) {
780 // Args[ArgIdx] can be null in malformed code.
781 if (const Expr *Arg = Args[ArgIdx]) {
789 CheckNonNullArguments(*this, FDecl, Args.data(), Loc);
793 CheckArgumentWithTypeTag(I, Args.data());
800 ArrayRef<const Expr *> Args,
805 checkCall(FDecl, Args, Proto->getNumParams(),
820 Expr** Args = TheCall->getArgs();
826 ++Args;
829 checkCall(FDecl, llvm::makeArrayRef<const Expr *>(Args, NumArgs), NumParams,
857 ArrayRef<const Expr *> Args) {
861 checkCall(Method, Args, Method->param_size(),
1390 // as the number of fixed args.
1926 // optional constant int args.
2014 checkFormatStringExpr(Sema &S, const Expr *E, ArrayRef<const Expr *> Args,
2040 checkFormatStringExpr(S, C->getTrueExpr(), Args,
2046 checkFormatStringExpr(S, C->getFalseExpr(), Args,
2097 return checkFormatStringExpr(S, Init, Args,
2152 return checkFormatStringExpr(S, Arg, Args,
2161 return checkFormatStringExpr(S, Arg, Args,
2181 S.CheckFormatString(StrE, E, Args, HasVAListArg, format_idx, firstDataArg,
2209 ArrayRef<const Expr *> Args,
2216 return CheckFormatArguments(Args, FSI.HasVAListArg, FSI.FormatIdx,
2222 bool Sema::CheckFormatArguments(ArrayRef<const Expr *> Args,
2229 if (format_idx >= Args.size()) {
2234 const Expr *OrigFormatExpr = Args[format_idx]->IgnoreParenCasts();
2249 checkFormatStringExpr(*this, OrigFormatExpr, Args, HasVAListArg,
2266 SourceMgr.isInSystemMacro(Args[format_idx]->getLocStart()))
2271 if (Args.size() == firstDataArg)
2272 Diag(Args[format_idx]->getLocStart(),
2276 Diag(Args[format_idx]->getLocStart(),
2292 ArrayRef<const Expr *> Args;
2304 ArrayRef<const Expr *> Args,
2311 Args(Args), FormatIdx(formatIdx),
2541 return Args[FirstDataArg + i];
2630 EmitFormatDiagnostic(S, inFunctionCall, Args[FormatIdx], PDiag,
2702 ArrayRef<const Expr *> Args,
2707 numDataArgs, beg, hasVAListArg, Args,
3353 ArrayRef<const Expr *> Args,
3359 Args, formatIdx, inFunctionCall, CallType,
3513 ArrayRef<const Expr *> Args,
3522 *this, inFunctionCall, Args[format_idx],
3536 const unsigned numDataArgs = Args.size() - firstDataArg;
3543 *this, inFunctionCall, Args[format_idx],
3553 *this, inFunctionCall, Args[format_idx],
3562 Str, HasVAListArg, Args, format_idx,
3571 Str, HasVAListArg, Args, format_idx,