class InputArgList

Declaration

class InputArgList : public ArgList { /* full declaration omitted */ };

Description

ArgList - Ordered collection of driver arguments. The ArgList class manages a list of Arg instances as well as auxiliary data and convenience methods to allow Tools to quickly check for the presence of Arg instances for a particular Option and to iterate over groups of arguments.

Declared at: llvm/include/llvm/Option/ArgList.h:383

Inherits from: ArgList

Member Variables

private llvm::opt::ArgStringList ArgStrings
This is mutable since we treat the ArgList as being the list of Args, and allow routines to add new strings (to have a convenient place to store the memory) via MakeIndex.
private std::list<std::string> SynthesizedStrings
This is mutable since we treat the ArgList as being the list of Args, and allow routines to add new strings (to have a convenient place to store the memory) via MakeIndex.
private unsigned int NumInputArgStrings
The number of original input argument strings.

Method Overview

Inherited from ArgList:

Methods

InputArgList()

Declared at: llvm/include/llvm/Option/ArgList.h:406

InputArgList(const char* const* ArgBegin,
             const char* const* ArgEnd)

Declared at: llvm/include/llvm/Option/ArgList.h:408

Parameters

const char* const* ArgBegin
const char* const* ArgEnd

InputArgList(llvm::opt::InputArgList&& RHS)

Declared at: llvm/include/llvm/Option/ArgList.h:410

Parameters

llvm::opt::InputArgList&& RHS

const char* MakeArgStringRef(
    llvm::StringRef Str) const

Description

Construct a constant string pointer whose lifetime will match that of the ArgList.

Declared at: llvm/include/llvm/Option/ArgList.h:447

Parameters

llvm::StringRef Str

unsigned int MakeIndex(
    llvm::StringRef String0) const

Description

MakeIndex - Get an index for the given string(s).

Declared at: llvm/include/llvm/Option/ArgList.h:443

Parameters

llvm::StringRef String0

unsigned int MakeIndex(
    llvm::StringRef String0,
    llvm::StringRef String1) const

Declared at: llvm/include/llvm/Option/ArgList.h:444

Parameters

llvm::StringRef String0
llvm::StringRef String1

const char* getArgString(unsigned int Index) const

Description

getArgString - Return the input argument string at \p Index.

Declared at: llvm/include/llvm/Option/ArgList.h:426

Parameters

unsigned int Index

unsigned int getNumInputArgStrings() const

Description

getNumInputArgStrings - Return the number of original argument strings, which are guaranteed to be the first strings in the argument string list.

Declared at: llvm/include/llvm/Option/ArgList.h:434

void releaseMemory()

Description

Release allocated arguments.

Declared at: llvm/include/llvm/Option/ArgList.h:403

void replaceArgString(unsigned int Index,
                      const llvm::Twine& S)

Declared at: llvm/include/llvm/Option/ArgList.h:430

Parameters

unsigned int Index
const llvm::Twine& S

~InputArgList()

Declared at: llvm/include/llvm/Option/ArgList.h:424