|
LLVM
4.0.0
|
#include <CommandLine.h>
Public Attributes | |
| StringRef | ArgStr |
| StringRef | HelpStr |
| StringRef | ValueStr |
| OptionCategory * | Category |
| SmallPtrSet< SubCommand *, 4 > | Subs |
| bool | FullyInitialized |
Protected Member Functions | |
| Option (enum NumOccurrencesFlag OccurrencesFlag, enum OptionHidden Hidden) | |
| void | setNumAdditionalVals (unsigned n) |
Friends | |
| class | alias |
Definition at line 225 of file CommandLine.h.
|
inlineexplicitprotected |
Definition at line 314 of file CommandLine.h.
|
virtualdefault |
| void Option::addArgument | ( | ) |
Definition at line 366 of file CommandLine.cpp.
References FullyInitialized, and GlobalParser.
|
virtual |
Definition at line 1368 of file CommandLine.cpp.
References llvm::cl::ConsumeAfter, error(), getNumOccurrencesFlag(), LLVM_FALLTHROUGH, llvm::cl::OneOrMore, llvm::cl::Required, and llvm::cl::ZeroOrMore.
Referenced by CommaSeparateAndAddOccurrence().
|
inline |
Definition at line 311 of file CommandLine.h.
References Subs.
Definition at line 1356 of file CommandLine.cpp.
References AMDGPU::RuntimeMD::KeyName::ArgName, ArgStr, llvm::StringRef::data(), llvm::StringRef::empty(), llvm::errs(), GlobalParser, and HelpStr.
Referenced by addOccurrence(), llvm::cl::parser< const PassInfo * >::parse(), parseDouble(), ProvideOption(), llvm::cl::alias::setAliasFor(), llvm::cl::opt_storage< DataType, ExternalStorage, std::is_class< DataType >::value >::setLocation(), llvm::cl::list_storage< DataType, StorageClass >::setLocation(), and llvm::cl::bits_storage< DataType, Storage >::setLocation().
|
inlinevirtual |
Definition at line 346 of file CommandLine.h.
Referenced by LookupNearestOption().
|
inline |
Definition at line 275 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), isGrouping(), isPositional(), and isPrefixedOrGrouping().
|
inline |
Definition at line 279 of file CommandLine.h.
Referenced by CommaSeparateAndAddOccurrence(), and isSink().
|
inline |
Definition at line 281 of file CommandLine.h.
Referenced by ProvideOption().
|
inline |
Definition at line 356 of file CommandLine.h.
|
inline |
Definition at line 263 of file CommandLine.h.
Referenced by addOccurrence(), EatsUnboundedNumberOfValues(), isConsumeAfter(), and RequiresValue().
|
inline |
Definition at line 271 of file CommandLine.h.
|
pure virtual |
|
inline |
Definition at line 280 of file CommandLine.h.
|
inline |
Definition at line 267 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), LookupNearestOption(), and ProvideOption().
|
inline |
Definition at line 284 of file CommandLine.h.
References ArgStr, and llvm::StringRef::empty().
Referenced by llvm::cl::generic_parser_base::getExtraOptionNames(), llvm::cl::generic_parser_base::getOptionWidth(), llvm::cl::generic_parser_base::getValueExpectedFlagDefault(), LookupNearestOption(), llvm::cl::parser< const PassInfo * >::parse(), and llvm::cl::generic_parser_base::printOptionInfo().
|
inline |
Definition at line 288 of file CommandLine.h.
References llvm::cl::ConsumeAfter, and getNumOccurrencesFlag().
|
inline |
Definition at line 292 of file CommandLine.h.
References llvm::cl::AllSubCommands, llvm::any_of(), llvm::PPCISD::SC, and Subs.
|
inline |
Definition at line 285 of file CommandLine.h.
References getFormattingFlag(), and llvm::cl::Positional.
|
inline |
Definition at line 286 of file CommandLine.h.
References getMiscFlags(), and llvm::cl::Sink.
|
pure virtual |
|
pure virtual |
| void Option::removeArgument | ( | ) |
Unregisters this option from the CommandLine system.
This option must have been the last option registered. For testing purposes only.
Definition at line 371 of file CommandLine.cpp.
References GlobalParser.
|
inline |
Definition at line 357 of file CommandLine.h.
Referenced by llvm::cl::ResetAllOptionOccurrences().
| void Option::setArgStr | ( | StringRef | S | ) |
Definition at line 373 of file CommandLine.cpp.
References ArgStr, assert(), llvm::StringRef::empty(), FullyInitialized, and GlobalParser.
|
inline |
Definition at line 310 of file CommandLine.h.
|
inline |
Definition at line 302 of file CommandLine.h.
References HelpStr.
Referenced by llvm::cl::desc::apply().
|
inline |
Definition at line 307 of file CommandLine.h.
Referenced by llvm::cl::applicator< FormattingFlags >::opt().
|
inline |
Definition at line 306 of file CommandLine.h.
Referenced by llvm::cl::applicator< OptionHidden >::opt().
|
inline |
Definition at line 308 of file CommandLine.h.
Referenced by llvm::cl::applicator< MiscFlags >::opt().
|
inlineprotected |
Definition at line 321 of file CommandLine.h.
Referenced by llvm::cl::list< DataType, StorageClass, ParserClass >::setNumAdditionalVals().
|
inline |
Definition at line 304 of file CommandLine.h.
Referenced by llvm::cl::applicator< NumOccurrencesFlag >::opt().
|
inline |
Definition at line 309 of file CommandLine.h.
|
inline |
Definition at line 305 of file CommandLine.h.
Referenced by llvm::cl::applicator< ValueExpected >::opt().
|
inline |
Definition at line 303 of file CommandLine.h.
References ValueStr.
Referenced by llvm::cl::value_desc::apply().
|
friend |
Definition at line 226 of file CommandLine.h.
| StringRef llvm::cl::Option::ArgStr |
Definition at line 256 of file CommandLine.h.
Referenced by error(), llvm::cl::generic_parser_base::getOptionWidth(), llvm::cl::basic_parser_impl::getOptionWidth(), hasArgStr(), LookupNearestOption(), llvm::cl::generic_parser_base::printGenericOptionDiff(), llvm::cl::generic_parser_base::printOptionInfo(), llvm::cl::basic_parser_impl::printOptionInfo(), llvm::cl::basic_parser_impl::printOptionName(), ProvidePositionalOption(), and setArgStr().
| OptionCategory* llvm::cl::Option::Category |
Definition at line 259 of file CommandLine.h.
Referenced by setCategory().
| bool llvm::cl::Option::FullyInitialized |
Definition at line 261 of file CommandLine.h.
Referenced by addArgument(), and setArgStr().
| StringRef llvm::cl::Option::HelpStr |
Definition at line 257 of file CommandLine.h.
Referenced by error(), llvm::cl::generic_parser_base::printOptionInfo(), llvm::cl::basic_parser_impl::printOptionInfo(), and setDescription().
| SmallPtrSet<SubCommand *, 4> llvm::cl::Option::Subs |
Definition at line 260 of file CommandLine.h.
Referenced by addSubCommand(), and isInAllSubCommands().
| StringRef llvm::cl::Option::ValueStr |
Definition at line 258 of file CommandLine.h.
Referenced by getValueStr(), and setValueStr().
1.8.6