LLVM API Documentation
#include <CommandLine.h>
Inheritance diagram for llvm::cl::generic_parser_base:


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 unsigned | getOptionWidth (const Option &O) const |
| virtual void | printOptionInfo (const Option &O, unsigned GlobalWidth) const |
| void | initialize (Option &O) |
| enum ValueExpected | getValueExpectedFlagDefault () const |
| unsigned | findOption (const char *Name) |
Protected Attributes | |
| bool | hasArgStr |
Definition at line 360 of file CommandLine.h.
| virtual llvm::cl::generic_parser_base::~generic_parser_base | ( | ) | [inline, virtual] |
Definition at line 361 of file CommandLine.h.
| unsigned generic_parser_base::findOption | ( | const char * | Name | ) |
Definition at line 810 of file CommandLine.cpp.
References getNumOptions(), and getOption().
Referenced by llvm::cl::parser< const llvm::PassInfo * >::addLiteralOption(), llvm::PassNameParser::passRegistered(), llvm::PassNameParser::passUnregistered(), and llvm::cl::parser< const llvm::PassInfo * >::removeLiteralOption().
| virtual const char* llvm::cl::generic_parser_base::getDescription | ( | unsigned | N | ) | const [pure virtual] |
Implemented in llvm::cl::parser< DataType >, llvm::cl::parser< const llvm::TargetMachineRegistry::Entry * >, and llvm::cl::parser< const llvm::PassInfo * >.
Referenced by printOptionInfo().
| virtual unsigned llvm::cl::generic_parser_base::getNumOptions | ( | ) | const [pure virtual] |
Implemented in llvm::cl::parser< DataType >, llvm::cl::parser< const llvm::TargetMachineRegistry::Entry * >, and llvm::cl::parser< const llvm::PassInfo * >.
Referenced by findOption(), getOptionWidth(), initialize(), and printOptionInfo().
| virtual const char* llvm::cl::generic_parser_base::getOption | ( | unsigned | N | ) | const [pure virtual] |
Implemented in llvm::cl::parser< DataType >, llvm::cl::parser< const llvm::TargetMachineRegistry::Entry * >, and llvm::cl::parser< const llvm::PassInfo * >.
Referenced by findOption(), getOptionWidth(), initialize(), and printOptionInfo().
| unsigned generic_parser_base::getOptionWidth | ( | const Option & | O | ) | const [virtual] |
| enum ValueExpected llvm::cl::generic_parser_base::getValueExpectedFlagDefault | ( | ) | const [inline] |
Definition at line 397 of file CommandLine.h.
References hasArgStr, llvm::cl::ValueDisallowed, and llvm::cl::ValueRequired.
| void llvm::cl::generic_parser_base::initialize | ( | Option & | O | ) | [inline] |
Reimplemented in llvm::PassNameParser, and llvm::TargetNameParser.
Definition at line 382 of file CommandLine.h.
References getNumOptions(), getOption(), hasArgStr, and O.
| void generic_parser_base::printOptionInfo | ( | const Option & | O, | |
| unsigned | GlobalWidth | |||
| ) | const [virtual] |
Reimplemented in llvm::PassNameParser.
Definition at line 841 of file CommandLine.cpp.
References getDescription(), getNumOptions(), getOption(), and O.
bool llvm::cl::generic_parser_base::hasArgStr [protected] |
Definition at line 421 of file CommandLine.h.
Referenced by getValueExpectedFlagDefault(), initialize(), and llvm::cl::parser< const llvm::PassInfo * >::parse().