forked from OSchip/llvm-project
Added path sequence numbers in HTML output of PathDiagnostics.
llvm-svn: 49116
This commit is contained in:
parent
3e38d6ad3c
commit
258493c188
|
@ -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.
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue