From: Ted Kremenek Date: Wed, 2 Apr 2008 21:04:20 +0000 (+0000) Subject: Added path sequence numbers in HTML output of PathDiagnostics. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=718ceb13e078ff99d3338e643c7ea6cf797b0e8b;p=clang Added path sequence numbers in HTML output of PathDiagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49116 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/HTMLDiagnostics.cpp b/Driver/HTMLDiagnostics.cpp index d4b481bfda..69e77bc2fe 100644 --- a/Driver/HTMLDiagnostics.cpp +++ b/Driver/HTMLDiagnostics.cpp @@ -253,6 +253,9 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, os << "\" class=\"msg\" style=\"margin-left:" << PosNo << "ex\">"; + if (max > 1) + os << "[" << num << "] "; + os << html::EscapeText(P.getString()) << ""; // Insert the new html. diff --git a/lib/Rewrite/HTMLRewrite.cpp b/lib/Rewrite/HTMLRewrite.cpp index f63b8e4056..f6d0d23517 100644 --- a/lib/Rewrite/HTMLRewrite.cpp +++ b/lib/Rewrite/HTMLRewrite.cpp @@ -188,6 +188,7 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID) { << " .msg { margin-top:10px; margin-bottom:10px }\n" << " .mrange { background-color:#ffcc66 }\n" << " .mrange { border-bottom: 1px solid #ff8000 }\n" + << " .PathIndex { font-weight: bold }\n" << "\n\n"; R.InsertStrBefore(StartLoc, os.str());