Lines Matching refs:Option
71 void Option::anchor() {} in anchor()
97 SmallVector<Option *, 4> PositionalOpts;
98 SmallVector<Option *, 4> SinkOpts;
99 StringMap<Option *> OptionsMap;
101 Option *ConsumeAfterOpt; // The ConsumeAfter option if it exists.
111 void addLiteralOption(Option &Opt, const char *Name) { in addLiteralOption()
121 void addOption(Option *O) { in addOption()
153 void removeOption(Option *O) { in removeOption()
185 void updateArgStr(Option *O, StringRef NewName) { in updateArgStr()
208 Option *LookupOption(StringRef &Arg, StringRef &Value);
215 void cl::AddLiteralOption(Option &O, const char *Name) { in AddLiteralOption()
223 void Option::addArgument() { in addArgument()
228 void Option::removeArgument() { GlobalParser->removeOption(this); } in removeArgument()
230 void Option::setArgStr(StringRef S) { in setArgStr()
250 Option *CommandLineParser::LookupOption(StringRef &Arg, StringRef &Value) { in LookupOption()
260 StringMap<Option *>::const_iterator I = OptionsMap.find(Arg); in LookupOption()
266 StringMap<Option *>::const_iterator I = in LookupOption()
280 static Option *LookupNearestOption(StringRef Arg, in LookupNearestOption()
281 const StringMap<Option *> &OptionsMap, in LookupNearestOption()
293 Option *Best = nullptr; in LookupNearestOption()
295 for (StringMap<Option *>::const_iterator it = OptionsMap.begin(), in LookupNearestOption()
298 Option *O = it->second; in LookupNearestOption()
325 static bool CommaSeparateAndAddOccurrence(Option *Handler, unsigned pos, in CommaSeparateAndAddOccurrence()
357 static inline bool ProvideOption(Option *Handler, StringRef ArgName, in ProvideOption()
415 static bool ProvidePositionalOption(Option *Handler, StringRef Arg, int i) { in ProvidePositionalOption()
421 static inline bool isGrouping(const Option *O) { in isGrouping()
424 static inline bool isPrefixedOrGrouping(const Option *O) { in isPrefixedOrGrouping()
434 static Option *getOptionPred(StringRef Name, size_t &Length, in getOptionPred()
435 bool (*Pred)(const Option *), in getOptionPred() argument
436 const StringMap<Option *> &OptionsMap) { in getOptionPred()
438 StringMap<Option *>::const_iterator OMI = OptionsMap.find(Name); in getOptionPred()
459 static Option *
462 const StringMap<Option *> &OptionsMap) { in HandlePrefixedOrGroupedOption()
468 Option *PGOpt = getOptionPred(Arg, Length, isPrefixedOrGrouping, OptionsMap); in HandlePrefixedOrGroupedOption()
507 static bool RequiresValue(const Option *O) { in RequiresValue()
512 static bool EatsUnboundedNumberOfValues(const Option *O) { in EatsUnboundedNumberOfValues()
850 Option *Opt = PositionalOpts[i]; in ParseCommandLineOptions()
887 Option *ActivePositionalArg = nullptr; in ParseCommandLineOptions()
892 Option *Handler = nullptr; in ParseCommandLineOptions()
893 Option *NearestHandler = nullptr; in ParseCommandLineOptions()
977 for (SmallVectorImpl<Option *>::iterator I = SinkOpts.begin(), in ParseCommandLineOptions()
1108 bool Option::error(const Twine &Message, StringRef ArgName) { in error()
1120 bool Option::addOccurrence(unsigned pos, StringRef ArgName, StringRef Value, in addOccurrence()
1146 static StringRef getValueStr(const Option &O, StringRef DefaultMsg) { in getValueStr()
1183 size_t basic_parser_impl::getOptionWidth(const Option &O) const { in getOptionWidth()
1194 void basic_parser_impl::printOptionInfo(const Option &O, in printOptionInfo()
1204 void basic_parser_impl::printOptionName(const Option &O, in printOptionName()
1212 bool parser<bool>::parse(Option &O, StringRef ArgName, StringRef Arg, in parse()
1230 bool parser<boolOrDefault>::parse(Option &O, StringRef ArgName, StringRef Arg, in parse()
1248 bool parser<int>::parse(Option &O, StringRef ArgName, StringRef Arg, in parse()
1257 bool parser<unsigned>::parse(Option &O, StringRef ArgName, StringRef Arg, in parse()
1267 bool parser<unsigned long long>::parse(Option &O, StringRef ArgName, in parse()
1278 static bool parseDouble(Option &O, StringRef Arg, double &Value) { in parseDouble()
1288 bool parser<double>::parse(Option &O, StringRef ArgName, StringRef Arg, in parse()
1293 bool parser<float>::parse(Option &O, StringRef ArgName, StringRef Arg, in parse()
1319 size_t generic_parser_base::getOptionWidth(const Option &O) const { in getOptionWidth()
1336 void generic_parser_base::printOptionInfo(const Option &O, in printOptionInfo()
1351 const char *Option = getOption(i); in printOptionInfo() local
1352 outs() << " -" << Option; in printOptionInfo()
1353 printHelpStr(getDescription(i), GlobalWidth, std::strlen(Option) + 8); in printOptionInfo()
1364 const Option &O, const GenericOptionValue &Value, in printGenericOptionDiff()
1393 void parser<T>::printOptionDiff(const Option &O, T V, OptionValue<T> D, \
1421 void parser<std::string>::printOptionDiff(const Option &O, StringRef V, in PRINT_OPT_DIFF()
1436 void basic_parser_impl::printOptionNoValue(const Option &O, in printOptionNoValue()
1446 static int OptNameCompare(const std::pair<const char *, Option *> *LHS, in OptNameCompare()
1447 const std::pair<const char *, Option *> *RHS) { in OptNameCompare()
1452 static void sortOpts(StringMap<Option *> &OptMap, in sortOpts()
1453 SmallVectorImpl<std::pair<const char *, Option *>> &Opts, in sortOpts()
1455 SmallPtrSet<Option *, 128> OptionSet; // Duplicate option detection. in sortOpts()
1457 for (StringMap<Option *>::iterator I = OptMap.begin(), E = OptMap.end(); in sortOpts()
1472 std::pair<const char *, Option *>(I->getKey().data(), I->second)); in sortOpts()
1484 typedef SmallVector<std::pair<const char *, Option *>, 128>
1557 std::map<OptionCategory *, std::vector<Option *>> CategorizedOptions; in printOptions()
1577 CategorizedOptions[*I] = std::vector<Option *>(); in printOptions()
1583 Option *Opt = Opts[I].second; in printOptions()
1616 for (std::vector<Option *>::const_iterator in printOptions()
1722 SmallVector<std::pair<const char *, Option *>, 128> Opts; in printOptionValues()
1831 StringMap<Option *> &cl::getRegisteredOptions() { in getRegisteredOptions()