Lines Matching refs:OptionsMap
117 if (!SC->OptionsMap.insert(std::make_pair(Name, &Opt)).second) { in addLiteralOption()
147 if (!SC->OptionsMap.insert(std::make_pair(O->ArgStr, O)).second) { in addOption()
202 Sub.OptionsMap.erase(Name); in removeOption()
238 return (!Sub.OptionsMap.empty() || !Sub.PositionalOpts.empty() || in hasOptions()
254 if (!Sub.OptionsMap.insert(std::make_pair(NewName, O)).second) { in updateArgStr()
259 Sub.OptionsMap.erase(O->ArgStr); in updateArgStr()
295 for (auto &E : AllSubCommands->OptionsMap) { in registerSubCommand()
383 OptionsMap.clear(); in reset()
411 auto I = Sub.OptionsMap.find(Arg); in LookupOption()
412 if (I == Sub.OptionsMap.end()) in LookupOption()
415 return I != Sub.OptionsMap.end() ? I->second : nullptr; in LookupOption()
420 auto I = Sub.OptionsMap.find(Arg.substr(0, EqualPos)); in LookupOption()
421 if (I == Sub.OptionsMap.end()) in LookupOption()
449 const StringMap<Option *> &OptionsMap, in LookupNearestOption() argument
463 for (StringMap<Option *>::const_iterator it = OptionsMap.begin(), in LookupNearestOption()
464 ie = OptionsMap.end(); in LookupNearestOption()
601 const StringMap<Option *> &OptionsMap) { in getOptionPred() argument
603 StringMap<Option *>::const_iterator OMI = OptionsMap.find(Name); in getOptionPred()
608 while (OMI == OptionsMap.end() && Name.size() > 1) { in getOptionPred()
610 OMI = OptionsMap.find(Name); in getOptionPred()
613 if (OMI != OptionsMap.end() && Pred(OMI->second)) { in getOptionPred()
627 const StringMap<Option *> &OptionsMap) { in HandlePrefixedOrGroupedOption() argument
633 Option *PGOpt = getOptionPred(Arg, Length, isPrefixedOrGrouping, OptionsMap); in HandlePrefixedOrGroupedOption()
643 assert(OptionsMap.count(Arg) && OptionsMap.find(Arg)->second == PGOpt); in HandlePrefixedOrGroupedOption()
665 PGOpt = getOptionPred(Arg, Length, isGrouping, OptionsMap); in HandlePrefixedOrGroupedOption()
1002 for (auto &O : SC->OptionsMap) in ResetAllOptionOccurrences()
1048 auto &OptionsMap = ChosenSubCommand->OptionsMap; in ParseCommandLineOptions() local
1169 OptionsMap); in ParseCommandLineOptions()
1175 LookupNearestOption(ArgName, OptionsMap, NearestHandlerString); in ParseCommandLineOptions()
1294 for (const auto &Opt : OptionsMap) { in ParseCommandLineOptions()
1755 auto &OptionsMap = Sub->OptionsMap; in operator =() local
1760 sortOpts(OptionsMap, Opts, ShowHidden); in operator =()
2009 sortOpts(ActiveSubCommand->OptionsMap, Opts, /*ShowHidden*/ true); in printOptionValues()
2122 return Sub.OptionsMap; in getRegisteredOptions()
2126 for (auto &I : Sub.OptionsMap) { in HideUnrelatedOptions()
2137 for (auto &I : Sub.OptionsMap) { in HideUnrelatedOptions()