• Home
  • Raw
  • Download

Lines Matching refs:SubCommand

165   SmallPtrSet<SubCommand *, 4> RegisteredSubCommands;
178 void addLiteralOption(Option &Opt, SubCommand *SC, StringRef Name) { in addLiteralOption()
207 void addOption(Option *O, SubCommand *SC) { in addOption()
268 void removeOption(Option *O, SubCommand *SC) { in removeOption()
274 SubCommand &Sub = *SC; in removeOption()
315 bool hasOptions(const SubCommand &Sub) const { in hasOptions()
328 SubCommand *getActiveSubCommand() { return ActiveSubCommand; } in getActiveSubCommand()
330 void updateArgStr(Option *O, StringRef NewName, SubCommand *SC) { in updateArgStr()
331 SubCommand &Sub = *SC; in updateArgStr()
366 void registerSubCommand(SubCommand *sub) { in registerSubCommand()
368 [sub](const SubCommand *Sub) { in registerSubCommand()
389 void unregisterSubCommand(SubCommand *sub) { in unregisterSubCommand()
393 iterator_range<typename SmallPtrSet<SubCommand *, 4>::iterator>
419 SubCommand *ActiveSubCommand;
421 Option *LookupOption(SubCommand &Sub, StringRef &Arg, StringRef &Value);
422 Option *LookupLongOption(SubCommand &Sub, StringRef &Arg, StringRef &Value, in LookupLongOption()
429 SubCommand *LookupSubCommand(StringRef Name);
490 ManagedStatic<SubCommand> llvm::cl::TopLevelSubCommand;
493 ManagedStatic<SubCommand> llvm::cl::AllSubCommands;
495 void SubCommand::registerSubCommand() { in registerSubCommand()
499 void SubCommand::unregisterSubCommand() { in unregisterSubCommand()
503 void SubCommand::reset() { in reset()
511 SubCommand::operator bool() const { in operator bool()
522 Option *CommandLineParser::LookupOption(SubCommand &Sub, StringRef &Arg, in LookupOption()
557 SubCommand *CommandLineParser::LookupSubCommand(StringRef Name) { in LookupSubCommand()
1359 SubCommand *ChosenSubCommand = &*TopLevelSubCommand; in ParseCommandLineOptions()
2097 static int SubNameCompare(const std::pair<const char *, SubCommand *> *LHS, in SubNameCompare()
2098 const std::pair<const char *, SubCommand *> *RHS) { in SubNameCompare()
2131 sortSubCommands(const SmallPtrSetImpl<SubCommand *> &SubMap, in sortSubCommands()
2132 SmallVectorImpl<std::pair<const char *, SubCommand *>> &Subs) { in sortSubCommands()
2148 typedef SmallVector<std::pair<const char *, SubCommand *>, 128>
2182 SubCommand *Sub = GlobalParser->getActiveSubCommand(); in printHelp()
2567 StringMap<Option *> &cl::getRegisteredOptions(SubCommand &Sub) { in getRegisteredOptions()
2574 iterator_range<typename SmallPtrSet<SubCommand *, 4>::iterator>
2579 void cl::HideUnrelatedOptions(cl::OptionCategory &Category, SubCommand &Sub) { in HideUnrelatedOptions()
2590 SubCommand &Sub) { in HideUnrelatedOptions()