summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-08-02 02:43:42 +0000
committerJordan Rose <jordan_rose@apple.com>2012-08-02 02:43:42 +0000
commitfa49c92b5cfb3aeea21ac0d43c767f0a660cd759 (patch)
treea9fc3dd2e165338a325b833335eead4f50c60e0b /clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
parent11790a4810aed186de58f9301ca92b5e27b70347 (diff)
downloadbcm5719-llvm-fa49c92b5cfb3aeea21ac0d43c767f0a660cd759.tar.gz
bcm5719-llvm-fa49c92b5cfb3aeea21ac0d43c767f0a660cd759.zip
[analyzer] Also emit Prev/Next links for macros in HTML output. Oops.
llvm-svn: 161154
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
index 84fae41d1ce..f6e8dccdfb7 100644
--- a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
+++ b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
@@ -463,8 +463,21 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID,
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)
+ << ")\">&#x2192;</a></div></td>";
+ }
+
+ os << "</tr></table>";
+ }
// Within a macro piece. Write out each event.
ProcessMacroPiece(os, *MP, 0);
OpenPOWER on IntegriCloud