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 370 of file CommandLine.h.
| virtual llvm::cl::generic_parser_base::~generic_parser_base | ( | ) | [inline, virtual] |
Definition at line 371 of file CommandLine.h.
| 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().
| 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().
| unsigned generic_parser_base::getOptionWidth | ( | const Option & | O | ) | const [virtual] |
Definition at line 828 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getNumOptions(), getOption(), and llvm::cl::Option::hasArgStr().
| void generic_parser_base::printOptionInfo | ( | const Option & | O, | |
| unsigned | GlobalWidth | |||
| ) | const [virtual] |
Reimplemented in llvm::PassNameParser.
Definition at line 845 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getDescription(), getNumOptions(), getOption(), llvm::cl::Option::hasArgStr(), and llvm::cl::Option::HelpStr.
| void llvm::cl::generic_parser_base::initialize | ( | Option & | O | ) | [inline] |
Reimplemented in llvm::PassNameParser, and llvm::TargetNameParser.
Definition at line 392 of file CommandLine.h.
References llvm::cl::Option::addArgument(), getNumOptions(), getOption(), llvm::cl::Option::hasArgStr(), and hasArgStr.
| enum ValueExpected llvm::cl::generic_parser_base::getValueExpectedFlagDefault | ( | ) | const [inline] |
Definition at line 407 of file CommandLine.h.
References hasArgStr, llvm::cl::ValueDisallowed, and llvm::cl::ValueRequired.
| unsigned generic_parser_base::findOption | ( | const char * | Name | ) |
Definition at line 814 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().
bool llvm::cl::generic_parser_base::hasArgStr [protected] |
Definition at line 431 of file CommandLine.h.
Referenced by getValueExpectedFlagDefault(), initialize(), and llvm::cl::parser< const llvm::PassInfo * >::parse().