summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-02 07:04:46 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-02 07:04:46 +0000
commite6eed291255eaaa8d9cf675dd1ac330b8ed06ce9 (patch)
tree091bacfdc8212d0c2394f79725375015fbe87b52 /clang
parenta7fa4d446a6752024460072f8c6a60053b4c6172 (diff)
downloadbcm5719-llvm-e6eed291255eaaa8d9cf675dd1ac330b8ed06ce9.tar.gz
bcm5719-llvm-e6eed291255eaaa8d9cf675dd1ac330b8ed06ce9.zip
Embed "DESC" tag in HTML reports.
llvm-svn: 49084
Diffstat (limited to 'clang')
-rw-r--r--clang/Driver/HTMLDiagnostics.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/Driver/HTMLDiagnostics.cpp b/clang/Driver/HTMLDiagnostics.cpp
index 917949fac17..79eae90f125 100644
--- a/clang/Driver/HTMLDiagnostics.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud