]> granicus.if.org Git - clang/commitdiff
Added path sequence numbers in HTML output of PathDiagnostics.
authorTed Kremenek <kremenek@apple.com>
Wed, 2 Apr 2008 21:04:20 +0000 (21:04 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 2 Apr 2008 21:04:20 +0000 (21:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49116 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/HTMLDiagnostics.cpp
lib/Rewrite/HTMLRewrite.cpp

index d4b481bfdad64f74e56b92d9a3f126f382d4c821..69e77bc2fe000cf9762b6613e9813f88ab3161c1 100644 (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.
index f63b8e4056a151639398e18c74888859af995dd8..f6d0d23517a5795e4441ec3b383f66a6d04b1df9 100644 (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());