18 using namespace llvm::opt;
21 : Opt(_Opt), BaseArg(_BaseArg), Spelling(S), Index(_Index),
26 const char *Value0,
const Arg *_BaseArg)
27 : Opt(_Opt), BaseArg(_BaseArg), Spelling(S), Index(_Index),
33 const char *Value0,
const char *Value1,
const Arg *_BaseArg)
34 : Opt(_Opt), BaseArg(_BaseArg), Spelling(S), Index(_Index),
42 for (
unsigned i = 0, e = Values.
size(); i != e; ++i)
56 for (
unsigned i = 0, e = Values.
size(); i != e; ++i) {
71 it = ASL.
begin(), ie = ASL.
end(); it != ie; ++it) {
72 if (it != ASL.
begin())
void push_back(const T &Elt)
unsigned getIndex() const
virtual const char * MakeArgString(StringRef Str) const =0
const char * getValue(unsigned N=0) const
StringRef getSpelling() const
A concrete instance of a particular driver option.
const char * GetOrMakeJoinedArgString(unsigned Index, StringRef LHS, StringRef RHS) const
Create an arg string for (LHS + RHS), reusing the string at Index if possible.
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
Defines the llvm::Arg class for parsed arguments.
unsigned getNumValues() const
std::string getAsString(const ArgList &Args) const
Return a formatted version of the argument and its values, for debugging and diagnostics.