LLVM API Documentation
#include <ArgList.h>
Public Member Functions | |
DerivedArgList (const InputArgList &BaseArgs) | |
Construct a new derived arg list from BaseArgs . More... | |
~DerivedArgList () | |
virtual const char * | getArgString (unsigned Index) const |
getArgString - Return the input argument string at Index . More... | |
virtual unsigned | getNumInputArgStrings () const |
const InputArgList & | getBaseArgs () const |
Arg Synthesis | |
void | AddSynthesizedArg (Arg *A) |
virtual const char * | MakeArgString (StringRef Str) const |
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) |
Arg * | MakeFlagArg (const Arg *BaseArg, const Option Opt) const |
MakeFlagArg - Construct a new FlagArg for the given option Id . More... | |
Arg * | MakePositionalArg (const Arg *BaseArg, const Option Opt, StringRef Value) const |
Arg * | MakeSeparateArg (const Arg *BaseArg, const Option Opt, StringRef Value) const |
Arg * | MakeJoinedArg (const Arg *BaseArg, const Option Opt, StringRef Value) const |
![]() | |
virtual | ~ArgList () |
void | append (Arg *A) |
append - Append A to the arg list. More... | |
arglist_type & | getArgs () |
const arglist_type & | getArgs () const |
unsigned | size () const |
bool | hasArgNoClaim (OptSpecifier Id) const |
bool | hasArg (OptSpecifier Id) const |
bool | hasArg (OptSpecifier Id0, OptSpecifier Id1) const |
bool | hasArg (OptSpecifier Id0, OptSpecifier Id1, OptSpecifier Id2) const |
Arg * | getLastArgNoClaim (OptSpecifier Id) const |
Arg * | getLastArg (OptSpecifier Id) const |
Arg * | getLastArg (OptSpecifier Id0, OptSpecifier Id1) const |
Arg * | getLastArg (OptSpecifier Id0, OptSpecifier Id1, OptSpecifier Id2) const |
Arg * | getLastArg (OptSpecifier Id0, OptSpecifier Id1, OptSpecifier Id2, OptSpecifier Id3) const |
Arg * | getLastArg (OptSpecifier Id0, OptSpecifier Id1, OptSpecifier Id2, OptSpecifier Id3, OptSpecifier Id4) const |
Arg * | getLastArg (OptSpecifier Id0, OptSpecifier Id1, OptSpecifier Id2, OptSpecifier Id3, OptSpecifier Id4, OptSpecifier Id5) const |
Arg * | getLastArg (OptSpecifier Id0, OptSpecifier Id1, OptSpecifier Id2, OptSpecifier Id3, OptSpecifier Id4, OptSpecifier Id5, OptSpecifier Id6) const |
Arg * | getLastArg (OptSpecifier Id0, OptSpecifier Id1, OptSpecifier Id2, OptSpecifier Id3, OptSpecifier Id4, OptSpecifier Id5, OptSpecifier Id6, OptSpecifier Id7) const |
iterator | begin () |
iterator | end () |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_iterator | begin () const |
const_iterator | end () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
arg_iterator | filtered_begin (OptSpecifier Id0=0U, OptSpecifier Id1=0U, OptSpecifier Id2=0U) const |
arg_iterator | filtered_end () const |
void | eraseArg (OptSpecifier Id) |
eraseArg - Remove any option matching Id . More... | |
StringRef | getLastArgValue (OptSpecifier Id, StringRef Default="") const |
getLastArgValue - Return the value of the last argument, or a default. More... | |
std::vector< std::string > | getAllArgValues (OptSpecifier Id) const |
bool | hasFlag (OptSpecifier Pos, OptSpecifier Neg, bool Default=true) const |
bool | hasFlag (OptSpecifier Pos, OptSpecifier PosAlias, OptSpecifier Neg, bool Default=true) const |
void | AddLastArg (ArgStringList &Output, OptSpecifier Id0) const |
AddLastArg - Render only the last argument match Id0 , if present. More... | |
void | AddLastArg (ArgStringList &Output, OptSpecifier Id0, OptSpecifier Id1) const |
void | AddAllArgs (ArgStringList &Output, OptSpecifier Id0, OptSpecifier Id1=0U, OptSpecifier Id2=0U) const |
AddAllArgs - Render all arguments matching the given ids. More... | |
void | AddAllArgValues (ArgStringList &Output, OptSpecifier Id0, OptSpecifier Id1=0U, OptSpecifier Id2=0U) const |
void | AddAllArgsTranslated (ArgStringList &Output, OptSpecifier Id0, const char *Translation, bool Joined=false) const |
void | ClaimAllArgs (OptSpecifier Id0) const |
void | ClaimAllArgs () const |
const char * | MakeArgString (const char *Str) const |
const char * | MakeArgString (std::string Str) const |
const char * | MakeArgString (const Twine &Str) const |
const char * | GetOrMakeJoinedArgString (unsigned Index, StringRef LHS, StringRef RHS) const |
Create an arg string for (LHS + RHS ), reusing the string at Index if possible. More... | |
Additional Inherited Members | |
![]() | |
typedef SmallVector< Arg *, 16 > | arglist_type |
typedef arglist_type::iterator | iterator |
typedef arglist_type::const_iterator | const_iterator |
typedef arglist_type::reverse_iterator | reverse_iterator |
typedef arglist_type::const_reverse_iterator | const_reverse_iterator |
![]() | |
ArgList () | |
DerivedArgList - An ordered collection of driver arguments, whose storage may be in another argument list.
DerivedArgList::DerivedArgList | ( | const InputArgList & | BaseArgs | ) |
Construct a new derived arg list from BaseArgs
.
Definition at line 348 of file ArgList.cpp.
DerivedArgList::~DerivedArgList | ( | ) |
Definition at line 352 of file ArgList.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), and llvm::SmallVectorTemplateCommon< T, typename >::end().
AddFlagArg - Construct a new FlagArg for the given option Id
and append it to the argument list.
Definition at line 369 of file ArgList.h.
References llvm::opt::ArgList::append(), and MakeFlagArg().
|
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 393 of file ArgList.h.
References llvm::opt::ArgList::append(), and MakeJoinedArg().
|
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 376 of file ArgList.h.
References llvm::opt::ArgList::append(), and MakePositionalArg().
|
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 385 of file ArgList.h.
References llvm::opt::ArgList::append(), and MakeSeparateArg().
|
inline |
AddSynthesizedArg - Add a argument to the list of synthesized arguments (to be freed).
Definition at line 361 of file ArgList.h.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
|
inlinevirtual |
getArgString - Return the input argument string at Index
.
Implements llvm::opt::ArgList.
Definition at line 344 of file ArgList.h.
References llvm::opt::InputArgList::getArgString().
|
inline |
|
inlinevirtual |
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 348 of file ArgList.h.
References llvm::opt::InputArgList::getNumInputArgStrings().
|
virtual |
MakeArgString - Construct a constant string pointer whose lifetime will match that of the ArgList.
Implements llvm::opt::ArgList.
Definition at line 359 of file ArgList.cpp.
References llvm::opt::InputArgList::MakeArgString().
MakeFlagArg - Construct a new FlagArg for the given option Id
.
Definition at line 363 of file ArgList.cpp.
References llvm::ARM_PROC::A, llvm::opt::Option::getName(), llvm::opt::Option::getPrefix(), llvm::opt::ArgList::MakeArgString(), llvm::opt::InputArgList::MakeIndex(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by AddFlagArg().
Arg * DerivedArgList::MakeJoinedArg | ( | const Arg * | BaseArg, |
const Option | Opt, | ||
StringRef | Value | ||
) | const |
MakeJoinedArg - Construct a new Positional arg for the given option Id
, with the provided Value
.
Definition at line 391 of file ArgList.cpp.
References llvm::ARM_PROC::A, llvm::opt::InputArgList::getArgString(), llvm::opt::Option::getName(), llvm::opt::Option::getPrefix(), llvm::opt::ArgList::MakeArgString(), llvm::opt::InputArgList::MakeIndex(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::StringRef::size(), and llvm::StringRef::str().
Referenced by AddJoinedArg().
Arg * DerivedArgList::MakePositionalArg | ( | const Arg * | BaseArg, |
const Option | Opt, | ||
StringRef | Value | ||
) | const |
MakePositionalArg - Construct a new Positional arg for the given option Id
, with the provided Value
.
Definition at line 371 of file ArgList.cpp.
References llvm::ARM_PROC::A, llvm::opt::InputArgList::getArgString(), llvm::opt::Option::getName(), llvm::opt::Option::getPrefix(), llvm::opt::ArgList::MakeArgString(), llvm::opt::InputArgList::MakeIndex(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by AddPositionalArg().
Arg * DerivedArgList::MakeSeparateArg | ( | const Arg * | BaseArg, |
const Option | Opt, | ||
StringRef | Value | ||
) | const |
MakeSeparateArg - Construct a new Positional arg for the given option Id
, with the provided Value
.
Definition at line 381 of file ArgList.cpp.
References llvm::ARM_PROC::A, llvm::opt::InputArgList::getArgString(), llvm::opt::Option::getName(), llvm::opt::Option::getPrefix(), llvm::opt::ArgList::MakeArgString(), llvm::opt::InputArgList::MakeIndex(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by AddSeparateArg().