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 700 of file CommandLine.h.
virtual llvm::cl::basic_parser_impl::~basic_parser_impl | ( | ) | [inline, virtual] |
Definition at line 702 of file CommandLine.h.
void basic_parser_impl::anchor | ( | ) | [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 69 of file CommandLine.cpp.
void llvm::cl::basic_parser_impl::getExtraOptionNames | ( | SmallVectorImpl< const char * > & | ) | [inline] |
Definition at line 708 of file CommandLine.h.
size_t basic_parser_impl::getOptionWidth | ( | const Option & | O | ) | const |
Definition at line 1160 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getValueName(), getValueStr(), and llvm::LibFunc::strlen.
Referenced by printOptionInfo().
enum ValueExpected llvm::cl::basic_parser_impl::getValueExpectedFlagDefault | ( | ) | const [inline] |
Reimplemented in llvm::cl::parser< boolOrDefault >, and llvm::cl::parser< bool >.
Definition at line 704 of file CommandLine.h.
References llvm::cl::ValueRequired.
virtual const char* llvm::cl::basic_parser_impl::getValueName | ( | ) | const [inline, 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 725 of file CommandLine.h.
Referenced by getOptionWidth(), and printOptionInfo().
void llvm::cl::basic_parser_impl::initialize | ( | Option & | ) | [inline] |
Definition at line 710 of file CommandLine.h.
void basic_parser_impl::printOptionInfo | ( | const Option & | O, |
size_t | GlobalWidth | ||
) | const |
Definition at line 1171 of file CommandLine.cpp.
References llvm::cl::Option::ArgStr, getOptionWidth(), getValueName(), getValueStr(), llvm::cl::Option::HelpStr, llvm::outs(), and printHelpStr().
void basic_parser_impl::printOptionName | ( | const Option & | O, |
size_t | GlobalWidth | ||
) | const [protected] |
Definition at line 1181 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 1418 of file CommandLine.cpp.
References llvm::outs(), and printOptionName().