From: Sylvestre Ledru Date: Fri, 23 May 2014 16:47:42 +0000 (+0000) Subject: revert "r209526 List the function/method name in the index page of scan-build " X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f630f248962ed9463f0f8284eeb5cdece40fc5a;p=clang 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 --- diff --git a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp index a2997739fe..07a793e6ef 100644 --- a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -215,10 +215,6 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D, os << "\n\n"; - os << "\n\n"; - - os << "\n\n"; - os << "\n\n"; 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]" }