LLVM API Documentation
#include <CommandLine.h>
Classes | |
class | GenericOptionInfo |
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 const GenericOptionValue & | getOptionValue (unsigned N) const =0 |
virtual void | printOptionInfo (const Option &O, size_t GlobalWidth) const |
void | printGenericOptionDiff (const Option &O, const GenericOptionValue &V, const GenericOptionValue &Default, size_t GlobalWidth) const |
template<class AnyOptionValue > | |
void | printOptionDiff (const Option &O, const AnyOptionValue &V, const AnyOptionValue &Default, size_t GlobalWidth) const |
void | initialize (Option &O) |
void | getExtraOptionNames (SmallVectorImpl< const char * > &OptionNames) |
enum ValueExpected | getValueExpectedFlagDefault () const |
unsigned | findOption (const char *Name) |
Protected Attributes | |
bool | hasArgStr |
Definition at line 538 of file CommandLine.h.
virtual llvm::cl::generic_parser_base::~generic_parser_base | ( | ) | [inline, virtual] |
Definition at line 548 of file CommandLine.h.
unsigned generic_parser_base::findOption | ( | const char * | Name | ) |
Definition at line 1287 of file CommandLine.cpp.
References getNumOptions(), getOption(), and llvm::LibFunc::strcmp.
Referenced by llvm::cl::parser< const PassInfo * >::addLiteralOption(), llvm::PassNameParser::passRegistered(), and llvm::cl::parser< const 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< RegistryClass::FunctionPassCtor >, llvm::cl::parser< const U::entry * >, and llvm::cl::parser< const PassInfo * >.
Referenced by printOptionInfo().
void llvm::cl::generic_parser_base::getExtraOptionNames | ( | SmallVectorImpl< const char * > & | OptionNames | ) | [inline] |
Definition at line 593 of file CommandLine.h.
References getNumOptions(), getOption(), hasArgStr, and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
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 GenericOptionValue& llvm::cl::generic_parser_base::getOptionValue | ( | unsigned | N | ) | const [pure virtual] |
size_t generic_parser_base::getOptionWidth | ( | const Option & | O | ) | const [virtual] |
Definition at line 1299 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getNumOptions(), getOption(), llvm::cl::Option::hasArgStr(), and llvm::LibFunc::strlen.
enum ValueExpected llvm::cl::generic_parser_base::getValueExpectedFlagDefault | ( | ) | const [inline] |
Definition at line 603 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::RegisterPassParser< RegistryClass >, llvm::PassNameParser, and llvm::RegistryParser< T, U >.
Definition at line 586 of file CommandLine.h.
References llvm::cl::Option::hasArgStr(), and hasArgStr.
void generic_parser_base::printGenericOptionDiff | ( | const Option & | O, |
const GenericOptionValue & | V, | ||
const GenericOptionValue & | Default, | ||
size_t | GlobalWidth | ||
) | const |
Definition at line 1344 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, llvm::cl::GenericOptionValue::compare(), getNumOptions(), getOption(), getOptionValue(), llvm::raw_ostream::indent(), MaxOptWidth, llvm::outs(), and llvm::LibFunc::strlen.
Referenced by printOptionDiff().
void llvm::cl::generic_parser_base::printOptionDiff | ( | const Option & | O, |
const AnyOptionValue & | V, | ||
const AnyOptionValue & | Default, | ||
size_t | GlobalWidth | ||
) | const [inline] |
Definition at line 580 of file CommandLine.h.
References printGenericOptionDiff().
Referenced by llvm::cl::OptionDiffPrinter< DT, DT >::print(), and llvm::cl::printOptionDiff().
void generic_parser_base::printOptionInfo | ( | const Option & | O, |
size_t | GlobalWidth | ||
) | const [virtual] |
Reimplemented in llvm::PassNameParser.
Definition at line 1316 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getDescription(), getNumOptions(), getOption(), llvm::cl::Option::hasArgStr(), llvm::cl::Option::HelpStr, llvm::raw_ostream::indent(), llvm::outs(), printHelpStr(), and llvm::LibFunc::strlen.
bool llvm::cl::generic_parser_base::hasArgStr [protected] |
Definition at line 627 of file CommandLine.h.
Referenced by getExtraOptionNames(), getValueExpectedFlagDefault(), initialize(), and llvm::cl::parser< const PassInfo * >::parse().