Added path sequence numbers in HTML output of PathDiagnostics.
llvm-svn: 49116
diff --git a/clang/Driver/HTMLDiagnostics.cpp b/clang/Driver/HTMLDiagnostics.cpp
index d4b481b..69e77bc 100644
--- a/clang/Driver/HTMLDiagnostics.cpp
+++ b/clang/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.