class parser

Declaration

template <class DataType>
class parser : public generic_parser_base { /* full declaration omitted */ };

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

Inherits from: generic_parser_base

Templates

DataType

Member Variables

protected SmallVector<llvm::cl::parser::OptionInfo, 8> Values

Inherited from generic_parser_base:

protected Owner

Method Overview

  • public template <class DT>void addLiteralOption(llvm::StringRef Name, const DT & V, llvm::StringRef HelpStr)
  • public llvm::StringRef getDescription(unsigned int N) const
  • public unsigned int getNumOptions() const
  • public llvm::StringRef getOption(unsigned int N) const
  • public const llvm::cl::GenericOptionValue & getOptionValue(unsigned int N) const
  • public bool parse(llvm::cl::Option & O, llvm::StringRef ArgName, llvm::StringRef Arg, DataType & V)
  • public parser<DataType>(llvm::cl::Option & O)
  • public void removeLiteralOption(llvm::StringRef Name)

Inherited from generic_parser_base:

Methods

template <class DT>
void addLiteralOption(llvm::StringRef Name,
                      const DT& V,
                      llvm::StringRef HelpStr)

Description

Add an entry to the mapping table.

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

Templates

DT

Parameters

llvm::StringRef Name
const DT& V
llvm::StringRef HelpStr

llvm::StringRef getDescription(
    unsigned int N) const

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

Parameters

unsigned int N

unsigned int getNumOptions() const

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

llvm::StringRef getOption(unsigned int N) const

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

Parameters

unsigned int N

const llvm::cl::GenericOptionValue&
getOptionValue(unsigned int N) const

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

Parameters

unsigned int N

bool parse(llvm::cl::Option& O,
           llvm::StringRef ArgName,
           llvm::StringRef Arg,
           DataType& V)

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

Parameters

llvm::cl::Option& O
llvm::StringRef ArgName
llvm::StringRef Arg
DataType& V

parser<DataType>(llvm::cl::Option& O)

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

Parameters

llvm::cl::Option& O

void removeLiteralOption(llvm::StringRef Name)

Description

Remove the specified option.

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

Parameters

llvm::StringRef Name