Lines Matching refs:SubCommand

167   SmallPtrSet<SubCommand *, 4> RegisteredSubCommands;
180 void addLiteralOption(Option &Opt, SubCommand *SC, StringRef Name) { in addLiteralOption()
209 void addOption(Option *O, SubCommand *SC) { in addOption()
270 void removeOption(Option *O, SubCommand *SC) { in removeOption()
276 SubCommand &Sub = *SC; in removeOption()
317 bool hasOptions(const SubCommand &Sub) const { in hasOptions()
330 SubCommand *getActiveSubCommand() { return ActiveSubCommand; } in getActiveSubCommand()
332 void updateArgStr(Option *O, StringRef NewName, SubCommand *SC) { in updateArgStr()
333 SubCommand &Sub = *SC; in updateArgStr()
368 void registerSubCommand(SubCommand *sub) { in registerSubCommand()
370 [sub](const SubCommand *Sub) { in registerSubCommand()
391 void unregisterSubCommand(SubCommand *sub) { in unregisterSubCommand()
395 iterator_range<typename SmallPtrSet<SubCommand *, 4>::iterator>
421 SubCommand *ActiveSubCommand = nullptr;
423 Option *LookupOption(SubCommand &Sub, StringRef &Arg, StringRef &Value);
424 Option *LookupLongOption(SubCommand &Sub, StringRef &Arg, StringRef &Value, in LookupLongOption()
431 SubCommand *LookupSubCommand(StringRef Name);
489 ManagedStatic<SubCommand> llvm::cl::TopLevelSubCommand;
492 ManagedStatic<SubCommand> llvm::cl::AllSubCommands;
494 void SubCommand::registerSubCommand() { in registerSubCommand()
498 void SubCommand::unregisterSubCommand() { in unregisterSubCommand()
502 void SubCommand::reset() { in reset()
510 SubCommand::operator bool() const { in operator bool()
521 Option *CommandLineParser::LookupOption(SubCommand &Sub, StringRef &Arg, in LookupOption()
552 SubCommand *CommandLineParser::LookupSubCommand(StringRef Name) { in LookupSubCommand()
1455 SubCommand *ChosenSubCommand = &*TopLevelSubCommand; in ParseCommandLineOptions()
2193 static int SubNameCompare(const std::pair<const char *, SubCommand *> *LHS, in SubNameCompare()
2194 const std::pair<const char *, SubCommand *> *RHS) { in SubNameCompare()
2227 sortSubCommands(const SmallPtrSetImpl<SubCommand *> &SubMap, in sortSubCommands()
2228 SmallVectorImpl<std::pair<const char *, SubCommand *>> &Subs) { in sortSubCommands()
2244 typedef SmallVector<std::pair<const char *, SubCommand *>, 128>
2278 SubCommand *Sub = GlobalParser->getActiveSubCommand(); in printHelp()
2691 StringMap<Option *> &cl::getRegisteredOptions(SubCommand &Sub) { in getRegisteredOptions()
2699 iterator_range<typename SmallPtrSet<SubCommand *, 4>::iterator>
2704 void cl::HideUnrelatedOptions(cl::OptionCategory &Category, SubCommand &Sub) { in HideUnrelatedOptions()
2718 SubCommand &Sub) { in HideUnrelatedOptions()