clang API Documentation
#include <Option.h>


Public Member Functions | |
| FlagOption (OptSpecifier ID, const char *Name, const OptionGroup *Group, const Option *Alias) | |
| virtual Arg * | accept (const ArgList &Args, unsigned &Index) const |
Static Public Member Functions | |
| static bool | classof (const Option *O) |
| static bool | classof (const FlagOption *) |
| FlagOption::FlagOption | ( | OptSpecifier | ID, |
| const char * | Name, | ||
| const OptionGroup * | Group, | ||
| const Option * | Alias | ||
| ) |
Definition at line 135 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 140 of file Option.cpp.
References Arg, clang::driver::ArgList::getArgString(), clang::driver::Option::getName(), and clang::driver::Option::getUnaliasedOption().
| static bool clang::driver::FlagOption::classof | ( | const Option * | O | ) | [inline, static] |
Reimplemented from clang::driver::Option.
Definition at line 219 of file Option.h.
References clang::driver::Option::FlagClass, and clang::driver::Option::getKind().
| static bool clang::driver::FlagOption::classof | ( | const FlagOption * | ) | [inline, static] |