LLVM  6.0.0svn
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]
Collaboration diagram for llvm::cl::generic_parser_base:
Collaboration 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 642 of file CommandLine.h.

Constructor & Destructor Documentation

◆ generic_parser_base()

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

◆ ~generic_parser_base()

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

Member Function Documentation

◆ findOption()

unsigned generic_parser_base::findOption ( StringRef  Name)

Definition at line 1540 of file CommandLine.cpp.

Referenced by llvm::PassNameParser::passRegistered().

◆ 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

Definition at line 705 of file CommandLine.h.

References llvm::cl::ValueDisallowed, and llvm::cl::ValueRequired.

◆ 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

◆ 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

Definition at line 729 of file CommandLine.h.


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