class bits

Declaration

template <class DataType,
          class Storage = bool,
          class ParserClass = parser<DataType>>
class bits : public Option { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Support/CommandLine.h:1762

Inherits from: Option

Templates

DataType
Storage = bool
ParserClass = parser<DataType>

Member Variables

private std::vector<unsigned int> Positions
private ParserClass Parser
public std::function<void(const typename ParserClass:: parser_data_type&)> Callback = [](const typename type-parameter-0-2::parser_data_type &) { }

Inherited from Option:

public ArgStr
public HelpStr
public ValueStr
public Categories
public Subs

Method Overview

Inherited from Option:

Methods

bits<DataType, Storage, ParserClass>(
    const bits<DataType, Storage, ParserClass>&)

Declared at: llvm/include/llvm/Support/CommandLine.h:1809

Parameters

const bits<DataType, Storage, ParserClass>&

template <class... Mods>
bits<DataType, Storage, ParserClass>(
    const Mods&... Ms)

Declared at: llvm/include/llvm/Support/CommandLine.h:1820

Templates

Mods

Parameters

const Mods&... Ms

void done()

Declared at: llvm/include/llvm/Support/CommandLine.h:1802

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

Declared at: llvm/include/llvm/Support/CommandLine.h:1770

Parameters

SmallVectorImpl<llvm::StringRef>& OptionNames

size_t getOptionWidth() const

Declared at: llvm/include/llvm/Support/CommandLine.h:1788

ParserClass& getParser()

Declared at: llvm/include/llvm/Support/CommandLine.h:1812

unsigned int getPosition(
    unsigned int optnum) const

Declared at: llvm/include/llvm/Support/CommandLine.h:1814

Parameters

unsigned int optnum

enum ValueExpected getValueExpectedFlagDefault()
    const

Declared at: llvm/include/llvm/Support/CommandLine.h:1766

bool handleOccurrence(unsigned int pos,
                      llvm::StringRef ArgName,
                      llvm::StringRef Arg)

Declared at: llvm/include/llvm/Support/CommandLine.h:1774

Parameters

unsigned int pos
llvm::StringRef ArgName
llvm::StringRef Arg

void printOptionInfo(size_t GlobalWidth) const

Declared at: llvm/include/llvm/Support/CommandLine.h:1792

Parameters

size_t GlobalWidth

void printOptionValue(size_t, bool) const

Declared at: llvm/include/llvm/Support/CommandLine.h:1797

Parameters

size_t
bool

void setCallback(std::function<
                 void(const typename ParserClass::
                          parser_data_type&)> CB)

Declared at: llvm/include/llvm/Support/CommandLine.h:1826

Parameters

std::function<void(const typename ParserClass:: parser_data_type&)> CB

void setDefault()

Declared at: llvm/include/llvm/Support/CommandLine.h:1800