LLVM API Documentation
#include <ArgList.h>
Public Member Functions | |
InputArgList (const char *const *ArgBegin, const char *const *ArgEnd) | |
~InputArgList () | |
virtual const char * | getArgString (unsigned Index) const |
getArgString - Return the input argument string at Index . More... | |
virtual unsigned | getNumInputArgStrings () const |
Arg Synthesis | |
unsigned | MakeIndex (StringRef String0) const |
MakeIndex - Get an index for the given string(s). More... | |
unsigned | MakeIndex (StringRef String0, StringRef String1) const |
virtual const char * | MakeArgString (StringRef Str) 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 () | |
InputArgList::InputArgList | ( | const char *const * | ArgBegin, |
const char *const * | ArgEnd | ||
) |
Definition at line 311 of file ArgList.cpp.
References llvm::SmallVectorImpl< T >::append().
InputArgList::~InputArgList | ( | ) |
Definition at line 317 of file ArgList.cpp.
References llvm::opt::ArgList::begin(), and llvm::opt::ArgList::end().
|
inlinevirtual |
getArgString - Return the input argument string at Index
.
Implements llvm::opt::ArgList.
Definition at line 310 of file ArgList.h.
Referenced by llvm::opt::DerivedArgList::getArgString(), MakeArgString(), llvm::opt::DerivedArgList::MakeJoinedArg(), llvm::opt::DerivedArgList::MakePositionalArg(), llvm::opt::DerivedArgList::MakeSeparateArg(), and llvm::opt::OptTable::ParseArgs().
|
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 314 of file ArgList.h.
Referenced by llvm::opt::DerivedArgList::getNumInputArgStrings().
|
virtual |
MakeArgString - Construct a constant string pointer whose lifetime will match that of the ArgList.
Implements llvm::opt::ArgList.
Definition at line 342 of file ArgList.cpp.
References getArgString(), and MakeIndex().
Referenced by llvm::opt::DerivedArgList::MakeArgString().
MakeIndex - Get an index for the given string(s).
Definition at line 323 of file ArgList.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
Referenced by MakeArgString(), llvm::opt::DerivedArgList::MakeFlagArg(), MakeIndex(), llvm::opt::DerivedArgList::MakeJoinedArg(), llvm::opt::DerivedArgList::MakePositionalArg(), and llvm::opt::DerivedArgList::MakeSeparateArg().
Definition at line 333 of file ArgList.cpp.
References MakeIndex().