Lines Matching defs:Subcommand
224 cl::OptionCategory &Category, cl::SubCommand &Subcommand,
226 : Category(Category), Subcommand(Subcommand), Options(Options) {}
244 cl::cat(Category), cl::sub(Subcommand));
250 cl::SubCommand &Subcommand;
375 auto Subcommand = getSelectedSubcommand();
376 if (!Subcommand)
377 return Subcommand.takeError();
378 auto Rule = getMatchingRule(**Subcommand);
382 SelectedSubcommand = *Subcommand;
520 void logInvocation(RefactoringActionSubcommand &Subcommand,
522 llvm::outs() << "invoking action '" << Subcommand.getName() << "':\n";
534 getMatchingRule(RefactoringActionSubcommand &Subcommand) {
538 for (const auto &Rule : Subcommand.getActionRules()) {
539 CommandLineRefactoringOptionVisitor Visitor(Subcommand.getOptions());
545 Subcommand.parseSelectionArgument();
546 if (Subcommand.getSelection()) {
559 OS << "ERROR: '" << Subcommand.getName()
569 Subcommand.getName() + "was found with given options.",
591 for (const auto &Subcommand : SubCommands)
592 OS.indent(2) << Subcommand->getName() << "\n";
596 RefactoringActionSubcommand *Subcommand = &(**It);
597 return Subcommand;