LLVM 20.0.0git
Classes | Public Member Functions | Protected Attributes | List of all members
llvm::cl::generic_parser_base Class Referenceabstract

#include "llvm/Support/CommandLine.h"

Inheritance diagram for llvm::cl::generic_parser_base:
Inheritance graph
[legend]

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 GenericOptionValuegetOptionValue (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

OptionOwner
 

Detailed Description

Definition at line 727 of file CommandLine.h.

Constructor & Destructor Documentation

◆ generic_parser_base()

llvm::cl::generic_parser_base::generic_parser_base ( Option O)
inline

Definition at line 738 of file CommandLine.h.

◆ ~generic_parser_base()

virtual llvm::cl::generic_parser_base::~generic_parser_base ( )
virtualdefault

Member Function Documentation

◆ findOption()

unsigned generic_parser_base::findOption ( StringRef  Name)

◆ getDescription()

virtual StringRef llvm::cl::generic_parser_base::getDescription ( unsigned  N) const
pure virtual

◆ getExtraOptionNames()

void llvm::cl::generic_parser_base::getExtraOptionNames ( SmallVectorImpl< StringRef > &  OptionNames)
inline

◆ getNumOptions()

virtual unsigned llvm::cl::generic_parser_base::getNumOptions ( ) const
pure virtual

◆ getOption()

virtual StringRef llvm::cl::generic_parser_base::getOption ( unsigned  N) const
pure virtual

◆ getOptionValue()

virtual const GenericOptionValue & llvm::cl::generic_parser_base::getOptionValue ( unsigned  N) const
pure virtual

◆ getOptionWidth()

size_t generic_parser_base::getOptionWidth ( const Option O) const
virtual

◆ getValueExpectedFlagDefault()

enum ValueExpected llvm::cl::generic_parser_base::getValueExpectedFlagDefault ( ) const
inline

◆ initialize()

void llvm::cl::generic_parser_base::initialize ( )
inline

◆ printGenericOptionDiff()

void generic_parser_base::printGenericOptionDiff ( const Option O,
const GenericOptionValue V,
const GenericOptionValue Default,
size_t  GlobalWidth 
) const

◆ printOptionDiff()

template<class AnyOptionValue >
void llvm::cl::generic_parser_base::printOptionDiff ( const Option O,
const AnyOptionValue &  V,
const AnyOptionValue &  Default,
size_t  GlobalWidth 
) const
inline

Definition at line 773 of file CommandLine.h.

References llvm::Default, and printGenericOptionDiff().

◆ printOptionInfo()

void generic_parser_base::printOptionInfo ( const Option O,
size_t  GlobalWidth 
) const
virtual

Member Data Documentation

◆ Owner

Option& llvm::cl::generic_parser_base::Owner
protected

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