LLVM API Documentation
#include <CommandLine.h>
Public Attributes | |
const char * | ArgStr |
const char * | HelpStr |
const char * | ValueStr |
OptionCategory * | Category |
Protected Member Functions | |
Option (enum NumOccurrencesFlag OccurrencesFlag, enum OptionHidden Hidden) | |
void | setNumAdditionalVals (unsigned n) |
Friends | |
class | alias |
Definition at line 163 of file CommandLine.h.
|
inlineexplicitprotected |
Definition at line 238 of file CommandLine.h.
|
inlinevirtual |
Definition at line 276 of file CommandLine.h.
void Option::addArgument | ( | ) |
Definition at line 106 of file CommandLine.cpp.
References llvm::cl::MarkOptionsChanged(), and RegisteredOptionList.
bool Option::addOccurrence | ( | unsigned | pos, |
StringRef | ArgName, | ||
StringRef | Value, | ||
bool | MultiArg = false |
||
) |
Definition at line 1044 of file CommandLine.cpp.
References llvm::cl::ConsumeAfter, error(), getNumOccurrencesFlag(), llvm::cl::OneOrMore, llvm::cl::Required, and llvm::cl::ZeroOrMore.
Referenced by CommaSeparateAndAddOccurence().
Definition at line 1033 of file CommandLine.cpp.
References ArgStr, llvm::StringRef::data(), llvm::StringRef::empty(), llvm::errs(), HelpStr, and ProgramName.
Referenced by addOccurrence(), llvm::cl::parser< const PassInfo * >::parse(), llvm::cl::ParseCommandLineOptions(), parseDouble(), ProvideOption(), llvm::cl::alias::setAliasFor(), llvm::cl::opt_storage< DataType, ExternalStorage, is_class< DataType >::value >::setLocation(), llvm::cl::list_storage< DataType, Storage >::setLocation(), and llvm::cl::bits_storage< DataType, Storage >::setLocation().
|
inlinevirtual |
Definition at line 264 of file CommandLine.h.
Referenced by GetOptionInfo(), and LookupNearestOption().
|
inline |
Definition at line 210 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), isGrouping(), isPrefixedOrGrouping(), and llvm::cl::ParseCommandLineOptions().
|
inline |
Definition at line 213 of file CommandLine.h.
Referenced by CommaSeparateAndAddOccurence(), and llvm::cl::ParseCommandLineOptions().
|
inline |
Definition at line 252 of file CommandLine.h.
Referenced by GetOptionInfo().
|
inline |
Definition at line 217 of file CommandLine.h.
Referenced by ProvideOption().
|
inline |
Definition at line 275 of file CommandLine.h.
|
inline |
Definition at line 200 of file CommandLine.h.
Referenced by addOccurrence(), EatsUnboundedNumberOfValues(), and RequiresValue().
|
inline |
Definition at line 207 of file CommandLine.h.
|
pure virtual |
|
inline |
Definition at line 216 of file CommandLine.h.
|
inline |
Definition at line 203 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), LookupNearestOption(), and ProvideOption().
|
inline |
Definition at line 220 of file CommandLine.h.
References ArgStr.
Referenced by llvm::cl::generic_parser_base::getOptionWidth(), llvm::cl::generic_parser_base::initialize(), and llvm::cl::generic_parser_base::printOptionInfo().
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 225 of file CommandLine.h.
References ArgStr.
|
inline |
Definition at line 236 of file CommandLine.h.
References llvm::CallingConv::C, and Category.
|
inline |
Definition at line 226 of file CommandLine.h.
References HelpStr.
Referenced by llvm::cl::desc::apply().
|
inline |
Definition at line 233 of file CommandLine.h.
Referenced by llvm::cl::applicator< FormattingFlags >::opt().
|
inline |
Definition at line 232 of file CommandLine.h.
Referenced by llvm::cl::applicator< OptionHidden >::opt().
|
inline |
Definition at line 234 of file CommandLine.h.
Referenced by llvm::cl::applicator< MiscFlags >::opt().
|
inlineprotected |
Definition at line 246 of file CommandLine.h.
Referenced by llvm::cl::list< DataType, Storage, ParserClass >::setNumAdditionalVals().
|
inline |
Definition at line 228 of file CommandLine.h.
Referenced by llvm::cl::applicator< NumOccurrencesFlag >::opt().
|
inline |
Definition at line 235 of file CommandLine.h.
|
inline |
Definition at line 231 of file CommandLine.h.
Referenced by llvm::cl::applicator< ValueExpected >::opt().
|
inline |
Definition at line 227 of file CommandLine.h.
References ValueStr.
Referenced by llvm::cl::value_desc::apply().
|
friend |
Definition at line 164 of file CommandLine.h.
const char* llvm::cl::Option::ArgStr |
Definition at line 195 of file CommandLine.h.
Referenced by error(), llvm::cl::generic_parser_base::getOptionWidth(), llvm::cl::basic_parser_impl::getOptionWidth(), hasArgStr(), LookupNearestOption(), llvm::cl::ParseCommandLineOptions(), 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 198 of file CommandLine.h.
Referenced by setCategory().
const char* llvm::cl::Option::HelpStr |
Definition at line 196 of file CommandLine.h.
Referenced by error(), llvm::cl::generic_parser_base::printOptionInfo(), llvm::cl::basic_parser_impl::printOptionInfo(), and setDescription().
const char* llvm::cl::Option::ValueStr |
Definition at line 197 of file CommandLine.h.
Referenced by getValueStr(), and setValueStr().