[cfe-commits] r49084 - /cfe/trunk/Driver/HTMLDiagnostics.cpp
Ted Kremenek
kremenek at apple.com
Wed Apr 2 00:04:47 PDT 2008
Author: kremenek
Date: Wed Apr 2 02:04:46 2008
New Revision: 49084
URL: http://llvm.org/viewvc/llvm-project?rev=49084&view=rev
Log:
Embed "DESC" tag in HTML reports.
Modified:
cfe/trunk/Driver/HTMLDiagnostics.cpp
Modified: cfe/trunk/Driver/HTMLDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/HTMLDiagnostics.cpp?rev=49084&r1=49083&r2=49084&view=diff
==============================================================================
--- cfe/trunk/Driver/HTMLDiagnostics.cpp (original)
+++ cfe/trunk/Driver/HTMLDiagnostics.cpp Wed Apr 2 02:04:46 2008
@@ -132,6 +132,16 @@
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());
}
// Add CSS, header, and footer.
More information about the cfe-commits
mailing list