Doing so is pointless, since the whole view is usually visible in a
small amount of space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281588
91177308-0d34-0410-b5e6-
96231b3b80d8
// HTML-ALL: <td class='line-number'><a name='L[[@LINE-45]]'><pre>[[@LINE-45]]</pre></a></td><td class='uncovered-line'></td><td class='code'><pre>// after
// HTML-FILTER-NOT: <td class='line-number'><a name='L[[@LINE-46]]'><pre>[[@LINE-46]]</pre></a></td><td class='uncovered-line'></td><td class='code'><pre>// after
+
+// RUN: FileCheck -check-prefix=HTML-JUMP -input-file=%t.html.dir/coverage/tmp/showTemplateInstantiations.cpp.html %s
+// HTML-JUMP: <pre>Source (<a href='#L{{[0-9]+}}'>jump to first uncovered line</a>)</pre>
+// HTML-JUMP-NOT: <pre>Source (<a href='#L{{[0-9]+}}'>jump to first uncovered line</a>)</pre>
unsigned FirstUncoveredLineNo,
unsigned ViewDepth) {
std::string SourceLabel;
- if (FirstUncoveredLineNo == 0) {
+ if (FirstUncoveredLineNo == 0 || ViewDepth > 0) {
SourceLabel = tag("td", tag("pre", "Source"));
} else {
std::string LinkTarget = "#L" + utostr(uint64_t(FirstUncoveredLineNo));