LLVM 24.0.0git
llvm::cl::parser< unsigned > Class Reference

#include "llvm/Support/CommandLine.h"

Inheritance diagram for llvm::cl::parser< unsigned >:
[legend]

Public Types

using parser_data_type
Public Types inherited from llvm::cl::basic_parser< unsigned >
using parser_data_type
using OptVal

Public Member Functions

 parser (Option &O)
bool parse (Option &O, StringRef ArgName, StringRef Arg, unsigned &Val)
StringRef getValueName () const override
void printOptionDiff (const Option &O, unsigned V, OptVal Default, size_t GlobalWidth) const
void anchor () override
unsigned getNumOptions () const override
StringRef getOption (unsigned N) const override
StringRef getDescription (unsigned N) const override
const GenericOptionValue & getOptionValue (unsigned N) const override
void addLiteralOption (StringRef Name, const DT &V, StringRef HelpStr)
 Add an entry to the mapping table.
void removeLiteralOption (StringRef Name)
 Remove the specified option.
Public Member Functions inherited from llvm::cl::generic_parser_base
 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)
Public Member Functions inherited from llvm::cl::basic_parser< unsigned >
 basic_parser (Option &O)
Public Member Functions inherited from llvm::cl::basic_parser_impl
 basic_parser_impl (Option &)
virtual ~basic_parser_impl ()=default
enum ValueExpected getValueExpectedFlagDefault () const
void getExtraOptionNames (SmallVectorImpl< StringRef > &)
void initialize ()
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

Protected Attributes

SmallVector< OptionInfo, 8 > Values
Protected Attributes inherited from llvm::cl::generic_parser_base
Option & Owner

Additional Inherited Members

Protected Member Functions inherited from llvm::cl::basic_parser_impl
void printOptionName (const Option &O, size_t GlobalWidth) const

Detailed Description

Definition at line 1037 of file CommandLine.h.

Member Typedef Documentation

◆ parser_data_type

using llvm::cl::parser< unsigned >::parser_data_type

Definition at line 813 of file CommandLine.h.

Constructor & Destructor Documentation

◆ parser()

Member Function Documentation

◆ addLiteralOption()

void llvm::cl::parser< unsigned >::addLiteralOption ( StringRef Name,
const DT & V,
StringRef HelpStr )
inline

Add an entry to the mapping table.

Definition at line 847 of file CommandLine.h.

◆ anchor()

void llvm::cl::parser< unsigned >::anchor ( )
overridevirtual

Reimplemented from llvm::cl::basic_parser_impl.

◆ getDescription()

StringRef llvm::cl::parser< unsigned >::getDescription ( unsigned N) const
inlineoverridevirtual

Implements llvm::cl::generic_parser_base.

Definition at line 818 of file CommandLine.h.

◆ getNumOptions()

unsigned llvm::cl::parser< unsigned >::getNumOptions ( ) const
inlineoverridevirtual

Implements llvm::cl::generic_parser_base.

Definition at line 816 of file CommandLine.h.

◆ getOption()

StringRef llvm::cl::parser< unsigned >::getOption ( unsigned N) const
inlineoverridevirtual

Implements llvm::cl::generic_parser_base.

Definition at line 817 of file CommandLine.h.

◆ getOptionValue()

const GenericOptionValue & llvm::cl::parser< unsigned >::getOptionValue ( unsigned N) const
inlineoverridevirtual

Implements llvm::cl::generic_parser_base.

Definition at line 823 of file CommandLine.h.

◆ getValueName()

StringRef llvm::cl::parser< unsigned >::getValueName ( ) const
inlineoverridevirtual

Reimplemented from llvm::cl::basic_parser_impl.

Definition at line 1045 of file CommandLine.h.

◆ parse()

◆ printOptionDiff()

void llvm::cl::parser< unsigned >::printOptionDiff ( const Option & O,
unsigned V,
OptVal Default,
size_t GlobalWidth ) const

References llvm::Default.

◆ removeLiteralOption()

void llvm::cl::parser< unsigned >::removeLiteralOption ( StringRef Name)
inline

Remove the specified option.

Definition at line 859 of file CommandLine.h.

Member Data Documentation

◆ Values

SmallVector<OptionInfo, 8> llvm::cl::parser< unsigned >::Values
protected

Definition at line 808 of file CommandLine.h.


The documentation for this class was generated from the following files: