Home | History | Annotate | Download | only in Driver

Lines Matching refs:Index

115 Arg *OptionGroup::accept(const ArgList &Args, unsigned &Index) const {
123 Arg *InputOption::accept(const ArgList &Args, unsigned &Index) const {
131 Arg *UnknownOption::accept(const ArgList &Args, unsigned &Index) const {
140 Arg *FlagOption::accept(const ArgList &Args, unsigned &Index) const {
143 if (getName().size() != strlen(Args.getArgString(Index)))
146 return new Arg(getUnaliasedOption(), Index++);
154 Arg *JoinedOption::accept(const ArgList &Args, unsigned &Index) const {
156 const char *Value = Args.getArgString(Index) + getName().size();
157 return new Arg(getUnaliasedOption(), Index++, Value);
167 unsigned &Index) const {
169 const char *Str = Args.getArgString(Index) + getName().size();
170 Arg *A = new Arg(getUnaliasedOption(), Index++);
201 Arg *SeparateOption::accept(const ArgList &Args, unsigned &Index) const {
204 if (getName().size() != strlen(Args.getArgString(Index)))
207 Index += 2;
208 if (Index > Args.getNumInputArgStrings())
211 return new Arg(getUnaliasedOption(), Index - 2, Args.getArgString(Index - 1));
221 Arg *MultiArgOption::accept(const ArgList &Args, unsigned &Index) const {
224 if (getName().size() != strlen(Args.getArgString(Index)))
227 Index += 1 + NumArgs;
228 if (Index > Args.getNumInputArgStrings())
231 Arg *A = new Arg(getUnaliasedOption(), Index - 1 - NumArgs,
232 Args.getArgString(Index - NumArgs));
234 A->getValues().push_back(Args.getArgString(Index - NumArgs + i));
246 unsigned &Index) const {
249 if (getName().size() != strlen(Args.getArgString(Index))) {
250 const char *Value = Args.getArgString(Index) + getName().size();
251 return new Arg(this, Index++, Value);
255 Index += 2;
256 if (Index > Args.getNumInputArgStrings())
259 return new Arg(getUnaliasedOption(), Index - 2, Args.getArgString(Index - 1));
270 unsigned &Index) const {
273 Index += 2;
274 if (Index > Args.getNumInputArgStrings())
277 return new Arg(getUnaliasedOption(), Index - 2,
278 Args.getArgString(Index-2)+getName().size(),
279 Args.getArgString(Index-1));