"until reaching the end directive."),
llvm::cl::init(true), llvm::cl::cat(DependencyScannerCategory));
+llvm::cl::opt<bool> Verbose("v", llvm::cl::Optional,
+ llvm::cl::desc("Use verbose output."),
+ llvm::cl::init(false),
+ llvm::cl::cat(DependencyScannerCategory));
+
} // end anonymous namespace
/// \returns object-file path derived from source-file path.
std::mutex Lock;
size_t Index = 0;
- llvm::outs() << "Running clang-scan-deps on " << Inputs.size()
- << " files using " << NumWorkers << " workers\n";
+ if (Verbose) {
+ llvm::outs() << "Running clang-scan-deps on " << Inputs.size()
+ << " files using " << NumWorkers << " workers\n";
+ }
for (unsigned I = 0; I < NumWorkers; ++I) {
auto Worker = [I, &Lock, &Index, &Inputs, &HadErrors, &WorkerTools]() {
while (true) {