LLVM 20.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 250 of file CommandLine.h.
|
inlineexplicitprotected |
Definition at line 335 of file CommandLine.h.
References Categories, and llvm::cl::getGeneralCategory().
|
virtualdefault |
void Option::addArgument | ( | ) |
Definition at line 431 of file CommandLine.cpp.
References GlobalParser.
void Option::addCategory | ( | OptionCategory & | C | ) |
Definition at line 447 of file CommandLine.cpp.
References assert(), llvm::CallingConv::C, Categories, llvm::cl::getGeneralCategory(), and llvm::is_contained().
|
virtual |
Definition at line 1863 of file CommandLine.cpp.
Referenced by CommaSeparateAndAddOccurrence().
|
inline |
Definition at line 332 of file CommandLine.h.
References Subs.
|
inline |
Definition at line 395 of file CommandLine.h.
References error.
bool Option::error | ( | const Twine & | Message, |
StringRef | ArgName = StringRef() , |
||
raw_ostream & | Errs = llvm::errs() |
||
) |
Definition at line 1851 of file CommandLine.cpp.
References ArgStr, llvm::StringRef::data(), llvm::StringRef::empty(), GlobalParser, and HelpStr.
Referenced by HandlePrefixedOrGroupedOption(), and ProvideOption().
|
inlinevirtual |
Definition at line 386 of file CommandLine.h.
|
inline |
Definition at line 301 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), isPositional(), and ProvideOption().
|
inline |
Definition at line 305 of file CommandLine.h.
Referenced by CommaSeparateAndAddOccurrence(), isDefaultOption(), and isSink().
|
inline |
Definition at line 307 of file CommandLine.h.
Referenced by ProvideOption().
|
inline |
Definition at line 399 of file CommandLine.h.
Referenced by llvm::AMDGPUPassConfig::isPassEnabled().
|
inline |
Definition at line 289 of file CommandLine.h.
Referenced by isConsumeAfter().
|
inline |
Definition at line 297 of file CommandLine.h.
|
pure virtual |
|
inline |
Definition at line 306 of file CommandLine.h.
|
inline |
Definition at line 293 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), and ProvideOption().
|
inline |
Definition at line 310 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 315 of file CommandLine.h.
References llvm::cl::ConsumeAfter, and getNumOccurrencesFlag().
|
inline |
Definition at line 313 of file CommandLine.h.
References llvm::cl::DefaultOption, and getMiscFlags().
Referenced by reset().
|
inline |
Definition at line 311 of file CommandLine.h.
References getFormattingFlag(), and llvm::cl::Positional.
|
inline |
Definition at line 312 of file CommandLine.h.
References getMiscFlags(), and llvm::cl::Sink.
|
static |
Definition at line 1901 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 1889 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 436 of file CommandLine.cpp.
References GlobalParser.
Referenced by reset().
void Option::reset | ( | ) |
Definition at line 458 of file CommandLine.cpp.
References isDefaultOption(), removeArgument(), and setDefault().
void Option::setArgStr | ( | StringRef | S | ) |
Definition at line 438 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 323 of file CommandLine.h.
References HelpStr.
|
inline |
Definition at line 328 of file CommandLine.h.
|
inline |
Definition at line 327 of file CommandLine.h.
|
inline |
Definition at line 329 of file CommandLine.h.
Referenced by setArgStr().
|
inlineprotected |
Definition at line 343 of file CommandLine.h.
Referenced by llvm::cl::list< DataType, StorageClass, ParserClass >::setNumAdditionalVals().
|
inline |
Definition at line 325 of file CommandLine.h.
|
inline |
Definition at line 330 of file CommandLine.h.
|
inline |
Definition at line 326 of file CommandLine.h.
|
inline |
Definition at line 324 of file CommandLine.h.
References ValueStr.
|
friend |
Definition at line 251 of file CommandLine.h.
StringRef llvm::cl::Option::ArgStr |
Definition at line 282 of file CommandLine.h.
Referenced by error(), hasArgStr(), llvm::cl::ProvidePositionalOption(), and setArgStr().
SmallVector<OptionCategory *, 1> llvm::cl::Option::Categories |
Definition at line 286 of file CommandLine.h.
Referenced by addCategory(), and Option().
StringRef llvm::cl::Option::HelpStr |
Definition at line 283 of file CommandLine.h.
Referenced by error(), printEnumValHelpStr(), printHelpStr(), and setDescription().
SmallPtrSet<SubCommand *, 1> llvm::cl::Option::Subs |
Definition at line 287 of file CommandLine.h.
Referenced by addSubCommand().
StringRef llvm::cl::Option::ValueStr |
Definition at line 284 of file CommandLine.h.
Referenced by setValueStr().