LLVM  8.0.1
Public Member Functions | List of all members
llvm::cl::bits< DataType, Storage, ParserClass > Class Template Reference

#include "llvm/Support/CommandLine.h"

Inheritance diagram for llvm::cl::bits< DataType, Storage, ParserClass >:
Inheritance graph
[legend]
Collaboration diagram for llvm::cl::bits< DataType, Storage, ParserClass >:
Collaboration graph
[legend]

Public Member Functions

 bits (const bits &)=delete
 
bitsoperator= (const bits &)=delete
 
ParserClass & getParser ()
 
unsigned getPosition (unsigned optnum) const
 
template<class... Mods>
 bits (const Mods &... Ms)
 
- Public Member Functions inherited from llvm::cl::Option
enum NumOccurrencesFlag getNumOccurrencesFlag () const
 
enum ValueExpected getValueExpectedFlag () const
 
enum OptionHidden getOptionHiddenFlag () const
 
enum FormattingFlags getFormattingFlag () const
 
unsigned getMiscFlags () const
 
unsigned getPosition () const
 
unsigned getNumAdditionalVals () const
 
bool hasArgStr () const
 
bool isPositional () const
 
bool isSink () const
 
bool isConsumeAfter () const
 
bool isInAllSubCommands () const
 
void setArgStr (StringRef S)
 
void setDescription (StringRef S)
 
void setValueStr (StringRef S)
 
void setNumOccurrencesFlag (enum NumOccurrencesFlag Val)
 
void setValueExpectedFlag (enum ValueExpected Val)
 
void setHiddenFlag (enum OptionHidden Val)
 
void setFormattingFlag (enum FormattingFlags V)
 
void setMiscFlag (enum MiscFlags M)
 
void setPosition (unsigned pos)
 
void setCategory (OptionCategory &C)
 
void addSubCommand (SubCommand &S)
 
virtual ~Option ()=default
 
void addArgument ()
 
void removeArgument ()
 Unregisters this option from the CommandLine system. More...
 
virtual bool addOccurrence (unsigned pos, StringRef ArgName, StringRef Value, bool MultiArg=false)
 
bool error (const Twine &Message, StringRef ArgName=StringRef(), raw_ostream &Errs=llvm::errs())
 
bool error (const Twine &Message, raw_ostream &Errs)
 
int getNumOccurrences () const
 
void reset ()
 
- Public Member Functions inherited from llvm::cl::bits_storage< DataType, Storage >
 bits_storage ()=default
 
bool setLocation (Option &O, unsigned &L)
 
void addValue (const T &V)
 
unsigned getBits ()
 
bool isSet (const T &V)
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::cl::Option
static void printHelpStr (StringRef HelpStr, size_t Indent, size_t FirstLineIndentedBy)
 
- Public Attributes inherited from llvm::cl::Option
StringRef ArgStr
 
StringRef HelpStr
 
StringRef ValueStr
 
OptionCategoryCategory
 
SmallPtrSet< SubCommand *, 4 > Subs
 
bool FullyInitialized = false
 
- Protected Member Functions inherited from llvm::cl::Option
 Option (enum NumOccurrencesFlag OccurrencesFlag, enum OptionHidden Hidden)
 
void setNumAdditionalVals (unsigned n)
 

Detailed Description

template<class DataType, class Storage = bool, class ParserClass = parser<DataType>>
class llvm::cl::bits< DataType, Storage, ParserClass >

Definition at line 1635 of file CommandLine.h.

Constructor & Destructor Documentation

◆ bits() [1/2]

template<class DataType , class Storage = bool, class ParserClass = parser<DataType>>
llvm::cl::bits< DataType, Storage, ParserClass >::bits ( const bits< DataType, Storage, ParserClass > &  )
delete

◆ bits() [2/2]

template<class DataType , class Storage = bool, class ParserClass = parser<DataType>>
template<class... Mods>
llvm::cl::bits< DataType, Storage, ParserClass >::bits ( const Mods &...  Ms)
inlineexplicit

Definition at line 1692 of file CommandLine.h.

References llvm::cl::apply().

Member Function Documentation

◆ getParser()

template<class DataType , class Storage = bool, class ParserClass = parser<DataType>>
ParserClass& llvm::cl::bits< DataType, Storage, ParserClass >::getParser ( )
inline

Definition at line 1684 of file CommandLine.h.

◆ getPosition()

template<class DataType , class Storage = bool, class ParserClass = parser<DataType>>
unsigned llvm::cl::bits< DataType, Storage, ParserClass >::getPosition ( unsigned  optnum) const
inline

Definition at line 1686 of file CommandLine.h.

References assert(), and llvm::size().

◆ operator=()

template<class DataType , class Storage = bool, class ParserClass = parser<DataType>>
bits& llvm::cl::bits< DataType, Storage, ParserClass >::operator= ( const bits< DataType, Storage, ParserClass > &  )
delete

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