15 #ifndef LLVM_OPTION_ARG_H
16 #define LLVM_OPTION_ARG_H
56 mutable unsigned Claimed : 1;
59 mutable unsigned OwnsValues : 1;
66 const Arg *BaseArg = 0);
68 const char *Value0,
const Arg *BaseArg = 0);
70 const char *Value0,
const char *Value1,
const Arg *BaseArg = 0);
82 return BaseArg ? *BaseArg : *
this;
107 if (Values[i] == Value)
unsigned getIndex() const
const char * getValue(unsigned N=0) const
StringRef getSpelling() const
A concrete instance of a particular driver option.
void claim() const
Set the Arg claimed bit.
void renderAsInput(const ArgList &Args, ArgStringList &Output) const
Append the argument, render as an input, onto the given array as strings.
void render(const ArgList &Args, ArgStringList &Output) const
Append the argument onto the given array as strings.
const Option getOption() const
bool getOwnsValues() const
#define LLVM_DELETED_FUNCTION
void setOwnsValues(bool Value) const
unsigned getNumValues() const
bool containsValue(StringRef Value) const
std::string getAsString(const ArgList &Args) const
Return a formatted version of the argument and its values, for debugging and diagnostics.
void setBaseArg(const Arg *_BaseArg)
LLVM Value Representation.
const Arg & getBaseArg() const
Return the base argument which generated this arg.
SmallVectorImpl< const char * > & getValues()