[cfe-commits] r161154 - /cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
Jordan Rose
jordan_rose at apple.com
Wed Aug 1 19:43:42 PDT 2012
Author: jrose
Date: Wed Aug 1 21:43:42 2012
New Revision: 161154
URL: http://llvm.org/viewvc/llvm-project?rev=161154&view=rev
Log:
[analyzer] Also emit Prev/Next links for macros in HTML output. Oops.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp?rev=161154&r1=161153&r2=161154&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp Wed Aug 1 21:43:42 2012
@@ -463,8 +463,21 @@
os << "':\n";
- if (max > 1)
- os << "</td></tr></table>";
+ if (max > 1) {
+ os << "</td>";
+ if (num < max) {
+ os << "<td><div class=\"PathNav\"><a href=\"#";
+ if (num == max - 1)
+ os << "EndPath";
+ else
+ os << "Path" << (num + 1);
+ os << "\" title=\"Next event ("
+ << (num + 1)
+ << ")\">→</a></div></td>";
+ }
+
+ os << "</tr></table>";
+ }
// Within a macro piece. Write out each event.
ProcessMacroPiece(os, *MP, 0);
More information about the cfe-commits
mailing list