LLVM 22.0.0git
llvm::cl::parser< long long > Class Reference

#include "llvm/Support/CommandLine.h"

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

Public Types

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

Public Member Functions

 parser (Option &O)
bool parse (Option &O, StringRef ArgName, StringRef Arg, long long &Val)
StringRef getValueName () const override
void printOptionDiff (const Option &O, long long 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 GenericOptionValuegetOptionValue (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< long long >
 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
OptionOwner

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 1042 of file CommandLine.h.

Member Typedef Documentation

◆ parser_data_type

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

Definition at line 839 of file CommandLine.h.

Constructor & Destructor Documentation

◆ parser()

llvm::cl::parser< long long >::parser ( Option & O)
inline

Member Function Documentation

◆ addLiteralOption()

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

Add an entry to the mapping table.

Definition at line 873 of file CommandLine.h.

◆ anchor()

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

Reimplemented from llvm::cl::basic_parser_impl.

◆ getDescription()

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

Implements llvm::cl::generic_parser_base.

Definition at line 844 of file CommandLine.h.

◆ getNumOptions()

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

Implements llvm::cl::generic_parser_base.

Definition at line 842 of file CommandLine.h.

◆ getOption()

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

Implements llvm::cl::generic_parser_base.

Definition at line 843 of file CommandLine.h.

◆ getOptionValue()

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

Implements llvm::cl::generic_parser_base.

Definition at line 849 of file CommandLine.h.

◆ getValueName()

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

Reimplemented from llvm::cl::basic_parser_impl.

Definition at line 1050 of file CommandLine.h.

◆ parse()

bool llvm::cl::parser< long long >::parse ( Option & O,
StringRef ArgName,
StringRef Arg,
long long & Val )

◆ printOptionDiff()

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

References llvm::Default.

◆ removeLiteralOption()

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

Remove the specified option.

Definition at line 885 of file CommandLine.h.

Member Data Documentation

◆ Values

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

Definition at line 834 of file CommandLine.h.


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