Added path sequence numbers in HTML output of PathDiagnostics.

llvm-svn: 49116
This commit is contained in:
Ted Kremenek 2008-04-02 21:04:20 +00:00
parent 3e38d6ad3c
commit 258493c188
2 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,9 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R,
os << "\" class=\"msg\" style=\"margin-left:"
<< PosNo << "ex\">";
if (max > 1)
os << "<span class=\"PathIndex\">[" << num << "]</span> ";
os << html::EscapeText(P.getString()) << "</div></td></tr>";
// Insert the new html.

View File

@ -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"
<< "</style>\n</head>\n<body>";
R.InsertStrBefore(StartLoc, os.str());