[cfe-commits] r54220 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Wed Jul 30 10:58:09 PDT 2008
Author: kremenek
Date: Wed Jul 30 12:58:08 2008
New Revision: 54220
URL: http://llvm.org/viewvc/llvm-project?rev=54220&view=rev
Log:
"Escape" bug names with quotes for selecting/deselecting from the bug table.
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=54220&r1=54219&r2=54220&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Wed Jul 30 12:58:08 2008
@@ -479,7 +479,7 @@
for my $key ( sort { $a cmp $b } keys %Totals ) {
my $x = lc($key);
- $x =~ s/\s[,]/_/g;
+ $x =~ 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";
}
@@ -511,7 +511,7 @@
for my $row ( sort { $a->[1] cmp $b->[1] } @Index ) {
my $x = lc($row->[1]);
- $x =~ s/\s[,]/_/g;
+ $x =~ s/[ ,'"]+/_/g;
print OUT "<tr class=\"bt_$x\">\n";
@@ -533,15 +533,13 @@
print OUT "<td>$fname</td>\n";
# Print the rest of the columns.
-
for my $j ( 3 .. $#{$row} ) {
print OUT "<td>$row->[$j]</td>\n"
}
# Emit the "View" link.
-
print OUT " <td class=\"View\"><a href=\"$ReportFile#EndPath\">View</a></td>\n";
-
+
# End the row.
print OUT "</tr>\n";
}
More information about the cfe-commits
mailing list