Home | History | Annotate | Download | only in Driver

Lines Matching refs:Args

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)))
154 Arg *JoinedOption::accept(const ArgList &Args, unsigned &Index) const {
156 const char *Value = Args.getArgString(Index) + getName().size();
166 Arg *CommaJoinedOption::accept(const ArgList &Args,
169 const char *Str = Args.getArgString(Index) + getName().size();
201 Arg *SeparateOption::accept(const ArgList &Args, unsigned &Index) const {
204 if (getName().size() != strlen(Args.getArgString(Index)))
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)))
228 if (Index > Args.getNumInputArgStrings())
232 Args.getArgString(Index - NumArgs));
234 A->getValues().push_back(Args.getArgString(Index - NumArgs + i));
245 Arg *JoinedOrSeparateOption::accept(const ArgList &Args,
249 if (getName().size() != strlen(Args.getArgString(Index))) {
250 const char *Value = Args.getArgString(Index) + getName().size();
256 if (Index > Args.getNumInputArgStrings())
259 return new Arg(getUnaliasedOption(), Index - 2, Args.getArgString(Index - 1));
269 Arg *JoinedAndSeparateOption::accept(const ArgList &Args,
274 if (Index > Args.getNumInputArgStrings())
278 Args.getArgString(Index-2)+getName().size(),
279 Args.getArgString(Index-1));