]> granicus.if.org Git - clang/commitdiff
"Escape" bug names with quotes for selecting/deselecting from the bug table.
authorTed Kremenek <kremenek@apple.com>
Wed, 30 Jul 2008 17:58:08 +0000 (17:58 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 30 Jul 2008 17:58:08 +0000 (17:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54220 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index fd196ba67c0b4cd99451ef1c3cf33725f12ef4a0..afd2e833e9e7a933f32a025b422c41e3559688d7 100755 (executable)
@@ -479,7 +479,7 @@ ENDTEXT
   
   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 @@ ENDTEXT
   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 @@ ENDTEXT
     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";
   }