Lines Matching defs:Args
209 // functions cannot be template args so they cannot be formed through template
1091 Expr **Args,
1109 const Expr *FormatExpr = Args[Idx];
1130 ArrayRef<const Expr *> Args,
1137 for (const auto *Arg : Args)
1143 for (unsigned Val : NonNull->args()) {
1144 if (Val >= Args.size())
1147 NonNullArgs.resize(Args.size());
1165 CheckNonNullArgument(S, Args[ArgIndex], CallSiteLoc);
1171 CheckNonNullArgument(S, Args[ArgIndex], CallSiteLoc);
1176 void Sema::checkCall(NamedDecl *FDecl, ArrayRef<const Expr *> Args,
1189 CheckedVarArgs.resize(Args.size());
1191 CheckFormatArguments(I, Args, IsMemberFunction, CallType, Loc, Range,
1199 for (unsigned ArgIdx = NumParams; ArgIdx < Args.size(); ++ArgIdx) {
1200 // Args[ArgIdx] can be null in malformed code.
1201 if (const Expr *Arg = Args[ArgIdx]) {
1209 CheckNonNullArguments(*this, FDecl, Args, Loc);
1213 CheckArgumentWithTypeTag(I, Args.data());
1220 ArrayRef<const Expr *> Args,
1225 checkCall(FDecl, Args, Proto->getNumParams(),
1240 Expr** Args = TheCall->getArgs();
1246 ++Args;
1249 checkCall(FDecl, llvm::makeArrayRef(Args, NumArgs), NumParams,
1261 DiagnoseCStringFormatDirectiveInCFAPI(*this, FDecl, Args, NumArgs);
1279 ArrayRef<const Expr *> Args) {
1283 checkCall(Method, Args, Method->param_size(),
1819 // as the number of fixed args.
2433 // optional constant int args.
2589 checkFormatStringExpr(Sema &S, const Expr *E, ArrayRef<const Expr *> Args,
2615 checkFormatStringExpr(S, C->getTrueExpr(), Args,
2621 checkFormatStringExpr(S, C->getFalseExpr(), Args,
2672 return checkFormatStringExpr(S, Init, Args,
2727 return checkFormatStringExpr(S, Arg, Args,
2736 return checkFormatStringExpr(S, Arg, Args,
2756 S.CheckFormatString(StrE, E, Args, HasVAListArg, format_idx, firstDataArg,
2786 ArrayRef<const Expr *> Args,
2793 return CheckFormatArguments(Args, FSI.HasVAListArg, FSI.FormatIdx,
2799 bool Sema::CheckFormatArguments(ArrayRef<const Expr *> Args,
2806 if (format_idx >= Args.size()) {
2811 const Expr *OrigFormatExpr = Args[format_idx]->IgnoreParenCasts();
2826 checkFormatStringExpr(*this, OrigFormatExpr, Args, HasVAListArg,
2843 SourceMgr.isInSystemMacro(Args[format_idx]->getLocStart()))
2848 if (Args.size() == firstDataArg)
2849 Diag(Args[format_idx]->getLocStart(),
2853 Diag(Args[format_idx]->getLocStart(),
2869 ArrayRef<const Expr *> Args;
2881 ArrayRef<const Expr *> Args,
2888 Args(Args), FormatIdx(formatIdx),
3118 return Args[FirstDataArg + i];
3207 EmitFormatDiagnostic(S, inFunctionCall, Args[FormatIdx], PDiag,
3273 ArrayRef<const Expr *> Args,
3278 numDataArgs, beg, hasVAListArg, Args,
4016 ArrayRef<const Expr *> Args,
4022 Args, formatIdx, inFunctionCall, CallType,
4186 ArrayRef<const Expr *> Args,
4195 *this, inFunctionCall, Args[format_idx],
4209 const unsigned numDataArgs = Args.size() - firstDataArg;
4216 *this, inFunctionCall, Args[format_idx],
4226 *this, inFunctionCall, Args[format_idx],
4236 Str, HasVAListArg, Args, format_idx,
4246 Str, HasVAListArg, Args, format_idx,
7091 for (unsigned Val : NonNull->args()) {