Lines Matching defs:cl
40 using namespace cl;
45 namespace llvm { namespace cl {
61 } } // end namespace llvm::cl
95 void cl::MarkOptionsChanged() {
116 OptionCategory llvm::cl::GeneralCategory("General options");
153 if (O->getFormattingFlag() == cl::Positional)
155 else if (O->getMiscFlags() & cl::Sink) // Remember sink options
157 else if (O->getNumOccurrencesFlag() == cl::ConsumeAfter) {
159 O->error("Cannot specify more than one option with cl::ConsumeAfter!");
226 bool PermitValue = O->getValueExpectedFlag() != cl::ValueDisallowed;
247 /// does special handling of cl::CommaSeparated options.
345 return O->getFormattingFlag() == cl::Grouping;
348 return isGrouping(O) || O->getFormattingFlag() == cl::Prefix;
395 if (PGOpt->getFormattingFlag() == cl::Prefix) {
413 assert(PGOpt->getValueExpectedFlag() != cl::ValueRequired &&
414 "Option can not be cl::Grouping AND cl::ValueRequired!");
430 return O->getNumOccurrencesFlag() == cl::Required ||
431 O->getNumOccurrencesFlag() == cl::OneOrMore;
435 return O->getNumOccurrencesFlag() == cl::ZeroOrMore ||
436 O->getNumOccurrencesFlag() == cl::OneOrMore;
451 void cl::TokenizeGNUCommandLine(StringRef Src, StringSaver &Saver,
539 void cl::TokenizeWindowsCommandLine(StringRef Src, StringSaver &Saver,
631 bool cl::ExpandResponseFiles(StringSaver &Saver, TokenizerCallback Tokenizer,
688 void cl::ParseEnvironmentOptions(const char *progName, const char *envVar,
712 void cl::ParseCommandLineOptions(int argc, const char * const *argv,
749 if (PositionalOpts[0]->getNumOccurrencesFlag() == cl::ConsumeAfter) {
751 "Cannot specify cl::ConsumeAfter without a positional argument!");
769 "cl::ConsumeAfter option is active!");
857 if (!Handler || Handler->getFormattingFlag() != cl::Positional) {
904 if (Handler->getFormattingFlag() == cl::Positional)
941 bool Done = PositionalOpts[i]->getNumOccurrencesFlag() == cl::Required;
944 case cl::Optional:
947 case cl::ZeroOrMore: // Zero or more will take all they can get...
948 case cl::OneOrMore: // One or more will take all they can get...
984 // cl::ConsumeAfter command line option...
1073 // cl::alias class implementation
1442 Option *CAOpt = 0; // The cl::ConsumeAfter option, if it exists...
1601 static cl::opt<HelpPrinter, true, parser<bool> >
1603 cl::desc("Display list of available options (-help-list-hidden for more)"),
1604 cl::location(UncategorizedNormalPrinter), cl::Hidden, cl::ValueDisallowed);
1606 static cl::opt<HelpPrinter, true, parser<bool> >
1608 cl::desc("Display list of all available options"),
1609 cl::location(UncategorizedHiddenPrinter), cl::Hidden, cl::ValueDisallowed);
1614 static cl::opt<HelpPrinterWrapper, true, parser<bool> >
1615 HOp("help", cl::desc("Display available options (-help-hidden for more)"),
1616 cl::location(WrappedNormalPrinter), cl::ValueDisallowed);
1618 static cl::opt<HelpPrinterWrapper, true, parser<bool> >
1619 HHOp("help-hidden", cl::desc("Display all available options"),
1620 cl::location(WrappedHiddenPrinter), cl::Hidden, cl::ValueDisallowed);
1624 static cl::opt<bool>
1626 cl::desc("Print non-default options after command line parsing"),
1627 cl::Hidden, cl::init(false));
1629 static cl::opt<bool>
1631 cl::desc("Print all option values after command line parsing"),
1632 cl::Hidden, cl::init(false));
1653 void cl::PrintOptionValues() {
1734 static cl::opt<VersionPrinter, true, parser<bool> >
1735 VersOp("version", cl::desc("Display the version of this program"),
1736 cl::location(VersionPrinterInstance), cl::ValueDisallowed);
1739 void cl::PrintHelpMessage(bool Hidden, bool Categorized) {
1758 void cl::PrintVersionMessage() {
1762 void cl::SetVersionPrinter(void (*func)()) {
1766 void cl::AddExtraVersionPrinter(void (*func)()) {
1773 void cl::getRegisteredOptions(StringMap<Option*> &Map)