clang API Documentation
#include <Option.h>


Public Member Functions | |
| MultiArgOption (OptSpecifier ID, const char *Name, const OptionGroup *Group, const Option *Alias, unsigned NumArgs) | |
| unsigned | getNumArgs () const |
| virtual Arg * | accept (const ArgList &Args, unsigned &Index) const |
Static Public Member Functions | |
| static bool | classof (const Option *O) |
| static bool | classof (const MultiArgOption *) |
MultiArgOption - An option which takes multiple arguments (these are always separate arguments).
| MultiArgOption::MultiArgOption | ( | OptSpecifier | ID, |
| const char * | Name, | ||
| const OptionGroup * | Group, | ||
| const Option * | Alias, | ||
| unsigned | NumArgs | ||
| ) |
Definition at line 214 of file Option.cpp.
accept - Potentially accept the current argument, returning a new Arg instance, or 0 if the option does not accept this argument (or the argument is missing values).
If the option accepts the current argument, accept() sets Index to the position where argument parsing should resume (even if the argument is missing values).
Implements clang::driver::Option.
Definition at line 221 of file Option.cpp.
References Arg, clang::driver::ArgList::getArgString(), clang::driver::Option::getName(), clang::driver::ArgList::getNumInputArgStrings(), clang::driver::Option::getUnaliasedOption(), and clang::driver::Arg::getValues().
| static bool clang::driver::MultiArgOption::classof | ( | const Option * | O | ) | [inline, static] |
Reimplemented from clang::driver::Option.
Definition at line 279 of file Option.h.
References clang::driver::Option::getKind(), and clang::driver::Option::MultiArgClass.
| static bool clang::driver::MultiArgOption::classof | ( | const MultiArgOption * | ) | [inline, static] |
| unsigned clang::driver::MultiArgOption::getNumArgs | ( | ) | const [inline] |