diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-05-23 18:17:05 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-05-23 18:17:05 +0000 |
commit | f4cdf41fc7a9026b24d369ba932396e7c51209b7 (patch) | |
tree | 93ed3b76d6a94d18a0fe68e3803a65759e57fa3d | |
parent | ca65b0241d0be198d5a61d0315d5a894f68ee494 (diff) |
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
-rwxr-xr-x | utils/scan-build | 18 |
1 files 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 "<h3>Summary</h3>"; + + if (defined($BuildName)) { + print OUT "\n<p>Results in this analysis run are based on analyzer build <b>$BuildName</b>.</p>\n" + } + print OUT <<ENDTEXT; -<h3>Summary</h3> <table class="sortable"> <tr> <td>Bug Type</td> @@ -521,6 +528,13 @@ sub DisplayHelp { print <<ENDTEXT; USAGE: $Prog [options] <build command> [build options] +ENDTEXT + + if (defined($BuildName)) { + print "ANALYZER BUILD: $BuildName ($BuildDate)\n\n"; + } + +print <<ENDTEXT; OPTIONS: -a - The analysis to run. The default is 'checker-cfref'. |