Lines Matching refs:Index
112 unsigned &Index) const {
114 const size_t ArgStringSize = StringRef(Args.getArgString(Index)).size();
119 return std::make_unique<Arg>(*this, Spelling, Index++);
122 const char *Value = Args.getArgString(Index) + SpellingSize;
123 return std::make_unique<Arg>(*this, Spelling, Index++, Value);
127 const char *Str = Args.getArgString(Index) + SpellingSize;
128 auto A = std::make_unique<Arg>(*this, Spelling, Index++);
158 Index += 2;
159 if (Index > Args.getNumInputArgStrings() ||
160 Args.getArgString(Index - 1) == nullptr)
163 return std::make_unique<Arg>(*this, Spelling, Index - 2,
164 Args.getArgString(Index - 1));
170 Index += 1 + getNumArgs();
171 if (Index > Args.getNumInputArgStrings())
174 auto A = std::make_unique<Arg>(*this, Spelling, Index - 1 - getNumArgs(),
175 Args.getArgString(Index - getNumArgs()));
177 A->getValues().push_back(Args.getArgString(Index - getNumArgs() + i));
183 const char *Value = Args.getArgString(Index) + SpellingSize;
184 return std::make_unique<Arg>(*this, Spelling, Index++, Value);
188 Index += 2;
189 if (Index > Args.getNumInputArgStrings() ||
190 Args.getArgString(Index - 1) == nullptr)
193 return std::make_unique<Arg>(*this, Spelling, Index - 2,
194 Args.getArgString(Index - 1));
198 Index += 2;
199 if (Index > Args.getNumInputArgStrings() ||
200 Args.getArgString(Index - 1) == nullptr)
203 return std::make_unique<Arg>(*this, Spelling, Index - 2,
204 Args.getArgString(Index - 2) + SpellingSize,
205 Args.getArgString(Index - 1));
210 auto A = std::make_unique<Arg>(*this, Spelling, Index++);
211 while (Index < Args.getNumInputArgStrings() &&
212 Args.getArgString(Index) != nullptr)
213 A->getValues().push_back(Args.getArgString(Index++));
217 auto A = std::make_unique<Arg>(*this, Spelling, Index);
220 A->getValues().push_back(Args.getArgString(Index) + SpellingSize);
222 Index++;
223 while (Index < Args.getNumInputArgStrings() &&
224 Args.getArgString(Index) != nullptr)
225 A->getValues().push_back(Args.getArgString(Index++));
236 unsigned &Index) const {
238 ? std::make_unique<Arg>(*this, CurArg, Index)
239 : acceptInternal(Args, CurArg, Index));