[cfe-commits] r51492 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Fri May 23 11:17:05 PDT 2008
Author: kremenek
Date: Fri May 23 13:17:05 2008
New Revision: 51492
URL: http://llvm.org/viewvc/llvm-project?rev=51492&view=rev
Log:
When known, include the analyzer build in the output of scan-build.
Modified:
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=51492&r1=51491&r2=51492&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Fri May 23 13:17:05 2008
@@ -21,6 +21,8 @@
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 @@
$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 @@
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'.
More information about the cfe-commits
mailing list