LLVM 19.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


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


Detailed Description

Definition at line 734 of file CommandLine.h.

Constructor & Destructor Documentation

◆ generic_parser_base()

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

Definition at line 745 of file CommandLine.h.

◆ ~generic_parser_base()

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

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)

◆ 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

◆ getValueExpectedFlagDefault()

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

◆ initialize()

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

◆ 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

Definition at line 780 of file CommandLine.h.

References llvm::Default, and printGenericOptionDiff().

◆ printOptionInfo()

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

Member Data Documentation

◆ Owner

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

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