class opt

Declaration

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

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

Inherits from: Option

Templates

DataType
bool ExternalStorage = false
ParserClass = parser<DataType>

Member Variables

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

void done()

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

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

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

Parameters

SmallVectorImpl<llvm::StringRef>& OptionNames

size_t getOptionWidth() const

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

ParserClass& getParser()

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

enum ValueExpected getValueExpectedFlagDefault()
    const

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

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

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

Parameters

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

opt<DataType, ExternalStorage, ParserClass>(
    const opt<DataType,
              ExternalStorage,
              ParserClass>&)

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

Parameters

const opt<DataType, ExternalStorage, ParserClass>&

template <class... Mods>
opt<DataType, ExternalStorage, ParserClass>(
    const Mods&... Ms)

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

Templates

Mods

Parameters

const Mods&... Ms

void printOptionInfo(size_t GlobalWidth) const

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

Parameters

size_t GlobalWidth

void printOptionValue(size_t GlobalWidth,
                      bool Force) const

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

Parameters

size_t GlobalWidth
bool Force

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

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

Parameters

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

void setDefault()

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

template <class T,
          class = std::enable_if_t<
              std::is_assignable<T&, T>::value>>
void setDefaultImpl()

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

Templates

T
= std::enable_if_t<std::is_assignable<T &, T>::value>

template <class T,
          class = std::enable_if_t<
              !std::is_assignable<T&, T>::value>>
void setDefaultImpl(...)

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

Templates

T
= std::enable_if_t<!std::is_assignable<T &, T>::value>

void setInitialValue(const DataType& V)

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

Parameters

const DataType& V