|
LLVM
5.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 230 of file CommandLine.h.
|
inlineexplicitprotected |
Definition at line 319 of file CommandLine.h.
|
virtualdefault |
| void Option::addArgument | ( | ) |
Definition at line 367 of file CommandLine.cpp.
References FullyInitialized, and GlobalParser.
|
virtual |
Definition at line 1365 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 316 of file CommandLine.h.
References Subs.
Definition at line 1353 of file CommandLine.cpp.
References 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 352 of file CommandLine.h.
Referenced by LookupNearestOption().
|
inline |
Definition at line 280 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), isGrouping(), isPositional(), and isPrefixedOrGrouping().
|
inline |
Definition at line 284 of file CommandLine.h.
Referenced by CommaSeparateAndAddOccurrence(), and isSink().
|
inline |
Definition at line 286 of file CommandLine.h.
Referenced by ProvideOption().
|
inline |
Definition at line 362 of file CommandLine.h.
|
inline |
Definition at line 268 of file CommandLine.h.
Referenced by addOccurrence(), EatsUnboundedNumberOfValues(), isConsumeAfter(), and RequiresValue().
|
inline |
Definition at line 276 of file CommandLine.h.
|
pure virtual |
|
inline |
Definition at line 285 of file CommandLine.h.
|
inline |
Definition at line 272 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), LookupNearestOption(), and ProvideOption().
|
inline |
Definition at line 289 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 293 of file CommandLine.h.
References llvm::cl::ConsumeAfter, and getNumOccurrencesFlag().
|
inline |
Definition at line 297 of file CommandLine.h.
References llvm::cl::AllSubCommands, llvm::any_of(), llvm::PPCISD::SC, and Subs.
|
inline |
Definition at line 290 of file CommandLine.h.
References getFormattingFlag(), and llvm::cl::Positional.
|
inline |
Definition at line 291 of file CommandLine.h.
References getMiscFlags(), and llvm::cl::Sink.
|
static |
Definition at line 1404 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 372 of file CommandLine.cpp.
References GlobalParser.
|
inline |
Definition at line 363 of file CommandLine.h.
Referenced by llvm::cl::ResetAllOptionOccurrences().
| void Option::setArgStr | ( | StringRef | S | ) |
Definition at line 374 of file CommandLine.cpp.
References ArgStr, assert(), llvm::StringRef::empty(), FullyInitialized, and GlobalParser.
|
inline |
Definition at line 315 of file CommandLine.h.
|
inline |
Definition at line 307 of file CommandLine.h.
References HelpStr.
Referenced by llvm::cl::desc::apply().
|
inline |
Definition at line 312 of file CommandLine.h.
Referenced by llvm::cl::applicator< FormattingFlags >::opt().
|
inline |
Definition at line 311 of file CommandLine.h.
Referenced by llvm::cl::applicator< OptionHidden >::opt().
|
inline |
Definition at line 313 of file CommandLine.h.
Referenced by llvm::cl::applicator< MiscFlags >::opt().
|
inlineprotected |
Definition at line 324 of file CommandLine.h.
Referenced by llvm::cl::list< DataType, StorageClass, ParserClass >::setNumAdditionalVals().
|
inline |
Definition at line 309 of file CommandLine.h.
Referenced by llvm::cl::applicator< NumOccurrencesFlag >::opt().
|
inline |
Definition at line 314 of file CommandLine.h.
|
inline |
Definition at line 310 of file CommandLine.h.
Referenced by llvm::cl::applicator< ValueExpected >::opt().
|
inline |
Definition at line 308 of file CommandLine.h.
References ValueStr.
Referenced by llvm::cl::value_desc::apply().
|
friend |
Definition at line 231 of file CommandLine.h.
| StringRef llvm::cl::Option::ArgStr |
Definition at line 261 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 264 of file CommandLine.h.
Referenced by setCategory().
Definition at line 266 of file CommandLine.h.
Referenced by addArgument(), and setArgStr().
| StringRef llvm::cl::Option::HelpStr |
Definition at line 262 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 265 of file CommandLine.h.
Referenced by addSubCommand(), and isInAllSubCommands().
| StringRef llvm::cl::Option::ValueStr |
Definition at line 263 of file CommandLine.h.
Referenced by getValueStr(), and setValueStr().
1.8.6