[cfe-commits] r158735 - /cfe/trunk/tools/scan-build/scan-build
Ted Kremenek
kremenek at apple.com
Tue Jun 19 12:27:28 PDT 2012
Author: kremenek
Date: Tue Jun 19 14:27:28 2012
New Revision: 158735
URL: http://llvm.org/viewvc/llvm-project?rev=158735&view=rev
Log:
Adjust scan-build to enable color output for xterm-256color.
Modified:
cfe/trunk/tools/scan-build/scan-build
Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=158735&r1=158734&r2=158735&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Tue Jun 19 14:27:28 2012
@@ -28,7 +28,7 @@
my $BuildDate;
my $TERM = $ENV{'TERM'};
-my $UseColor = (defined $TERM and $TERM eq 'xterm-color' and -t STDOUT
+my $UseColor = (defined $TERM and $TERM =~ 'xterm-.*color' and -t STDOUT
and defined $ENV{'SCAN_BUILD_COLOR'});
my $UserName = HtmlEscape(getpwuid($<) || 'unknown');
More information about the cfe-commits
mailing list