10 #ifndef LLVM_OPTION_OPTION_H
11 #define LLVM_OPTION_OPTION_H
80 assert(
Info &&
"Must have a valid info!");
85 assert(
Info &&
"Must have a valid info!");
91 assert(
Info &&
"Must have a valid info!");
96 assert(
Info &&
"Must have a valid info!");
97 assert(
Owner &&
"Must have a valid owner!");
102 assert(
Info &&
"Must have a valid info!");
103 assert(
Owner &&
"Must have a valid owner!");
110 assert(
Info &&
"Must have a valid info!");
112 "AliasArgs should be either 0 or non-empty.");
bool matches(OptSpecifier ID) const
StringRef getName() const
Get the name of this option without any prefix.
bool hasFlag(unsigned Val) const
Test if this option has the flag Val.
const OptTable::Info * Info
DriverFlag
Base flags for all options. Custom flags may be added after.
const Option getAlias() const
OptionClass getKind() const
RenderStyleKind getRenderStyle() const
#define llvm_unreachable(msg)
const Option getGroup() const
ID
LLVM Calling Convention Representation.
unsigned getNumArgs() const
bool hasNoOptAsInput() const
A concrete instance of a particular driver option.
Provide access to the Option info table.
std::string getPrefixedName() const
Get the name of this option with the default prefix.
const char *const * Prefixes
StringRef getPrefix() const
Get the default prefix for this option.
Option(const OptTable::Info *Info, const OptTable *Owner)
const Option getUnaliasedOption() const
OptSpecifier - Wrapper class for abstracting references to option IDs.
const Option getOption(OptSpecifier Opt) const
Get the given Opt's Option instance, lazily creating it if necessary.
Entry for a single option instance in the option data table.
const char * getAliasArgs() const
Get the alias arguments as a \0 separated list. E.g. ["foo", "bar"] would be returned as "foo\0bar\0"...
StringRef getRenderName() const
Arg * accept(const ArgList &Args, unsigned &Index, unsigned ArgSize) const
SmallVector< const char *, 16 > ArgStringList
ArgStringList - Type used for constructing argv lists for subprocesses.