LLVM
8.0.1
|
#include "llvm/Support/CommandLine.h"
Static Public Member Functions | |
static void | printHelpStr (StringRef HelpStr, size_t Indent, size_t FirstLineIndentedBy) |
Public Attributes | |
StringRef | ArgStr |
StringRef | HelpStr |
StringRef | ValueStr |
OptionCategory * | Category |
SmallPtrSet< SubCommand *, 4 > | Subs |
bool | FullyInitialized = false |
Protected Member Functions | |
Option (enum NumOccurrencesFlag OccurrencesFlag, enum OptionHidden Hidden) | |
void | setNumAdditionalVals (unsigned n) |
Friends | |
class | alias |
Definition at line 247 of file CommandLine.h.
|
inlineexplicitprotected |
Definition at line 336 of file CommandLine.h.
|
virtualdefault |
void Option::addArgument | ( | ) |
Definition at line 356 of file CommandLine.cpp.
|
virtual |
Definition at line 1450 of file CommandLine.cpp.
References llvm::cl::ConsumeAfter, error, LLVM_FALLTHROUGH, llvm::cl::OneOrMore, llvm::cl::Optional, llvm::cl::Required, and llvm::cl::ZeroOrMore.
Referenced by CommaSeparateAndAddOccurrence().
|
inline |
Definition at line 333 of file CommandLine.h.
References llvm::SmallPtrSetImpl< PtrType >::insert().
bool Option::error | ( | const Twine & | Message, |
StringRef | ArgName = StringRef() , |
||
raw_ostream & | Errs = llvm::errs() |
||
) |
Definition at line 1438 of file CommandLine.cpp.
References llvm::StringRef::data(), and llvm::StringRef::empty().
Referenced by llvm::cl::basic_parser_impl::anchor(), llvm::cl::parser< const PassInfo *>::parse(), parseDouble(), llvm::cl::basic_parser_impl::printOptionName(), ProvideOption(), llvm::cl::ResetAllOptionOccurrences(), 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().
|
inline |
Definition at line 380 of file CommandLine.h.
References error.
|
inlinevirtual |
Definition at line 371 of file CommandLine.h.
References error, and llvm::errs().
Referenced by llvm::cl::basic_parser_impl::anchor(), and LookupNearestOption().
|
inline |
Definition at line 297 of file CommandLine.h.
Referenced by llvm::cl::basic_parser_impl::anchor(), HandlePrefixedOrGroupedOption(), isGrouping(), isPrefixedOrGrouping(), ProvideOption(), and llvm::cl::ResetAllOptionOccurrences().
|
inline |
Definition at line 301 of file CommandLine.h.
Referenced by llvm::cl::basic_parser_impl::anchor(), CommaSeparateAndAddOccurrence(), llvm::cl::basic_parser_impl::getOptionWidth(), llvm::cl::basic_parser_impl::printOptionInfo(), and llvm::cl::ResetAllOptionOccurrences().
|
inline |
Definition at line 303 of file CommandLine.h.
Referenced by ProvideOption().
|
inline |
Definition at line 384 of file CommandLine.h.
Referenced by getSchedRegions(), and llvm::TargetPassConfig::TargetPassConfig().
|
inline |
Definition at line 285 of file CommandLine.h.
Referenced by llvm::cl::basic_parser_impl::anchor(), EatsUnboundedNumberOfValues(), and RequiresValue().
|
inline |
Definition at line 293 of file CommandLine.h.
|
pure virtual |
|
inline |
Definition at line 302 of file CommandLine.h.
|
inline |
Definition at line 289 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), LookupNearestOption(), and ProvideOption().
|
inline |
Definition at line 306 of file CommandLine.h.
References llvm::StringRef::empty().
Referenced by llvm::cl::basic_parser_impl::anchor(), llvm::cl::generic_parser_base::getOptionWidth(), LookupNearestOption(), llvm::cl::generic_parser_base::printOptionInfo(), and llvm::cl::ResetAllOptionOccurrences().
|
inline |
Definition at line 310 of file CommandLine.h.
References llvm::cl::ConsumeAfter.
Referenced by llvm::cl::basic_parser_impl::anchor().
|
inline |
Definition at line 314 of file CommandLine.h.
References llvm::cl::AllSubCommands, llvm::any_of(), and llvm::PPCISD::SC.
Referenced by llvm::cl::basic_parser_impl::anchor().
|
inline |
Definition at line 307 of file CommandLine.h.
References llvm::cl::Positional.
Referenced by llvm::cl::basic_parser_impl::anchor().
|
inline |
Definition at line 308 of file CommandLine.h.
References llvm::cl::Sink.
Referenced by llvm::cl::basic_parser_impl::anchor().
|
static |
Definition at line 1489 of file CommandLine.cpp.
References llvm::raw_ostream::indent(), llvm::outs(), Split(), and llvm::StringRef::split().
Referenced by llvm::cl::generic_parser_base::printOptionInfo(), and llvm::cl::basic_parser_impl::printOptionInfo().
|
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 361 of file CommandLine.cpp.
|
inline |
Definition at line 385 of file CommandLine.h.
void Option::setArgStr | ( | StringRef | S | ) |
Definition at line 363 of file CommandLine.cpp.
References assert(), llvm::StringRef::empty(), and llvm::cl::GeneralCategory.
|
inline |
Definition at line 332 of file CommandLine.h.
References C.
|
pure virtual |
|
inline |
Definition at line 324 of file CommandLine.h.
Referenced by llvm::cl::desc::apply().
|
inline |
Definition at line 329 of file CommandLine.h.
Referenced by llvm::cl::applicator< FormattingFlags >::opt().
|
inline |
Definition at line 328 of file CommandLine.h.
Referenced by llvm::cl::applicator< OptionHidden >::opt(), and sortSubCommands().
|
inline |
Definition at line 330 of file CommandLine.h.
Referenced by llvm::cl::applicator< MiscFlags >::opt().
|
inlineprotected |
Definition at line 341 of file CommandLine.h.
References Indent.
Referenced by llvm::cl::list< DataType, StorageClass, ParserClass >::setNumAdditionalVals().
|
inline |
Definition at line 326 of file CommandLine.h.
Referenced by llvm::cl::applicator< NumOccurrencesFlag >::opt().
|
inline |
Definition at line 331 of file CommandLine.h.
|
inline |
Definition at line 327 of file CommandLine.h.
Referenced by llvm::cl::applicator< ValueExpected >::opt().
|
inline |
Definition at line 325 of file CommandLine.h.
Referenced by llvm::cl::value_desc::apply().
|
friend |
Definition at line 248 of file CommandLine.h.
StringRef llvm::cl::Option::ArgStr |
Definition at line 278 of file CommandLine.h.
Referenced by llvm::cl::basic_parser_impl::anchor(), llvm::cl::generic_parser_base::getOptionWidth(), llvm::cl::basic_parser_impl::getOptionWidth(), 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 llvm::cl::ResetAllOptionOccurrences().
OptionCategory* llvm::cl::Option::Category |
Definition at line 281 of file CommandLine.h.
Referenced by sortSubCommands().
Definition at line 283 of file CommandLine.h.
StringRef llvm::cl::Option::HelpStr |
Definition at line 279 of file CommandLine.h.
Referenced by llvm::cl::generic_parser_base::printOptionInfo(), and llvm::cl::basic_parser_impl::printOptionInfo().
SmallPtrSet<SubCommand *, 4> llvm::cl::Option::Subs |
Definition at line 282 of file CommandLine.h.
Referenced by llvm::cl::basic_parser_impl::anchor().
StringRef llvm::cl::Option::ValueStr |
Definition at line 280 of file CommandLine.h.
Referenced by getValueStr().