|
LLVM 22.0.0git
|
#include "llvm/Support/CommandLine.h"
Static Public Member Functions | |
| static void | printHelpStr (StringRef HelpStr, size_t Indent, size_t FirstLineIndentedBy) |
| static void | printEnumValHelpStr (StringRef HelpStr, size_t Indent, size_t FirstLineIndentedBy) |
Public Attributes | |
| StringRef | ArgStr |
| StringRef | HelpStr |
| StringRef | ValueStr |
| SmallVector< OptionCategory *, 1 > | Categories |
| SmallPtrSet< SubCommand *, 1 > | Subs |
Protected Member Functions | |
| Option (enum NumOccurrencesFlag OccurrencesFlag, enum OptionHidden Hidden) | |
| void | setNumAdditionalVals (unsigned n) |
Friends | |
| class | alias |
Definition at line 252 of file CommandLine.h.
|
inlineexplicitprotected |
Definition at line 337 of file CommandLine.h.
References Categories, llvm::cl::getGeneralCategory(), llvm::cl::Hidden, and llvm::cl::NormalFormatting.
Referenced by llvm::cl::alias::alias(), llvm::cl::bits< DataType, Storage, ParserClass >::bits(), llvm::cl::list< std::string, DebugCounter >::list(), llvm::cl::opt< DataType, ExternalStorage, ParserClass >::opt(), and llvm::cl::alias::setAliasFor().
|
virtualdefault |
References addArgument(), and removeArgument().
| void Option::addArgument | ( | ) |
| void Option::addCategory | ( | OptionCategory & | C | ) |
Definition at line 467 of file CommandLine.cpp.
References assert(), llvm::CallingConv::C, Categories, llvm::cl::getGeneralCategory(), and llvm::is_contained().
|
virtual |
Definition at line 1884 of file CommandLine.cpp.
Referenced by CommaSeparateAndAddOccurrence().
|
inline |
Definition at line 334 of file CommandLine.h.
References Subs.
|
inline |
Definition at line 397 of file CommandLine.h.
References error.
| bool Option::error | ( | const Twine & | Message, |
| StringRef | ArgName = StringRef(), | ||
| raw_ostream & | Errs = llvm::errs() ) |
Definition at line 1872 of file CommandLine.cpp.
References ArgStr, llvm::StringRef::data(), llvm::StringRef::empty(), GlobalParser, and HelpStr.
Referenced by HandlePrefixedOrGroupedOption(), and ProvideOption().
|
inlinevirtual |
Definition at line 388 of file CommandLine.h.
|
inline |
Definition at line 303 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), isPositional(), and ProvideOption().
|
inline |
Definition at line 307 of file CommandLine.h.
Referenced by CommaSeparateAndAddOccurrence(), isDefaultOption(), and isSink().
|
inline |
Definition at line 309 of file CommandLine.h.
Referenced by ProvideOption().
|
inline |
Definition at line 401 of file CommandLine.h.
Referenced by llvm::AMDGPUPassConfig::isPassEnabled().
|
inline |
Definition at line 291 of file CommandLine.h.
Referenced by isConsumeAfter().
|
inline |
Definition at line 299 of file CommandLine.h.
|
pure virtual |
|
inline |
Definition at line 308 of file CommandLine.h.
|
inline |
Definition at line 295 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), and ProvideOption().
|
inline |
Definition at line 312 of file CommandLine.h.
References ArgStr.
|
inline |
Definition at line 317 of file CommandLine.h.
References llvm::cl::ConsumeAfter, and getNumOccurrencesFlag().
|
inline |
Definition at line 315 of file CommandLine.h.
References llvm::cl::DefaultOption, and getMiscFlags().
Referenced by reset().
|
inline |
Definition at line 313 of file CommandLine.h.
References getFormattingFlag(), and llvm::cl::Positional.
|
inline |
Definition at line 314 of file CommandLine.h.
References getMiscFlags(), and llvm::cl::Sink.
|
static |
Definition at line 1922 of file CommandLine.cpp.
References ArgHelpPrefix, assert(), HelpStr, llvm::raw_ostream::indent(), llvm::outs(), and llvm::StringRef::size().
Referenced by llvm::cl::generic_parser_base::printOptionInfo(), and setDefault().
|
static |
Definition at line 1910 of file CommandLine.cpp.
References ArgHelpPrefix, assert(), HelpStr, llvm::raw_ostream::indent(), and llvm::outs().
Referenced by llvm::cl::basic_parser_impl::printOptionInfo(), llvm::cl::generic_parser_base::printOptionInfo(), and setDefault().
|
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 456 of file CommandLine.cpp.
References GlobalParser.
| void Option::reset | ( | ) |
Definition at line 478 of file CommandLine.cpp.
References isDefaultOption(), removeArgument(), and setDefault().
Referenced by llvm::cl::ResetAllOptionOccurrences().
| void Option::setArgStr | ( | StringRef | S | ) |
Definition at line 458 of file CommandLine.cpp.
References ArgStr, assert(), GlobalParser, llvm::cl::Grouping, setMiscFlag(), and llvm::StringRef::starts_with().
|
pure virtual |
References HelpStr, printEnumValHelpStr(), and printHelpStr().
Referenced by reset().
|
inline |
Definition at line 325 of file CommandLine.h.
References HelpStr.
|
inline |
Definition at line 330 of file CommandLine.h.
|
inline |
Definition at line 329 of file CommandLine.h.
|
inline |
Definition at line 331 of file CommandLine.h.
Referenced by setArgStr().
|
inlineprotected |
Definition at line 345 of file CommandLine.h.
Referenced by llvm::cl::list< std::string, DebugCounter >::setNumAdditionalVals().
|
inline |
Definition at line 327 of file CommandLine.h.
|
inline |
Definition at line 332 of file CommandLine.h.
|
inline |
Definition at line 328 of file CommandLine.h.
|
inline |
Definition at line 326 of file CommandLine.h.
References ValueStr.
|
friend |
Definition at line 253 of file CommandLine.h.
References alias, and llvm::cl::ValueOptional.
Referenced by alias.
| StringRef llvm::cl::Option::ArgStr |
Definition at line 284 of file CommandLine.h.
Referenced by error(), hasArgStr(), llvm::cl::ProvidePositionalOption(), and setArgStr().
| SmallVector<OptionCategory *, 1> llvm::cl::Option::Categories |
Definition at line 288 of file CommandLine.h.
Referenced by addCategory(), and Option().
| StringRef llvm::cl::Option::HelpStr |
Definition at line 285 of file CommandLine.h.
Referenced by error(), printEnumValHelpStr(), printHelpStr(), setDefault(), and setDescription().
| SmallPtrSet<SubCommand *, 1> llvm::cl::Option::Subs |
Definition at line 289 of file CommandLine.h.
Referenced by addSubCommand().
| StringRef llvm::cl::Option::ValueStr |
Definition at line 286 of file CommandLine.h.
Referenced by setValueStr().