LLVM API Documentation
#include <ArgList.h>
Public Member Functions | |
InputArgList (const char *const *ArgBegin, const char *const *ArgEnd) | |
~InputArgList () | |
const char * | getArgString (unsigned Index) const override |
getArgString - Return the input argument string at Index . | |
unsigned | getNumInputArgStrings () const override |
Arg Synthesis | |
unsigned | MakeIndex (StringRef String0) const |
MakeIndex - Get an index for the given string(s). | |
unsigned | MakeIndex (StringRef String0, StringRef String1) const |
const char * | MakeArgString (StringRef Str) const override |
InputArgList::InputArgList | ( | const char *const * | ArgBegin, |
const char *const * | ArgEnd | ||
) |
Definition at line 306 of file ArgList.cpp.
References llvm::SmallVectorImpl< T >::append().
Definition at line 312 of file ArgList.cpp.
References llvm::opt::ArgList::begin(), and llvm::opt::ArgList::end().
const char* llvm::opt::InputArgList::getArgString | ( | unsigned | Index | ) | const [inline, override, virtual] |
getArgString - Return the input argument string at Index
.
Implements llvm::opt::ArgList.
Definition at line 322 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().
unsigned llvm::opt::InputArgList::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 326 of file ArgList.h.
Referenced by llvm::opt::DerivedArgList::getNumInputArgStrings().
const char * InputArgList::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 337 of file ArgList.cpp.
References getArgString(), and MakeIndex().
Referenced by llvm::opt::DerivedArgList::MakeArgString().
unsigned InputArgList::MakeIndex | ( | StringRef | String0 | ) | const |
MakeIndex - Get an index for the given string(s).
Definition at line 318 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().
unsigned InputArgList::MakeIndex | ( | StringRef | String0, |
StringRef | String1 | ||
) | const |
Definition at line 328 of file ArgList.cpp.
References MakeIndex().