LLVM
15.0.0git
|
#include "llvm/Support/CommandLine.h"
Classes | |
class | OptionInfo |
Public Types | |
using | parser_data_type = DataType |
Public Member Functions | |
parser (Option &O) | |
unsigned | getNumOptions () const override |
StringRef | getOption (unsigned N) const override |
StringRef | getDescription (unsigned N) const override |
const GenericOptionValue & | getOptionValue (unsigned N) const override |
bool | parse (Option &O, StringRef ArgName, StringRef Arg, DataType &V) |
template<class DT > | |
void | addLiteralOption (StringRef Name, const DT &V, StringRef HelpStr) |
Add an entry to the mapping table. More... | |
void | removeLiteralOption (StringRef Name) |
Remove the specified option. More... | |
![]() | |
generic_parser_base (Option &O) | |
virtual | ~generic_parser_base ()=default |
virtual size_t | getOptionWidth (const Option &O) const |
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 | |
SmallVector< OptionInfo, 8 > | Values |
![]() | |
Option & | Owner |
Definition at line 797 of file CommandLine.h.
using llvm::cl::parser< DataType >::parser_data_type = DataType |
Definition at line 811 of file CommandLine.h.
|
inline |
Definition at line 809 of file CommandLine.h.
|
inline |
Add an entry to the mapping table.
Definition at line 845 of file CommandLine.h.
|
inlineoverridevirtual |
Implements llvm::cl::generic_parser_base.
Definition at line 816 of file CommandLine.h.
|
inlineoverridevirtual |
Implements llvm::cl::generic_parser_base.
Definition at line 814 of file CommandLine.h.
|
inlineoverridevirtual |
Implements llvm::cl::generic_parser_base.
Definition at line 815 of file CommandLine.h.
|
inlineoverridevirtual |
Implements llvm::cl::generic_parser_base.
Definition at line 821 of file CommandLine.h.
|
inline |
Definition at line 826 of file CommandLine.h.
|
inline |
Remove the specified option.
Definition at line 854 of file CommandLine.h.
|
protected |
Definition at line 806 of file CommandLine.h.
Referenced by llvm::cl::parser< const PassInfo * >::addLiteralOption(), llvm::cl::parser< const PassInfo * >::getDescription(), llvm::cl::parser< const PassInfo * >::getNumOptions(), llvm::cl::parser< const PassInfo * >::getOption(), llvm::cl::parser< const PassInfo * >::getOptionValue(), llvm::cl::parser< const PassInfo * >::parse(), llvm::PassNameParser::printOptionInfo(), and llvm::cl::parser< const PassInfo * >::removeLiteralOption().