]> granicus.if.org Git - clang/commitdiff
Adjust scan-build to enable color output for xterm-256color.
authorTed Kremenek <kremenek@apple.com>
Tue, 19 Jun 2012 19:27:28 +0000 (19:27 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 19 Jun 2012 19:27:28 +0000 (19:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158735 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/scan-build

index ea735700b2ef0cceb0cae90d7e59ad8da7ad1e2b..7bcd5c243c76e763e788efac09d589ead7c64593 100755 (executable)
@@ -28,7 +28,7 @@ my $BuildName;
 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');