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 d4b481b..69e77bc 100644
--- a/Driver/HTMLDiagnostics.cpp
+++ b/Driver/HTMLDiagnostics.cpp
@@ -253,6 +253,9 @@
   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.
diff --git a/lib/Rewrite/HTMLRewrite.cpp b/lib/Rewrite/HTMLRewrite.cpp
index f63b8e4..f6d0d23 100644
--- a/lib/Rewrite/HTMLRewrite.cpp
+++ b/lib/Rewrite/HTMLRewrite.cpp
@@ -188,6 +188,7 @@
        << " .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());