LLVM API Documentation

Public Member Functions
llvm::opt::DerivedArgList Class Reference

#include <ArgList.h>

Inheritance diagram for llvm::opt::DerivedArgList:
Inheritance graph
[legend]
Collaboration diagram for llvm::opt::DerivedArgList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DerivedArgList (const InputArgList &BaseArgs)
 Construct a new derived arg list from BaseArgs.
 ~DerivedArgList ()
const char * getArgString (unsigned Index) const override
 getArgString - Return the input argument string at Index.
unsigned getNumInputArgStrings () const override
const InputArgListgetBaseArgs () const
Arg Synthesis
void AddSynthesizedArg (Arg *A)
const char * MakeArgString (StringRef Str) const override
void AddFlagArg (const Arg *BaseArg, const Option Opt)
void AddPositionalArg (const Arg *BaseArg, const Option Opt, StringRef Value)
void AddSeparateArg (const Arg *BaseArg, const Option Opt, StringRef Value)
void AddJoinedArg (const Arg *BaseArg, const Option Opt, StringRef Value)
ArgMakeFlagArg (const Arg *BaseArg, const Option Opt) const
 MakeFlagArg - Construct a new FlagArg for the given option Id.
ArgMakePositionalArg (const Arg *BaseArg, const Option Opt, StringRef Value) const
ArgMakeSeparateArg (const Arg *BaseArg, const Option Opt, StringRef Value) const
ArgMakeJoinedArg (const Arg *BaseArg, const Option Opt, StringRef Value) const

Detailed Description

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

Definition at line 346 of file ArgList.h.


Constructor & Destructor Documentation

Construct a new derived arg list from BaseArgs.

Definition at line 343 of file ArgList.cpp.

Definition at line 347 of file ArgList.cpp.


Member Function Documentation

void llvm::opt::DerivedArgList::AddFlagArg ( const Arg BaseArg,
const Option  Opt 
) [inline]

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

Definition at line 381 of file ArgList.h.

References llvm::opt::ArgList::append(), and MakeFlagArg().

void llvm::opt::DerivedArgList::AddJoinedArg ( const Arg BaseArg,
const Option  Opt,
StringRef  Value 
) [inline]

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

Definition at line 405 of file ArgList.h.

References llvm::opt::ArgList::append(), and MakeJoinedArg().

void llvm::opt::DerivedArgList::AddPositionalArg ( const Arg BaseArg,
const Option  Opt,
StringRef  Value 
) [inline]

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

Definition at line 388 of file ArgList.h.

References llvm::opt::ArgList::append(), and MakePositionalArg().

void llvm::opt::DerivedArgList::AddSeparateArg ( const Arg BaseArg,
const Option  Opt,
StringRef  Value 
) [inline]

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

Definition at line 397 of file ArgList.h.

References llvm::opt::ArgList::append(), and MakeSeparateArg().

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

Definition at line 353 of file ArgList.cpp.

References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().

const char* llvm::opt::DerivedArgList::getArgString ( unsigned  Index) const [inline, override, virtual]

getArgString - Return the input argument string at Index.

Implements llvm::opt::ArgList.

Definition at line 357 of file ArgList.h.

References llvm::opt::InputArgList::getArgString().

Definition at line 365 of file ArgList.h.

unsigned llvm::opt::DerivedArgList::getNumInputArgStrings ( ) const [inline, override, virtual]

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

Implements llvm::opt::ArgList.

Definition at line 361 of file ArgList.h.

References llvm::opt::InputArgList::getNumInputArgStrings().

const char * DerivedArgList::MakeArgString ( StringRef  Str) const [override, virtual]

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

Implements llvm::opt::ArgList.

Definition at line 349 of file ArgList.cpp.

References llvm::opt::InputArgList::MakeArgString().

Referenced by MakeFlagArg(), MakeJoinedArg(), MakePositionalArg(), and MakeSeparateArg().

Arg * DerivedArgList::MakeFlagArg ( const Arg BaseArg,
const Option  Opt 
) const
Arg * DerivedArgList::MakeJoinedArg ( const Arg BaseArg,
const Option  Opt,
StringRef  Value 
) const
Arg * DerivedArgList::MakePositionalArg ( const Arg BaseArg,
const Option  Opt,
StringRef  Value 
) const
Arg * DerivedArgList::MakeSeparateArg ( const Arg BaseArg,
const Option  Opt,
StringRef  Value 
) const

The documentation for this class was generated from the following files: