LLVM API Documentation
#include <ArgList.h>
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 343 of file ArgList.cpp.
Definition at line 347 of file ArgList.cpp.
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().
void DerivedArgList::AddSynthesizedArg | ( | Arg * | A | ) |
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().
const InputArgList& llvm::opt::DerivedArgList::getBaseArgs | ( | ) | const [inline] |
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().
MakeFlagArg - Construct a new FlagArg for the given option Id
.
Definition at line 357 of file ArgList.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::opt::Option::getName(), llvm::opt::Option::getPrefix(), 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 382 of file ArgList.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::opt::InputArgList::getArgString(), llvm::opt::Option::getName(), llvm::opt::Option::getPrefix(), 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 364 of file ArgList.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::opt::InputArgList::getArgString(), llvm::opt::Option::getName(), llvm::opt::Option::getPrefix(), 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 373 of file ArgList.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::opt::InputArgList::getArgString(), llvm::opt::Option::getName(), llvm::opt::Option::getPrefix(), MakeArgString(), llvm::opt::InputArgList::MakeIndex(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by AddSeparateArg().