Lines Matching defs:tool
78 const Tool* tool;
195 /// Short name of the tool.
201 /// When to run the tool.
214 /// Implementation of the tool.
240 " terminates toplevel options; further flags are passed to the tool\n"
466 Fatal("browse tool not supported on this platform");
628 Error("unknown target tool mode '%s', did you mean '%s'?",
631 Error("unknown target tool mode '%s'", mode.c_str());
650 // The rules tool uses getopt, and expects argv[0] to contain the name of
651 // the tool, i.e. "rules".
726 // The commands tool uses getopt, and expects argv[0] to contain the name of
727 // the tool, i.e. "commands".
784 // The inputs tool uses getopt, and expects argv[0] to contain the name of
785 // the tool, i.e. "inputs".
834 // The clean tool uses getopt, and expects argv[0] to contain the name of
835 // the tool, i.e. "clean".
940 // The compdb tool uses getopt, and expects argv[0] to contain the name of
941 // the tool, i.e. "compdb".
1023 // The restat tool uses getopt, and expects argv[0] to contain the name of the
1024 // tool, i.e. "restat"
1153 for (const Tool* tool = &kTools[0]; tool->name; ++tool) {
1154 if (tool->desc)
1155 printf("%11s %s\n", tool->name, tool->desc);
1160 for (const Tool* tool = &kTools[0]; tool->name; ++tool) {
1161 if (tool->name == tool_name)
1162 return tool;
1166 for (const Tool* tool = &kTools[0]; tool->name; ++tool)
1167 words.push_back(tool->name);
1170 Fatal("unknown tool '%s', did you mean '%s'?",
1173 Fatal("unknown tool '%s'", tool_name.c_str());
1459 while (!options->tool &&
1506 options->tool = ChooseTool(optarg);
1507 if (!options->tool)
1560 // Don't print this if a tool is being used, so that tool output
1562 if (!options.tool && config.verbosity != BuildConfig::NO_STATUS_UPDATE)
1569 if (options.tool && options.tool->when == Tool::RUN_AFTER_FLAGS) {
1573 exit((ninja.*options.tool->func)(&options, argc, argv));
1595 if (options.tool && options.tool->when == Tool::RUN_AFTER_LOAD)
1596 exit((ninja.*options.tool->func)(&options, argc, argv));
1604 if (options.tool && options.tool->when == Tool::RUN_AFTER_LOGS)
1605 exit((ninja.*options.tool->func)(&options, argc, argv));