Output "REPORTHEADER" and "REPORTSUMMARYEXTRA" tags for use with scan-view.

llvm-svn: 56440
This commit is contained in:
Ted Kremenek 2008-09-22 17:33:32 +00:00
parent 47e46ed3da
commit b76a3f44ec
1 changed files with 4 additions and 2 deletions

View File

@ -223,7 +223,8 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) {
std::string s;
llvm::raw_string_ostream os(s);
os << "<h3>Bug Summary</h3>\n<table class=\"simpletable\">\n"
os << "<!-- REPORTHEADER -->\n"
<< "<h3>Bug Summary</h3>\n<table class=\"simpletable\">\n"
"<tr><td class=\"rowname\">File:</td><td>"
<< html::EscapeText(DirName)
<< html::EscapeText(Entry->getName())
@ -243,7 +244,8 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) {
os << "<tr><td></td><td>" << html::EscapeText(*I) << "</td></tr>\n";
}
os << "</table>\n<h3>Annotated Source Code</h3>\n";
os << "</table>\n<!-- REPORTSUMMARYEXTRA -->\n"
"<h3>Annotated Source Code</h3>\n";
R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str());
}