Home | History | Annotate | Download | only in Option

Lines Matching refs:Args

32     assert(getAlias().isValid() && "Only alias options can have alias args.");
33 assert(getKind() == FlagClass && "Only Flag aliases can have alias args.");
35 "Cannot provide alias args to a flag option.");
104 Arg *Option::accept(const ArgList &Args,
111 Spelling = StringRef(Args.getArgString(Index), ArgSize);
113 Spelling = Args.MakeArgString(Twine(UnaliasedOption.getPrefix()) +
119 if (ArgSize != strlen(Args.getArgString(Index)))
140 const char *Value = Args.getArgString(Index) + ArgSize;
145 const char *Str = Args.getArgString(Index) + ArgSize;
174 if (ArgSize != strlen(Args.getArgString(Index)))
178 if (Index > Args.getNumInputArgStrings() ||
179 Args.getArgString(Index - 1) == nullptr)
183 Index - 2, Args.getArgString(Index - 1));
187 if (ArgSize != strlen(Args.getArgString(Index)))
191 if (Index > Args.getNumInputArgStrings())
195 Args.getArgString(Index - getNumArgs()));
197 A->getValues().push_back(Args.getArgString(Index - getNumArgs() + i));
203 if (ArgSize != strlen(Args.getArgString(Index))) {
204 const char *Value = Args.getArgString(Index) + ArgSize;
210 if (Index > Args.getNumInputArgStrings() ||
211 Args.getArgString(Index - 1) == nullptr)
215 Index - 2, Args.getArgString(Index - 1));
220 if (Index > Args.getNumInputArgStrings() ||
221 Args.getArgString(Index - 1) == nullptr)
225 Args.getArgString(Index - 2) + ArgSize,
226 Args.getArgString(Index - 1));
230 if (ArgSize != strlen(Args.getArgString(Index)))
233 while (Index < Args.getNumInputArgStrings() &&
234 Args.getArgString(Index) != nullptr)
235 A->getValues().push_back(Args.getArgString(Index++));
240 if (ArgSize != strlen(Args.getArgString(Index))) {
242 A->getValues().push_back(Args.getArgString(Index) + ArgSize);
245 while (Index < Args.getNumInputArgStrings() &&
246 Args.getArgString(Index) != nullptr)
247 A->getValues().push_back(Args.getArgString(Index++));