Index: lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp =================================================================== --- lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -240,6 +240,10 @@ os << "\n\n"; + os << "\n\n"; + + os << "\n\n"; + os << "\n\n"; Index: tools/scan-build/scan-build =================================================================== --- tools/scan-build/scan-build +++ tools/scan-build/scan-build @@ -368,6 +368,7 @@ my $BugType = ""; my $BugFile = ""; + my $BugFunction = ""; my $BugCategory = ""; my $BugDescription = ""; my $BugPathLength = 1; @@ -395,8 +396,13 @@ elsif (/$/) { $BugDescription = $1; } + elsif (/$/) { + $BugFunction = $1; + } + } + close(IN); if (!defined $BugCategory) { @@ -409,7 +415,7 @@ return; } - push @$Index,[ $FName, $BugCategory, $BugType, $BugFile, $BugLine, + push @$Index,[ $FName, $BugCategory, $BugType, $BugFile, $BugFunction, $BugLine, $BugPathLength ]; } @@ -701,6 +707,7 @@ Bug Group Bug Type ▾ File + Function/method Line Path Length @@ -758,13 +765,17 @@ } print OUT ""; + print OUT ""; + print OUT $row->[4]; + print OUT ""; + # Print out the quantities. - for my $j ( 4 .. 5 ) { + for my $j ( 5 .. 6 ) { print OUT "$row->[$j]"; } # Print the rest of the columns. - for (my $j = 6; $j <= $#{$row}; ++$j) { + for (my $j = 7; $j <= $#{$row}; ++$j) { print OUT "$row->[$j]" }