From: Ted Kremenek Date: Tue, 19 Jun 2012 19:27:28 +0000 (+0000) Subject: Adjust scan-build to enable color output for xterm-256color. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9480dd03522f0bab5fff7d30402cb7ee31117dc;p=clang Adjust scan-build to enable color output for xterm-256color. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158735 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index ea735700b2..7bcd5c243c 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -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');