From f4cdf41fc7a9026b24d369ba932396e7c51209b7 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 23 May 2008 18:17:05 +0000 Subject: [PATCH] When known, include the analyzer build in the output of scan-build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51492 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/scan-build | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/utils/scan-build b/utils/scan-build index c6647cd1b9..f1905833ce 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -21,6 +21,8 @@ use File::Basename; my $Verbose = 0; # Verbose output from this script. my $Prog = "scan-build"; +my $BuildName; +my $BuildDate; ##----------------------------------------------------------------------------## # GetHTMLRunDir - Construct an HTML directory name for the current run. @@ -373,9 +375,14 @@ ENDTEXT $Totals{$bug_type}++; } } - + + print OUT "

Summary

"; + + if (defined($BuildName)) { + print OUT "\n

Results in this analysis run are based on analyzer build $BuildName.

\n" + } + print OUT <Summary @@ -521,6 +528,13 @@ sub DisplayHelp { print < [build options] +ENDTEXT + + if (defined($BuildName)) { + print "ANALYZER BUILD: $BuildName ($BuildDate)\n\n"; + } + +print <
Bug Type