From: Ted Kremenek Date: Wed, 2 Apr 2008 07:04:46 +0000 (+0000) Subject: Embed "DESC" tag in HTML reports. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0761540d22d0b0245869a57a15b23a7064a3a856;p=clang Embed "DESC" tag in HTML reports. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49084 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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()); }