Lines Matching refs:Subs
135 if (Opt.Subs.empty()) in addLiteralOption()
138 for (auto SC : Opt.Subs) in addLiteralOption()
186 if (O->Subs.empty()) { in addOption()
189 for (auto SC : O->Subs) in addOption()
224 if (O->Subs.empty()) in removeOption()
231 for (auto SC : O->Subs) in removeOption()
263 if (O->Subs.empty()) in updateArgStr()
266 for (auto SC : O->Subs) in updateArgStr()
1710 SmallVectorImpl<std::pair<const char *, SubCommand *>> &Subs) { in sortSubCommands() argument
1714 Subs.push_back(std::make_pair(S->getName(), S)); in sortSubCommands()
1716 array_pod_sort(Subs.begin(), Subs.end(), SubNameCompare); in sortSubCommands()
1734 void printSubCommands(StrSubCommandPairVector &Subs, size_t MaxSubLen) { in printSubCommands() argument
1735 for (const auto &S : Subs) { in printSubCommands()
1762 StrSubCommandPairVector Subs; in operator =() local
1763 sortSubCommands(GlobalParser->RegisteredSubCommands, Subs); in operator =()
1790 if (Sub == &*TopLevelSubCommand && Subs.size() > 2) { in operator =()
1793 for (size_t i = 0, e = Subs.size(); i != e; ++i) in operator =()
1794 MaxSubLen = std::max(MaxSubLen, strlen(Subs[i].first)); in operator =()
1798 printSubCommands(Subs, MaxSubLen); in operator =()
2119 auto &Subs = GlobalParser->RegisteredSubCommands; in getRegisteredOptions() local
2120 (void)Subs; in getRegisteredOptions()
2121 assert(std::find(Subs.begin(), Subs.end(), &Sub) != Subs.end()); in getRegisteredOptions()