From: Jordan Rose Date: Thu, 2 Aug 2012 02:43:42 +0000 (+0000) Subject: [analyzer] Also emit Prev/Next links for macros in HTML output. Oops. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=207c408b14f0c29d65d6ad311456be94b812d5dd;p=clang [analyzer] Also emit Prev/Next links for macros in HTML output. Oops. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161154 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp index 84fae41d1c..f6e8dccdfb 100644 --- a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -463,8 +463,21 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID, os << "':\n"; - if (max > 1) - os << ""; + if (max > 1) { + os << ""; + if (num < max) { + os << "
"; + } + + os << ""; + } // Within a macro piece. Write out each event. ProcessMacroPiece(os, *MP, 0);