[cfe-commits] r50784 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Tue May 6 16:51:45 PDT 2008
Author: kremenek
Date: Tue May 6 18:51:45 2008
New Revision: 50784
URL: http://llvm.org/viewvc/llvm-project?rev=50784&view=rev
Log:
Fix a few glitches in scan-build with automatically generating class names from bug types.
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=50784&r1=50783&r2=50784&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Tue May 6 18:51:45 2008
@@ -345,7 +345,6 @@
}
function ToggleDisplay(CheckButton, ClassName) {
- window.console.log("writing");
if (CheckButton.checked) {
SetDisplay(ClassName, "");
}
@@ -386,8 +385,8 @@
ENDTEXT
for my $key ( sort { $a cmp $b } keys %Totals ) {
- my $x = $key;
- $x =~ s/\s/_/g;
+ my $x = lc($key);
+ $x =~ s/\s[,]/_/g;
print OUT "<tr><td>$key</td><td>$Totals{$key}</td><td><input type=\"checkbox\" onClick=\"ToggleDisplay(this,'bt_$x');\" checked/></td></tr>\n";
}
@@ -419,7 +418,7 @@
for my $row ( sort { $a->[1] cmp $b->[1] } @Index ) {
my $x = lc($row->[1]);
- $x =~ s/\s/_/g;
+ $x =~ s/\s[,]/_/g;
print OUT "<tr class=\"bt_$x\">\n";
More information about the cfe-commits
mailing list