[cfe-commits] r49116 - in /cfe/trunk: Driver/HTMLDiagnostics.cpp lib/Rewrite/HTMLRewrite.cpp

Ted Kremenek kremenek at apple.com
Wed Apr 2 14:04:20 PDT 2008


Author: kremenek
Date: Wed Apr  2 16:04:20 2008
New Revision: 49116

URL: http://llvm.org/viewvc/llvm-project?rev=49116&view=rev
Log:
Added path sequence numbers in HTML output of PathDiagnostics.

Modified:
    cfe/trunk/Driver/HTMLDiagnostics.cpp
    cfe/trunk/lib/Rewrite/HTMLRewrite.cpp

Modified: cfe/trunk/Driver/HTMLDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/HTMLDiagnostics.cpp?rev=49116&r1=49115&r2=49116&view=diff

==============================================================================
--- cfe/trunk/Driver/HTMLDiagnostics.cpp (original)
+++ cfe/trunk/Driver/HTMLDiagnostics.cpp Wed Apr  2 16:04:20 2008
@@ -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.

Modified: cfe/trunk/lib/Rewrite/HTMLRewrite.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/HTMLRewrite.cpp?rev=49116&r1=49115&r2=49116&view=diff

==============================================================================
--- cfe/trunk/lib/Rewrite/HTMLRewrite.cpp (original)
+++ cfe/trunk/lib/Rewrite/HTMLRewrite.cpp Wed Apr  2 16:04:20 2008
@@ -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());





More information about the cfe-commits mailing list