Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Support/CommandLine.h
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Lines | public: | ||||
bool isSink() const { return getMiscFlags() & cl::Sink; } | bool isSink() const { return getMiscFlags() & cl::Sink; } | ||||
bool isDefaultOption() const { return getMiscFlags() & cl::DefaultOption; } | bool isDefaultOption() const { return getMiscFlags() & cl::DefaultOption; } | ||||
bool isConsumeAfter() const { | bool isConsumeAfter() const { | ||||
return getNumOccurrencesFlag() == cl::ConsumeAfter; | return getNumOccurrencesFlag() == cl::ConsumeAfter; | ||||
} | } | ||||
bool isInAllSubCommands() const { | bool isInAllSubCommands() const { | ||||
return llvm::is_contained(Subs, &SubCommand::getAll()); | return Subs.contains(&SubCommand::getAll()); | ||||
} | } | ||||
//-------------------------------------------------------------------------=== | //-------------------------------------------------------------------------=== | ||||
// Accessor functions set by OptionModifiers | // Accessor functions set by OptionModifiers | ||||
// | // | ||||
void setArgStr(StringRef S); | void setArgStr(StringRef S); | ||||
void setDescription(StringRef S) { HelpStr = S; } | void setDescription(StringRef S) { HelpStr = S; } | ||||
void setValueStr(StringRef S) { ValueStr = S; } | void setValueStr(StringRef S) { ValueStr = S; } | ||||
▲ Show 20 Lines • Show All 1,945 Lines • Show Last 20 Lines |