[clang-tools-extra] r202680 - Determine support for colored output from stdout instead of stderr since that's where the diagnostics go.
Craig Topper
craig.topper at gmail.com
Sun Mar 2 23:37:42 PST 2014
Author: ctopper
Date: Mon Mar 3 01:37:42 2014
New Revision: 202680
URL: http://llvm.org/viewvc/llvm-project?rev=202680&view=rev
Log:
Determine support for colored output from stdout instead of stderr since that's where the diagnostics go.
Modified:
clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp
Modified: clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp?rev=202680&r1=202679&r2=202680&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp Mon Mar 3 01:37:42 2014
@@ -326,7 +326,7 @@ void handleErrors(SmallVectorImpl<ClangT
FileManager Files((FileSystemOptions()));
LangOptions LangOpts; // FIXME: use langopts from each original file
IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions();
- DiagOpts->ShowColors = llvm::sys::Process::StandardErrHasColors();
+ DiagOpts->ShowColors = llvm::sys::Process::StandardOutHasColors();
DiagnosticConsumer *DiagPrinter =
new TextDiagnosticPrinter(llvm::outs(), &*DiagOpts);
DiagnosticsEngine Diags(IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs),
More information about the cfe-commits
mailing list