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 @@