Home | History | Annotate | Download | only in Option

Lines Matching refs:Index

104                     unsigned &Index,
110 Spelling = StringRef(Args.getArgString(Index), ArgSize);
118 if (ArgSize != strlen(Args.getArgString(Index)))
121 Arg *A = new Arg(UnaliasedOption, Spelling, Index++);
139 const char *Value = Args.getArgString(Index) + ArgSize;
140 return new Arg(UnaliasedOption, Spelling, Index++, Value);
144 const char *Str = Args.getArgString(Index) + ArgSize;
145 Arg *A = new Arg(UnaliasedOption, Spelling, Index++);
173 if (ArgSize != strlen(Args.getArgString(Index)))
176 Index += 2;
177 if (Index > Args.getNumInputArgStrings() ||
178 Args.getArgString(Index - 1) == nullptr)
182 Index - 2, Args.getArgString(Index - 1));
186 if (ArgSize != strlen(Args.getArgString(Index)))
189 Index += 1 + getNumArgs();
190 if (Index > Args.getNumInputArgStrings())
193 Arg *A = new Arg(UnaliasedOption, Spelling, Index - 1 - getNumArgs(),
194 Args.getArgString(Index - getNumArgs()));
196 A->getValues().push_back(Args.getArgString(Index - getNumArgs() + i));
202 if (ArgSize != strlen(Args.getArgString(Index))) {
203 const char *Value = Args.getArgString(Index) + ArgSize;
204 return new Arg(*this, Spelling, Index++, Value);
208 Index += 2;
209 if (Index > Args.getNumInputArgStrings() ||
210 Args.getArgString(Index - 1) == nullptr)
214 Index - 2, Args.getArgString(Index - 1));
218 Index += 2;
219 if (Index > Args.getNumInputArgStrings() ||
220 Args.getArgString(Index - 1) == nullptr)
223 return new Arg(UnaliasedOption, Spelling, Index - 2,
224 Args.getArgString(Index - 2) + ArgSize,
225 Args.getArgString(Index - 1));
229 if (ArgSize != strlen(Args.getArgString(Index)))
231 Arg *A = new Arg(UnaliasedOption, Spelling, Index++);
232 while (Index < Args.getNumInputArgStrings() &&
233 Args.getArgString(Index) != nullptr)
234 A->getValues().push_back(Args.getArgString(Index++));