Embed "DESC" tag in HTML reports.

llvm-svn: 49084
This commit is contained in:
Ted Kremenek 2008-04-02 07:04:46 +00:00
parent a7fa4d446a
commit e6eed29125

View File

@ -131,6 +131,16 @@ void HTMLDiagnostics::HandlePathDiagnostic(const PathDiagnostic& D) {
os << "/" << html::EscapeText(Entry->getName()) << "</h1>\n";
R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str());
}
// Add the bug description.
const std::string& BugDesc = D.getDescription();
if (!BugDesc.empty()) {
std::ostringstream os;
os << "<!-- BUGDESC " << BugDesc << " -->\n";
R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str());
}