From 5f630f248962ed9463f0f8284eeb5cdece40fc5a Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 23 May 2014 16:47:42 +0000 Subject: revert "r209526 List the function/method name in the index page of scan-build " Depends on http://reviews.llvm.org/D3762 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209527 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/scan-build/scan-build | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'tools') diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index c444249c0a..7502a42432 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -368,7 +368,6 @@ sub ScanFile { my $BugType = ""; my $BugFile = ""; - my $BugFunction = ""; my $BugCategory = ""; my $BugDescription = ""; my $BugPathLength = 1; @@ -396,10 +395,6 @@ sub ScanFile { elsif (/$/) { $BugDescription = $1; } - elsif (/$/) { - $BugFunction = $1; - } - } close(IN); @@ -414,7 +409,7 @@ sub ScanFile { return; } - push @$Index,[ $FName, $BugCategory, $BugType, $BugFile, $BugFunction, $BugLine, + push @$Index,[ $FName, $BugCategory, $BugType, $BugFile, $BugLine, $BugPathLength ]; } @@ -704,7 +699,6 @@ print OUT <Bug Group Bug Type ▾ File - Function/Method Line Path Length @@ -762,17 +756,13 @@ ENDTEXT } print OUT ""; - print OUT ""; - print OUT $row->[4]; - print OUT ""; - # Print out the quantities. - for my $j ( 5 .. 6 ) { + for my $j ( 4 .. 5 ) { print OUT "$row->[$j]"; } # Print the rest of the columns. - for (my $j = 7; $j <= $#{$row}; ++$j) { + for (my $j = 6; $j <= $#{$row}; ++$j) { print OUT "$row->[$j]" } -- cgit v1.2.3