From: Ted Kremenek Date: Wed, 30 Jul 2008 17:58:08 +0000 (+0000) Subject: "Escape" bug names with quotes for selecting/deselecting from the bug table. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cea9ee6b77ac797ebb910bdf45d1d7f8f68e37b;p=clang "Escape" bug names with quotes for selecting/deselecting from the bug table. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54220 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/scan-build b/utils/scan-build index fd196ba67c..afd2e833e9 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -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 "$key$Totals{$key}\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 "\n"; @@ -533,15 +533,13 @@ ENDTEXT print OUT "$fname\n"; # Print the rest of the columns. - for my $j ( 3 .. $#{$row} ) { print OUT "$row->[$j]\n" } # Emit the "View" link. - print OUT " View\n"; - + # End the row. print OUT "\n"; }