Lines Matching refs:Index
189 Arg *OptTable::ParseOneArg(const ArgList &Args, unsigned &Index,
192 unsigned Prev = Index;
193 const char *Str = Args.getArgString(Index);
198 return new Arg(getOption(TheInputOptionID), Str, Index++, Str);
232 if (Arg *A = Opt.accept(Args, Index, ArgSize))
236 if (Prev != Index)
243 return new Arg(getOption(TheInputOptionID), Str, Index++, Str);
245 return new Arg(getOption(TheUnknownOptionID), Str, Index++, Str);
258 unsigned Index = 0, End = ArgArr.size();
259 while (Index < End) {
261 if (Args.getArgString(Index) == nullptr) {
262 ++Index;
266 StringRef Str = Args.getArgString(Index);
268 ++Index;
272 unsigned Prev = Index;
273 Arg *A = ParseOneArg(Args, Index, FlagsToInclude, FlagsToExclude);
274 assert(Index > Prev && "Parser failed to consume argument.");
278 assert(Index >= End && "Unexpected parser error.");
279 assert(Index - Prev - 1 && "No missing arguments!");
281 MissingArgCount = Index - Prev - 1;