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

#include "llvm/Support/CommandLine.h"

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

Public Types

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

Public Member Functions

 parser (Option &O)
bool parse (Option &O, StringRef ArgName, StringRef Arg, float &Val)
StringRef getValueName () const override
void printOptionDiff (const Option &O, float 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< float >
 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 1152 of file CommandLine.h.

Member Typedef Documentation

◆ parser_data_type

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

Definition at line 839 of file CommandLine.h.

Constructor & Destructor Documentation

◆ parser()

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

Definition at line 1154 of file CommandLine.h.

References llvm::cl::basic_parser< float >::basic_parser().

Member Function Documentation

◆ addLiteralOption()

void llvm::cl::parser< float >::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< float >::anchor ( )
overridevirtual

Reimplemented from llvm::cl::basic_parser_impl.

◆ getDescription()

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

Implements llvm::cl::generic_parser_base.

Definition at line 844 of file CommandLine.h.

◆ getNumOptions()

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

Implements llvm::cl::generic_parser_base.

Definition at line 842 of file CommandLine.h.

◆ getOption()

StringRef llvm::cl::parser< float >::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< float >::getOptionValue ( unsigned N) const
inlineoverridevirtual

Implements llvm::cl::generic_parser_base.

Definition at line 849 of file CommandLine.h.

◆ getValueName()

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

Reimplemented from llvm::cl::basic_parser_impl.

Definition at line 1160 of file CommandLine.h.

◆ parse()

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

◆ printOptionDiff()

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

References llvm::Default.

◆ removeLiteralOption()

void llvm::cl::parser< float >::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< float >::Values
protected

Definition at line 834 of file CommandLine.h.


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