• Home
  • Raw
  • Download

Lines Matching refs:OptionsMap

99   StringMap<Option *> OptionsMap;  member in __anon290554f10111::CommandLineParser
113 if (!OptionsMap.insert(std::make_pair(Name, &Opt)).second) { in addLiteralOption()
125 if (!OptionsMap.insert(std::make_pair(O->ArgStr, O)).second) { in addOption()
159 OptionsMap.erase(Name); in removeOption()
181 return (!OptionsMap.empty() || !PositionalOpts.empty() || in hasOptions()
186 if (!OptionsMap.insert(std::make_pair(NewName, O)).second) { in updateArgStr()
191 OptionsMap.erase(O->ArgStr); in updateArgStr()
260 StringMap<Option *>::const_iterator I = OptionsMap.find(Arg); in LookupOption()
261 return I != OptionsMap.end() ? I->second : nullptr; in LookupOption()
267 OptionsMap.find(Arg.substr(0, EqualPos)); in LookupOption()
268 if (I == OptionsMap.end()) in LookupOption()
281 const StringMap<Option *> &OptionsMap, in LookupNearestOption() argument
295 for (StringMap<Option *>::const_iterator it = OptionsMap.begin(), in LookupNearestOption()
296 ie = OptionsMap.end(); in LookupNearestOption()
436 const StringMap<Option *> &OptionsMap) { in getOptionPred() argument
438 StringMap<Option *>::const_iterator OMI = OptionsMap.find(Name); in getOptionPred()
443 while (OMI == OptionsMap.end() && Name.size() > 1) { in getOptionPred()
445 OMI = OptionsMap.find(Name); in getOptionPred()
448 if (OMI != OptionsMap.end() && Pred(OMI->second)) { in getOptionPred()
462 const StringMap<Option *> &OptionsMap) { in HandlePrefixedOrGroupedOption() argument
468 Option *PGOpt = getOptionPred(Arg, Length, isPrefixedOrGrouping, OptionsMap); in HandlePrefixedOrGroupedOption()
478 assert(OptionsMap.count(Arg) && OptionsMap.find(Arg)->second == PGOpt); in HandlePrefixedOrGroupedOption()
500 PGOpt = getOptionPred(Arg, Length, isGrouping, OptionsMap); in HandlePrefixedOrGroupedOption()
955 OptionsMap); in ParseCommandLineOptions()
961 LookupNearestOption(ArgName, OptionsMap, NearestHandlerString); in ParseCommandLineOptions()
1074 for (const auto &Opt : OptionsMap) { in ParseCommandLineOptions()
1502 sortOpts(GlobalParser->OptionsMap, Opts, ShowHidden); in operator =()
1723 sortOpts(OptionsMap, Opts, /*ShowHidden*/ true); in printOptionValues()
1832 return GlobalParser->OptionsMap; in getRegisteredOptions()
1836 for (auto &I : GlobalParser->OptionsMap) { in HideUnrelatedOptions()
1846 for (auto &I : GlobalParser->OptionsMap) { in HideUnrelatedOptions()