LLVM API Documentation
#include <CommandLine.h>
Public Member Functions | |
virtual | ~basic_parser_impl () |
enum ValueExpected | getValueExpectedFlagDefault () const |
void | getExtraOptionNames (SmallVectorImpl< const char * > &) |
void | initialize (Option &) |
size_t | getOptionWidth (const Option &O) const |
void | printOptionInfo (const Option &O, size_t GlobalWidth) const |
void | printOptionNoValue (const Option &O, size_t GlobalWidth) const |
virtual const char * | getValueName () const |
virtual void | anchor () |
Protected Member Functions | |
void | printOptionName (const Option &O, size_t GlobalWidth) const |
Definition at line 693 of file CommandLine.h.
|
inlinevirtual |
Definition at line 695 of file CommandLine.h.
|
virtual |
Reimplemented in llvm::cl::parser< char >, llvm::cl::parser< std::string >, llvm::cl::parser< float >, llvm::cl::parser< double >, llvm::cl::parser< unsigned long long >, llvm::cl::parser< unsigned >, llvm::cl::parser< int >, llvm::cl::parser< boolOrDefault >, and llvm::cl::parser< bool >.
Definition at line 68 of file CommandLine.cpp.
|
inline |
Definition at line 701 of file CommandLine.h.
size_t basic_parser_impl::getOptionWidth | ( | const Option & | O | ) | const |
Definition at line 1108 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getValueName(), getValueStr(), and llvm::LibFunc::strlen.
Referenced by printOptionInfo().
|
inline |
Definition at line 697 of file CommandLine.h.
References llvm::cl::ValueRequired.
|
inlinevirtual |
Reimplemented in llvm::cl::parser< char >, llvm::cl::parser< std::string >, llvm::cl::parser< float >, llvm::cl::parser< double >, llvm::cl::parser< unsigned long long >, llvm::cl::parser< unsigned >, llvm::cl::parser< int >, llvm::cl::parser< boolOrDefault >, and llvm::cl::parser< bool >.
Definition at line 718 of file CommandLine.h.
Referenced by getOptionWidth(), and printOptionInfo().
|
inline |
Definition at line 703 of file CommandLine.h.
void basic_parser_impl::printOptionInfo | ( | const Option & | O, |
size_t | GlobalWidth | ||
) | const |
Definition at line 1119 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getOptionWidth(), getValueName(), getValueStr(), llvm::cl::Option::HelpStr, llvm::outs(), and printHelpStr().
|
protected |
Definition at line 1129 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, llvm::raw_ostream::indent(), llvm::outs(), and llvm::LibFunc::strlen.
Referenced by printOptionNoValue().
void basic_parser_impl::printOptionNoValue | ( | const Option & | O, |
size_t | GlobalWidth | ||
) | const |
Definition at line 1366 of file CommandLine.cpp.
References llvm::outs(), and printOptionName().