LLVM
15.0.0git
|
#include "llvm/Support/CommandLine.h"
Classes | |
class | GenericOptionInfo |
Public Member Functions | |
generic_parser_base (Option &O) | |
virtual | ~generic_parser_base ()=default |
virtual unsigned | getNumOptions () const =0 |
virtual StringRef | getOption (unsigned N) const =0 |
virtual StringRef | 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< StringRef > &OptionNames) |
enum ValueExpected | getValueExpectedFlagDefault () const |
unsigned | findOption (StringRef Name) |
Protected Attributes | |
Option & | Owner |
Definition at line 701 of file CommandLine.h.
|
inline |
Definition at line 712 of file CommandLine.h.
|
virtualdefault |
unsigned generic_parser_base::findOption | ( | StringRef | Name | ) |
Definition at line 2000 of file CommandLine.cpp.
References llvm::numbers::e, getNumOptions(), getOption(), and i.
Referenced by llvm::cl::parser< const PassInfo * >::addLiteralOption(), llvm::PassNameParser::passRegistered(), and llvm::cl::parser< const PassInfo * >::removeLiteralOption().
|
pure virtual |
Implemented in llvm::cl::parser< DataType >, llvm::cl::parser< Optional< uint64_t > >, llvm::cl::parser< RegistryClass::FunctionPassCtor >, and llvm::cl::parser< const PassInfo * >.
Referenced by getOptionWidth(), and printOptionInfo().
|
inline |
Definition at line 755 of file CommandLine.h.
References llvm::numbers::e, getNumOptions(), getOption(), llvm::cl::Option::hasArgStr(), i, and Owner.
|
pure virtual |
Implemented in llvm::cl::parser< DataType >.
Referenced by findOption(), getExtraOptionNames(), getOptionWidth(), printGenericOptionDiff(), and printOptionInfo().
|
pure virtual |
|
pure virtual |
Definition at line 2024 of file CommandLine.cpp.
References argPlusPrefixesSize(), llvm::numbers::e, EmptyOption, EqValue, getDescription(), getNumOptions(), getOption(), getOptionPrefixesSize(), i, llvm::max(), llvm::COFF::NameSize, llvm::RISCVFenceField::O, shouldPrintOption(), llvm::StringRef::size(), and llvm::size().
|
inline |
Definition at line 764 of file CommandLine.h.
References llvm::cl::Option::hasArgStr(), Owner, llvm::cl::ValueDisallowed, and llvm::cl::ValueRequired.
|
inline |
Definition at line 753 of file CommandLine.h.
Referenced by 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 2100 of file CommandLine.cpp.
References getNumOptions(), getOption(), getOptionValue(), i, llvm::raw_ostream::indent(), j(), MaxOptWidth, llvm::RISCVFenceField::O, llvm::outs(), and llvm::StringRef::size().
Referenced by printOptionDiff().
|
inline |
Definition at line 747 of file CommandLine.h.
References llvm::RISCVFenceField::O, and printGenericOptionDiff().
Reimplemented in llvm::PassNameParser.
Definition at line 2047 of file CommandLine.cpp.
References argPlusPrefixesSize(), assert(), llvm::numbers::e, llvm::StringRef::empty(), llvm::empty(), EmptyOption, EqValue, getDescription(), getNumOptions(), getOption(), getOptionPrefixesSize(), i, llvm::RISCVFenceField::O, OptionPrefix, llvm::outs(), llvm::cl::Option::printEnumValHelpStr(), llvm::cl::Option::printHelpStr(), shouldPrintOption(), llvm::StringRef::size(), and llvm::cl::ValueOptional.
Referenced by llvm::PassNameParser::printOptionInfo().
|
protected |
Definition at line 788 of file CommandLine.h.
Referenced by llvm::cl::parser< const PassInfo * >::addLiteralOption(), getExtraOptionNames(), getValueExpectedFlagDefault(), and llvm::cl::parser< const PassInfo * >::parse().