diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-02 07:04:46 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-02 07:04:46 +0000 |
commit | 0761540d22d0b0245869a57a15b23a7064a3a856 (patch) | |
tree | 58e6fef9bc2525cb84e23576912af46d1f664e9b /Driver/HTMLDiagnostics.cpp | |
parent | 845ddbcd7f0eacbf59ea85e5dcccbe18eaae35eb (diff) |
Embed "DESC" tag in HTML reports.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/HTMLDiagnostics.cpp')
-rw-r--r-- | Driver/HTMLDiagnostics.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Driver/HTMLDiagnostics.cpp b/Driver/HTMLDiagnostics.cpp index 917949fac1..79eae90f12 100644 --- a/Driver/HTMLDiagnostics.cpp +++ b/Driver/HTMLDiagnostics.cpp @@ -132,6 +132,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()); } // Add CSS, header, and footer. |