Lines Matching refs:SubCommand
102 SmallPtrSet<SubCommand *, 4> RegisteredSubCommands;
114 void addLiteralOption(Option &Opt, SubCommand *SC, const char *Name) { in addLiteralOption()
143 void addOption(Option *O, SubCommand *SC) { in addOption()
194 void removeOption(Option *O, SubCommand *SC) { in removeOption()
200 SubCommand &Sub = *SC; in removeOption()
237 bool hasOptions(const SubCommand &Sub) const { in hasOptions()
250 SubCommand *getActiveSubCommand() { return ActiveSubCommand; } in getActiveSubCommand()
252 void updateArgStr(Option *O, StringRef NewName, SubCommand *SC) { in updateArgStr()
253 SubCommand &Sub = *SC; in updateArgStr()
283 void registerSubCommand(SubCommand *sub) { in registerSubCommand()
285 [sub](const SubCommand *Sub) { in registerSubCommand()
306 void unregisterSubCommand(SubCommand *sub) { in unregisterSubCommand()
328 SubCommand *ActiveSubCommand;
330 Option *LookupOption(SubCommand &Sub, StringRef &Arg, StringRef &Value);
331 SubCommand *LookupSubCommand(const char *Name);
367 ManagedStatic<SubCommand> llvm::cl::TopLevelSubCommand;
370 ManagedStatic<SubCommand> llvm::cl::AllSubCommands;
372 void SubCommand::registerSubCommand() { in registerSubCommand()
376 void SubCommand::unregisterSubCommand() { in unregisterSubCommand()
380 void SubCommand::reset() { in reset()
388 SubCommand::operator bool() const { in operator bool()
399 Option *CommandLineParser::LookupOption(SubCommand &Sub, StringRef &Arg, in LookupOption()
429 SubCommand *CommandLineParser::LookupSubCommand(const char *Name) { in LookupSubCommand()
1034 SubCommand *ChosenSubCommand = &*TopLevelSubCommand; in ParseCommandLineOptions()
1675 static int SubNameCompare(const std::pair<const char *, SubCommand *> *LHS, in SubNameCompare()
1676 const std::pair<const char *, SubCommand *> *RHS) { in SubNameCompare()
1709 sortSubCommands(const SmallPtrSetImpl<SubCommand *> &SubMap, in sortSubCommands()
1710 SmallVectorImpl<std::pair<const char *, SubCommand *>> &Subs) { in sortSubCommands()
1726 typedef SmallVector<std::pair<const char *, SubCommand *>, 128>
1754 SubCommand *Sub = GlobalParser->getActiveSubCommand(); in operator =()
2118 StringMap<Option *> &cl::getRegisteredOptions(SubCommand &Sub) { in getRegisteredOptions()
2125 void cl::HideUnrelatedOptions(cl::OptionCategory &Category, SubCommand &Sub) { in HideUnrelatedOptions()
2134 SubCommand &Sub) { in HideUnrelatedOptions()