LLVM API Documentation
#include <CommandLine.h>
Public Member Functions | |
| virtual | ~generic_parser_base () |
| virtual unsigned | getNumOptions () const =0 |
| virtual const char * | getOption (unsigned N) const =0 |
| virtual const char * | getDescription (unsigned N) const =0 |
| virtual size_t | getOptionWidth (const Option &O) const |
| virtual void | printOptionInfo (const Option &O, size_t GlobalWidth) const |
| void | initialize (Option &O) |
| void | getExtraOptionNames (std::vector< const char * > &OptionNames) |
| enum ValueExpected | getValueExpectedFlagDefault () const |
| unsigned | findOption (const char *Name) |
Protected Attributes | |
| bool | hasArgStr |
Definition at line 373 of file CommandLine.h.
| virtual llvm::cl::generic_parser_base::~generic_parser_base | ( | ) | [inline, virtual] |
Definition at line 374 of file CommandLine.h.
| virtual unsigned llvm::cl::generic_parser_base::getNumOptions | ( | ) | const [pure virtual] |
| virtual const char* llvm::cl::generic_parser_base::getOption | ( | unsigned | N | ) | const [pure virtual] |
| virtual const char* llvm::cl::generic_parser_base::getDescription | ( | unsigned | N | ) | const [pure virtual] |
| size_t generic_parser_base::getOptionWidth | ( | const Option & | O | ) | const [virtual] |
Definition at line 970 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getNumOptions(), getOption(), and llvm::cl::Option::hasArgStr().
| void generic_parser_base::printOptionInfo | ( | const Option & | O, | |
| size_t | GlobalWidth | |||
| ) | const [virtual] |
Reimplemented in llvm::PassNameParser.
Definition at line 987 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, llvm::cout(), getDescription(), getNumOptions(), getOption(), llvm::cl::Option::hasArgStr(), llvm::cl::Option::HelpStr, and L.
| void llvm::cl::generic_parser_base::initialize | ( | Option & | O | ) | [inline] |
Reimplemented in llvm::RegisterPassParser< RegistryClass >, llvm::PassNameParser, and llvm::RegistryParser< T, U >.
Definition at line 395 of file CommandLine.h.
References llvm::cl::Option::hasArgStr(), and hasArgStr.
| void llvm::cl::generic_parser_base::getExtraOptionNames | ( | std::vector< const char * > & | OptionNames | ) | [inline] |
Definition at line 402 of file CommandLine.h.
References getNumOptions(), getOption(), and hasArgStr.
| enum ValueExpected llvm::cl::generic_parser_base::getValueExpectedFlagDefault | ( | ) | const [inline] |
Definition at line 412 of file CommandLine.h.
References hasArgStr, llvm::cl::ValueDisallowed, and llvm::cl::ValueRequired.
| unsigned generic_parser_base::findOption | ( | const char * | Name | ) |
Definition at line 956 of file CommandLine.cpp.
References getNumOptions(), and getOption().
Referenced by llvm::cl::parser< const U::entry * >::addLiteralOption(), llvm::PassNameParser::passRegistered(), and llvm::cl::parser< const U::entry * >::removeLiteralOption().
bool llvm::cl::generic_parser_base::hasArgStr [protected] |
Definition at line 436 of file CommandLine.h.
Referenced by getExtraOptionNames(), getValueExpectedFlagDefault(), initialize(), and llvm::cl::parser< const U::entry * >::parse().