|
LLVM
3.7.0
|
#include <CommandLine.h>
Classes | |
| class | GenericOptionInfo |
Public Member Functions | |
| generic_parser_base (Option &O) | |
| 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 () |
| void | getExtraOptionNames (SmallVectorImpl< const char * > &OptionNames) |
| enum ValueExpected | getValueExpectedFlagDefault () const |
| unsigned | findOption (const char *Name) |
Protected Attributes | |
| Option & | Owner |
Definition at line 556 of file CommandLine.h.
|
inline |
Definition at line 567 of file CommandLine.h.
|
inlinevirtual |
Definition at line 569 of file CommandLine.h.
Definition at line 1309 of file CommandLine.cpp.
References getNumOptions(), and getOption().
Referenced by llvm::cl::parser< const PassInfo * >::addLiteralOption(), llvm::PassNameParser::passRegistered(), and llvm::cl::parser< const PassInfo * >::removeLiteralOption().
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().
|
inline |
Definition at line 609 of file CommandLine.h.
References getNumOptions(), getOption(), llvm::cl::Option::hasArgStr(), Owner, and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
|
pure virtual |
|
pure virtual |
Definition at line 1320 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getNumOptions(), getOption(), and llvm::cl::Option::hasArgStr().
|
inline |
Definition at line 618 of file CommandLine.h.
References llvm::cl::Option::hasArgStr(), Owner, llvm::cl::ValueDisallowed, and llvm::cl::ValueRequired.
|
inline |
Definition at line 607 of file CommandLine.h.
Referenced by llvm::RegistryParser< T, U >::initialize(), llvm::PassNameParser::initialize(), and llvm::RegisterPassParser< RegistryClass >::initialize().
| void generic_parser_base::printGenericOptionDiff | ( | const Option & | O, |
| const GenericOptionValue & | V, | ||
| const GenericOptionValue & | Default, | ||
| size_t | GlobalWidth | ||
| ) | const |
Definition at line 1364 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, llvm::cl::GenericOptionValue::compare(), getNumOptions(), getOption(), getOptionValue(), llvm::raw_ostream::indent(), MaxOptWidth, and llvm::outs().
Referenced by printOptionDiff().
|
inline |
Definition at line 601 of file CommandLine.h.
References printGenericOptionDiff().
Referenced by llvm::cl::OptionDiffPrinter< DT, DT >::print(), and llvm::cl::printOptionDiff().
Reimplemented in llvm::PassNameParser.
Definition at line 1337 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(), and printHelpStr().
Referenced by llvm::PassNameParser::printOptionInfo().
|
protected |
Definition at line 642 of file CommandLine.h.
Referenced by llvm::cl::parser< const PassInfo * >::addLiteralOption(), getExtraOptionNames(), getValueExpectedFlagDefault(), and llvm::cl::parser< const PassInfo * >::parse().
1.8.6