LLVM 19.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 257 of file CommandLine.h.
|
inlineexplicitprotected |
Definition at line 342 of file CommandLine.h.
References Categories, and llvm::cl::getGeneralCategory().
|
virtualdefault |
void Option::addArgument | ( | ) |
Definition at line 416 of file CommandLine.cpp.
References GlobalParser.
void Option::addCategory | ( | OptionCategory & | C | ) |
Definition at line 432 of file CommandLine.cpp.
References assert(), llvm::CallingConv::C, Categories, llvm::cl::getGeneralCategory(), and llvm::is_contained().
|
virtual |
Definition at line 1850 of file CommandLine.cpp.
Referenced by CommaSeparateAndAddOccurrence().
|
inline |
Definition at line 339 of file CommandLine.h.
References Subs.
|
inline |
Definition at line 402 of file CommandLine.h.
References error.
bool Option::error | ( | const Twine & | Message, |
StringRef | ArgName = StringRef() , |
||
raw_ostream & | Errs = llvm::errs() |
||
) |
Definition at line 1838 of file CommandLine.cpp.
References ArgStr, llvm::StringRef::data(), llvm::StringRef::empty(), GlobalParser, and HelpStr.
Referenced by HandlePrefixedOrGroupedOption(), and ProvideOption().
|
inlinevirtual |
Definition at line 393 of file CommandLine.h.
|
inline |
Definition at line 308 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), isPositional(), and ProvideOption().
|
inline |
Definition at line 312 of file CommandLine.h.
Referenced by CommaSeparateAndAddOccurrence(), isDefaultOption(), and isSink().
|
inline |
Definition at line 314 of file CommandLine.h.
Referenced by ProvideOption().
|
inline |
Definition at line 406 of file CommandLine.h.
Referenced by llvm::AMDGPUPassConfig::isPassEnabled().
|
inline |
Definition at line 296 of file CommandLine.h.
Referenced by isConsumeAfter().
|
inline |
Definition at line 304 of file CommandLine.h.
|
pure virtual |
|
inline |
Definition at line 313 of file CommandLine.h.
|
inline |
Definition at line 300 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), and ProvideOption().
|
inline |
Definition at line 317 of file CommandLine.h.
References ArgStr, and llvm::StringRef::empty().
Referenced by llvm::cl::generic_parser_base::getExtraOptionNames(), llvm::cl::generic_parser_base::getValueExpectedFlagDefault(), and llvm::cl::parser< DataType >::parse().
|
inline |
Definition at line 322 of file CommandLine.h.
References llvm::cl::ConsumeAfter, and getNumOccurrencesFlag().
|
inline |
Definition at line 320 of file CommandLine.h.
References llvm::cl::DefaultOption, and getMiscFlags().
Referenced by reset().
|
inline |
Definition at line 318 of file CommandLine.h.
References getFormattingFlag(), and llvm::cl::Positional.
|
inline |
Definition at line 319 of file CommandLine.h.
References getMiscFlags(), and llvm::cl::Sink.
|
static |
Definition at line 1888 of file CommandLine.cpp.
References ArgHelpPrefix, assert(), HelpStr, llvm::raw_ostream::indent(), llvm::outs(), llvm::StringRef::size(), and llvm::StringRef::split().
Referenced by llvm::cl::generic_parser_base::printOptionInfo().
|
static |
Definition at line 1876 of file CommandLine.cpp.
References ArgHelpPrefix, assert(), HelpStr, llvm::raw_ostream::indent(), llvm::outs(), 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 421 of file CommandLine.cpp.
References GlobalParser.
Referenced by reset().
void Option::reset | ( | ) |
Definition at line 443 of file CommandLine.cpp.
References isDefaultOption(), removeArgument(), and setDefault().
void Option::setArgStr | ( | StringRef | S | ) |
Definition at line 423 of file CommandLine.cpp.
References ArgStr, assert(), GlobalParser, llvm::cl::Grouping, setMiscFlag(), llvm::StringRef::size(), and llvm::StringRef::starts_with().
|
pure virtual |
Referenced by reset().
|
inline |
Definition at line 330 of file CommandLine.h.
References HelpStr.
|
inline |
Definition at line 335 of file CommandLine.h.
|
inline |
Definition at line 334 of file CommandLine.h.
|
inline |
Definition at line 336 of file CommandLine.h.
Referenced by setArgStr().
|
inlineprotected |
Definition at line 350 of file CommandLine.h.
Referenced by llvm::cl::list< DataType, StorageClass, ParserClass >::setNumAdditionalVals().
|
inline |
Definition at line 332 of file CommandLine.h.
|
inline |
Definition at line 337 of file CommandLine.h.
|
inline |
Definition at line 333 of file CommandLine.h.
|
inline |
Definition at line 331 of file CommandLine.h.
References ValueStr.
|
friend |
Definition at line 258 of file CommandLine.h.
StringRef llvm::cl::Option::ArgStr |
Definition at line 289 of file CommandLine.h.
Referenced by error(), hasArgStr(), llvm::cl::ProvidePositionalOption(), and setArgStr().
SmallVector<OptionCategory *, 1> llvm::cl::Option::Categories |
Definition at line 293 of file CommandLine.h.
Referenced by addCategory(), and Option().
StringRef llvm::cl::Option::HelpStr |
Definition at line 290 of file CommandLine.h.
Referenced by error(), printEnumValHelpStr(), printHelpStr(), and setDescription().
SmallPtrSet<SubCommand *, 1> llvm::cl::Option::Subs |
Definition at line 294 of file CommandLine.h.
Referenced by addSubCommand().
StringRef llvm::cl::Option::ValueStr |
Definition at line 291 of file CommandLine.h.
Referenced by setValueStr().