class DerivedArgList

Declaration

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

Description

DerivedArgList - An ordered collection of driver arguments, whose storage may be in another argument list.

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

Inherits from: ArgList

Method Overview

  • public void AddFlagArg(const llvm::opt::Arg * BaseArg, const llvm::opt::Option Opt)
  • public void AddJoinedArg(const llvm::opt::Arg * BaseArg, const llvm::opt::Option Opt, llvm::StringRef Value)
  • public void AddPositionalArg(const llvm::opt::Arg * BaseArg, const llvm::opt::Option Opt, llvm::StringRef Value)
  • public void AddSeparateArg(const llvm::opt::Arg * BaseArg, const llvm::opt::Option Opt, llvm::StringRef Value)
  • public void AddSynthesizedArg(llvm::opt::Arg * A)
  • public DerivedArgList(const llvm::opt::InputArgList & BaseArgs)
  • public const char * MakeArgStringRef(llvm::StringRef Str) const
  • public llvm::opt::Arg * MakeFlagArg(const llvm::opt::Arg * BaseArg, const llvm::opt::Option Opt) const
  • public llvm::opt::Arg * MakeJoinedArg(const llvm::opt::Arg * BaseArg, const llvm::opt::Option Opt, llvm::StringRef Value) const
  • public llvm::opt::Arg * MakePositionalArg(const llvm::opt::Arg * BaseArg, const llvm::opt::Option Opt, llvm::StringRef Value) const
  • public llvm::opt::Arg * MakeSeparateArg(const llvm::opt::Arg * BaseArg, const llvm::opt::Option Opt, llvm::StringRef Value) const
  • public const char * getArgString(unsigned int Index) const
  • public const llvm::opt::InputArgList & getBaseArgs() const
  • public unsigned int getNumInputArgStrings() const

Inherited from ArgList:

Methods

void AddFlagArg(const llvm::opt::Arg* BaseArg,
                const llvm::opt::Option Opt)

Description

AddFlagArg - Construct a new FlagArg for the given option \p Id and append it to the argument list.

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

Parameters

const llvm::opt::Arg* BaseArg
const llvm::opt::Option Opt

void AddJoinedArg(const llvm::opt::Arg* BaseArg,
                  const llvm::opt::Option Opt,
                  llvm::StringRef Value)

Description

AddJoinedArg - Construct a new Positional arg for the given option\p Id, with the provided \p Value and append it to the argument list.

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

Parameters

const llvm::opt::Arg* BaseArg
const llvm::opt::Option Opt
llvm::StringRef Value

void AddPositionalArg(
    const llvm::opt::Arg* BaseArg,
    const llvm::opt::Option Opt,
    llvm::StringRef Value)

Description

AddPositionalArg - Construct a new Positional arg for the given option\p Id, with the provided \p Value and append it to the argument list.

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

Parameters

const llvm::opt::Arg* BaseArg
const llvm::opt::Option Opt
llvm::StringRef Value

void AddSeparateArg(const llvm::opt::Arg* BaseArg,
                    const llvm::opt::Option Opt,
                    llvm::StringRef Value)

Description

AddSeparateArg - Construct a new Positional arg for the given option\p Id, with the provided \p Value and append it to the argument list.

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

Parameters

const llvm::opt::Arg* BaseArg
const llvm::opt::Option Opt
llvm::StringRef Value

void AddSynthesizedArg(llvm::opt::Arg* A)

Description

AddSynthesizedArg - Add a argument to the list of synthesized arguments (to be freed).

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

Parameters

llvm::opt::Arg* A

DerivedArgList(
    const llvm::opt::InputArgList& BaseArgs)

Description

Construct a new derived arg list from \p BaseArgs.

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

Parameters

const llvm::opt::InputArgList& BaseArgs

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:465

Parameters

llvm::StringRef Str

llvm::opt::Arg* MakeFlagArg(
    const llvm::opt::Arg* BaseArg,
    const llvm::opt::Option Opt) const

Description

MakeFlagArg - Construct a new FlagArg for the given option \p Id.

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

Parameters

const llvm::opt::Arg* BaseArg
const llvm::opt::Option Opt

llvm::opt::Arg* MakeJoinedArg(
    const llvm::opt::Arg* BaseArg,
    const llvm::opt::Option Opt,
    llvm::StringRef Value) const

Description

MakeJoinedArg - Construct a new Positional arg for the given option \p Id, with the provided \p Value.

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

Parameters

const llvm::opt::Arg* BaseArg
const llvm::opt::Option Opt
llvm::StringRef Value

llvm::opt::Arg* MakePositionalArg(
    const llvm::opt::Arg* BaseArg,
    const llvm::opt::Option Opt,
    llvm::StringRef Value) const

Description

MakePositionalArg - Construct a new Positional arg for the given option \p Id, with the provided \p Value.

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

Parameters

const llvm::opt::Arg* BaseArg
const llvm::opt::Option Opt
llvm::StringRef Value

llvm::opt::Arg* MakeSeparateArg(
    const llvm::opt::Arg* BaseArg,
    const llvm::opt::Option Opt,
    llvm::StringRef Value) const

Description

MakeSeparateArg - Construct a new Positional arg for the given option \p Id, with the provided \p Value.

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

Parameters

const llvm::opt::Arg* BaseArg
const llvm::opt::Option Opt
llvm::StringRef Value

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:445

Parameters

unsigned int Index

const llvm::opt::InputArgList& getBaseArgs() const

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

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:449