зеркало из https://github.com/microsoft/clang-1.git
[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
This commit is contained in:
Родитель
b23b711ad3
Коммит
207c408b14
|
@ -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)
|
||||
<< ")\">→</a></div></td>";
|
||||
}
|
||||
|
||||
os << "</tr></table>";
|
||||
}
|
||||
|
||||
// Within a macro piece. Write out each event.
|
||||
ProcessMacroPiece(os, *MP, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче