]> granicus.if.org Git - clang/commitdiff
Tooling: use stderr, not stdout for missing command line messages
authorAlp Toker <alp@nuanti.com>
Fri, 16 May 2014 13:45:29 +0000 (13:45 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 16 May 2014 13:45:29 +0000 (13:45 +0000)
Matches other tooling output that use stderr.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208988 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Tooling/Tooling.cpp

index 610bfc8f26957663ec2927a675f1db427ada83df..3fe0c8387014e96665ba4a3f3f5c2ec73c135085 100644 (file)
@@ -256,7 +256,7 @@ bool FrontendActionFactory::runInvocation(CompilerInvocation *Invocation,
   // pass it to an std::unique_ptr declared after the Compiler variable.
   std::unique_ptr<FrontendAction> ScopedToolAction(create());
 
-  // Create the compilers actual diagnostics engine.
+  // Create the compiler's actual diagnostics engine.
   Compiler.createDiagnostics(DiagConsumer, /*ShouldOwnClient=*/false);
   if (!Compiler.hasDiagnostics())
     return false;
@@ -290,7 +290,7 @@ ClangTool::ClangTool(const CompilationDatabase &Compilations,
       // about the .cc files that were not found, and the use case where I
       // specify all files I want to run over explicitly, where this should
       // be an error. We'll want to add an option for this.
-      llvm::outs() << "Skipping " << File << ". Command line not found.\n";
+      llvm::errs() << "Skipping " << File << ". Compile command not found.\n";
     }
   }
 }