|
LLVM
8.0.1
|
#include "llvm/Option/ArgList.h"


Public Member Functions | |
| InputArgList () | |
| InputArgList (const char *const *ArgBegin, const char *const *ArgEnd) | |
| InputArgList (InputArgList &&RHS) | |
| InputArgList & | operator= (InputArgList &&RHS) |
| ~InputArgList () | |
| const char * | getArgString (unsigned Index) const override |
getArgString - Return the input argument string at Index. More... | |
| unsigned | getNumInputArgStrings () const override |
| getNumInputArgStrings - Return the number of original argument strings, which are guaranteed to be the first strings in the argument string list. More... | |
Arg Synthesis | |
| unsigned | MakeIndex (StringRef String0) const |
| MakeIndex - Get an index for the given string(s). More... | |
| unsigned | MakeIndex (StringRef String0, StringRef String1) const |
| const char * | MakeArgStringRef (StringRef Str) const override |
| Construct a constant string pointer whose lifetime will match that of the ArgList. More... | |
Public Member Functions inherited from llvm::opt::ArgList | |
| void | append (Arg *A) |
append - Append A to the arg list. More... | |
| const arglist_type & | getArgs () const |
| unsigned | size () const |
| template<typename ... OptSpecifiers> | |
| bool | hasArgNoClaim (OptSpecifiers ...Ids) const |
hasArg - Does the arg list contain any option matching Id. More... | |
| template<typename ... OptSpecifiers> | |
| bool | hasArg (OptSpecifiers ...Ids) const |
| template<typename ... OptSpecifiers> | |
| Arg * | getLastArg (OptSpecifiers ...Ids) const |
Return the last argument matching Id, or null. More... | |
| template<typename ... OptSpecifiers> | |
| Arg * | getLastArgNoClaim (OptSpecifiers ...Ids) const |
Return the last argument matching Id, or null. More... | |
| 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 |
| template<typename ... OptSpecifiers> | |
| iterator_range< filtered_iterator< sizeof...(OptSpecifiers)> > | filtered (OptSpecifiers ...Ids) const |
| template<typename ... OptSpecifiers> | |
| iterator_range< filtered_reverse_iterator< sizeof...(OptSpecifiers)> > | filtered_reverse (OptSpecifiers ...Ids) 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 |
| getAllArgValues - Get the values of all instances of the given argument as strings. More... | |
| bool | hasFlag (OptSpecifier Pos, OptSpecifier Neg, bool Default=true) const |
hasFlag - Given an option Pos and its negative form Neg, return true if the option is present, false if the negation is present, and Default if neither option is given. More... | |
| bool | hasFlag (OptSpecifier Pos, OptSpecifier PosAlias, OptSpecifier Neg, bool Default=true) const |
hasFlag - Given an option Pos, an alias PosAlias and its negative form Neg, return true if the option or its alias is present, false if the negation is present, and Default if none of the options are given. More... | |
| 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 | AddAllArgsExcept (ArgStringList &Output, ArrayRef< OptSpecifier > Ids, ArrayRef< OptSpecifier > ExcludeIds) const |
| AddAllArgsExcept - Render all arguments matching any of the given ids and not matching any of the excluded ids. More... | |
| void | AddAllArgs (ArgStringList &Output, ArrayRef< OptSpecifier > Ids) const |
| AddAllArgs - Render all arguments matching any of the given ids. More... | |
| 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 |
| AddAllArgValues - Render the argument values of all arguments matching the given ids. More... | |
| void | AddAllArgsTranslated (ArgStringList &Output, OptSpecifier Id0, const char *Translation, bool Joined=false) const |
| AddAllArgsTranslated - Render all the arguments matching the given ids, but forced to separate args and using the provided name instead of the first option value. More... | |
| void | ClaimAllArgs (OptSpecifier Id0) const |
| ClaimAllArgs - Claim all arguments which match the given option id. More... | |
| void | ClaimAllArgs () const |
| ClaimAllArgs - Claim all arguments. More... | |
| 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... | |
| void | print (raw_ostream &O) const |
| void | dump () const |
Additional Inherited Members | |
Public Types inherited from llvm::opt::ArgList | |
| using | arglist_type = SmallVector< Arg *, 16 > |
| using | iterator = arg_iterator< arglist_type::iterator > |
| using | const_iterator = arg_iterator< arglist_type::const_iterator > |
| using | reverse_iterator = arg_iterator< arglist_type::reverse_iterator > |
| using | const_reverse_iterator = arg_iterator< arglist_type::const_reverse_iterator > |
| template<unsigned N> | |
| using | filtered_iterator = arg_iterator< arglist_type::const_iterator, N > |
| template<unsigned N> | |
| using | filtered_reverse_iterator = arg_iterator< arglist_type::const_reverse_iterator, N > |
Protected Member Functions inherited from llvm::opt::ArgList | |
| ArgList ()=default | |
| ArgList (ArgList &&RHS) | |
| ArgList & | operator= (ArgList &&RHS) |
| ~ArgList ()=default | |
Static Protected Member Functions inherited from llvm::opt::ArgList | |
| static OptSpecifier | toOptSpecifier (OptSpecifier S) |
Definition at line 218 of file ArgList.cpp.
References llvm::SmallVectorImpl< T >::append().
|
inline |
getArgString - Return the input argument string at Index.
Implements llvm::opt::ArgList.
Definition at line 410 of file ArgList.h.
Referenced by llvm::dlltoolDriverMain(), llvm::opt::DerivedArgList::getArgString(), MakeArgStringRef(), llvm::opt::DerivedArgList::MakeJoinedArg(), llvm::opt::DerivedArgList::MakePositionalArg(), and llvm::opt::DerivedArgList::MakeSeparateArg().
|
inlineoverridevirtual |
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 414 of file ArgList.h.
References llvm::opt::ArgList::MakeArgString().
Referenced by llvm::opt::DerivedArgList::getNumInputArgStrings().
Construct a constant string pointer whose lifetime will match that of the ArgList.
Implements llvm::opt::ArgList.
Definition at line 243 of file ArgList.cpp.
References getArgString(), and MakeIndex().
MakeIndex - Get an index for the given string(s).
Definition at line 224 of file ArgList.cpp.
References llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::SmallVectorBase::size().
Referenced by MakeArgStringRef(), llvm::opt::DerivedArgList::MakeFlagArg(), MakeIndex(), llvm::opt::DerivedArgList::MakeJoinedArg(), llvm::opt::DerivedArgList::MakePositionalArg(), and llvm::opt::DerivedArgList::MakeSeparateArg().
Definition at line 234 of file ArgList.cpp.
References assert(), and MakeIndex().
|
inline |
Definition at line 399 of file ArgList.h.
References llvm::opt::ArgList::operator=().
1.8.13