aboutsummaryrefslogtreecommitdiff
path: root/Driver/HTMLDiagnostics.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-02 21:04:20 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-02 21:04:20 +0000
commit718ceb13e078ff99d3338e643c7ea6cf797b0e8b (patch)
treed5e24ab546883437115485c730b435ac44c16e73 /Driver/HTMLDiagnostics.cpp
parent3352fbab86aa669453c9d39cb1581dd229d20af3 (diff)
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
Diffstat (limited to 'Driver/HTMLDiagnostics.cpp')
-rw-r--r--Driver/HTMLDiagnostics.cpp3
1 files changed, 3 insertions, 0 deletions
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 << "<span class=\"PathIndex\">[" << num << "]</span> ";
+
os << html::EscapeText(P.getString()) << "</div></td></tr>";
// Insert the new html.