forked from OSchip/llvm-project
Determine support for colored output from stdout instead of stderr since that's where the diagnostics go.
llvm-svn: 202680
This commit is contained in:
parent
d779459f21
commit
6d73f449b8
|
@ -326,7 +326,7 @@ void handleErrors(SmallVectorImpl<ClangTidyError> &Errors, bool Fix) {
|
|||
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),
|
||||
|
|
Loading…
Reference in New Issue