From 0761540d22d0b0245869a57a15b23a7064a3a856 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 2 Apr 2008 07:04:46 +0000 Subject: [PATCH] Embed "DESC" tag in HTML reports. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49084 91177308-0d34-0410-b5e6-96231b3b80d8 --- Driver/HTMLDiagnostics.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Driver/HTMLDiagnostics.cpp b/Driver/HTMLDiagnostics.cpp index 917949fac1..79eae90f12 100644 --- a/Driver/HTMLDiagnostics.cpp +++ b/Driver/HTMLDiagnostics.cpp @@ -131,6 +131,16 @@ void HTMLDiagnostics::HandlePathDiagnostic(const PathDiagnostic& D) { os << "/" << html::EscapeText(Entry->getName()) << "\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 << "\n"; R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str()); } -- 2.50.1