|
LLVM
7.0.0
|
#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 234 of file CommandLine.h.
|
inlineexplicitprotected |
Definition at line 323 of file CommandLine.h.
|
virtualdefault |
| void Option::addArgument | ( | ) |
Definition at line 356 of file CommandLine.cpp.
|
virtual |
Definition at line 1418 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 320 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 1406 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 367 of file CommandLine.h.
References error.
|
inlinevirtual |
Definition at line 358 of file CommandLine.h.
References error, and llvm::errs().
Referenced by llvm::cl::basic_parser_impl::anchor(), and LookupNearestOption().
|
inline |
Definition at line 284 of file CommandLine.h.
Referenced by llvm::cl::basic_parser_impl::anchor(), HandlePrefixedOrGroupedOption(), isGrouping(), isPrefixedOrGrouping(), and llvm::cl::ResetAllOptionOccurrences().
|
inline |
Definition at line 288 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 290 of file CommandLine.h.
Referenced by ProvideOption().
|
inline |
Definition at line 371 of file CommandLine.h.
Referenced by getSchedRegions(), and llvm::TargetPassConfig::isGlobalISelAbortEnabled().
|
inline |
Definition at line 272 of file CommandLine.h.
Referenced by llvm::cl::basic_parser_impl::anchor(), EatsUnboundedNumberOfValues(), and RequiresValue().
|
inline |
Definition at line 280 of file CommandLine.h.
|
pure virtual |
|
inline |
Definition at line 289 of file CommandLine.h.
|
inline |
Definition at line 276 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), LookupNearestOption(), and ProvideOption().
|
inline |
Definition at line 293 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 297 of file CommandLine.h.
References llvm::cl::ConsumeAfter.
Referenced by llvm::cl::basic_parser_impl::anchor().
|
inline |
Definition at line 301 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 294 of file CommandLine.h.
References llvm::cl::Positional.
Referenced by llvm::cl::basic_parser_impl::anchor().
|
inline |
Definition at line 295 of file CommandLine.h.
References llvm::cl::Sink.
Referenced by llvm::cl::basic_parser_impl::anchor().
|
static |
Definition at line 1457 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 372 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 319 of file CommandLine.h.
References C.
|
pure virtual |
|
inline |
Definition at line 311 of file CommandLine.h.
Referenced by llvm::cl::desc::apply().
|
inline |
Definition at line 316 of file CommandLine.h.
Referenced by llvm::cl::applicator< FormattingFlags >::opt().
|
inline |
Definition at line 315 of file CommandLine.h.
Referenced by llvm::cl::applicator< OptionHidden >::opt(), and sortSubCommands().
|
inline |
Definition at line 317 of file CommandLine.h.
Referenced by llvm::cl::applicator< MiscFlags >::opt().
|
inlineprotected |
Definition at line 328 of file CommandLine.h.
References Indent.
Referenced by llvm::cl::list< DataType, StorageClass, ParserClass >::setNumAdditionalVals().
|
inline |
Definition at line 313 of file CommandLine.h.
Referenced by llvm::cl::applicator< NumOccurrencesFlag >::opt().
|
inline |
Definition at line 318 of file CommandLine.h.
|
inline |
Definition at line 314 of file CommandLine.h.
Referenced by llvm::cl::applicator< ValueExpected >::opt().
|
inline |
Definition at line 312 of file CommandLine.h.
Referenced by llvm::cl::value_desc::apply().
|
friend |
Definition at line 235 of file CommandLine.h.
| StringRef llvm::cl::Option::ArgStr |
Definition at line 265 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 268 of file CommandLine.h.
Referenced by sortSubCommands().
Definition at line 270 of file CommandLine.h.
| StringRef llvm::cl::Option::HelpStr |
Definition at line 266 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 269 of file CommandLine.h.
Referenced by llvm::cl::basic_parser_impl::anchor().
| StringRef llvm::cl::Option::ValueStr |
Definition at line 267 of file CommandLine.h.
Referenced by getValueStr().
1.8.13