llvm.org GIT mirror llvm / 2fcbfcf
[llvm-cov] Don't create 'jump to ...' links in nested views 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 Vedant Kumar 3 years ago
2 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8282
8383 // HTML-ALL:
[[@LINE-45]]
// after

                  
                
8484 // HTML-FILTER-NOT:
[[@LINE-46]]
// after

                  
                
85
86 // RUN: FileCheck -check-prefix=HTML-JUMP -input-file=%t.html.dir/coverage/tmp/showTemplateInstantiations.cpp.html %s
87 // HTML-JUMP:
Source (jump to first uncovered line)
88 // HTML-JUMP-NOT:
Source (jump to first uncovered line)
600600 unsigned FirstUncoveredLineNo,
601601 unsigned ViewDepth) {
602602 std::string SourceLabel;
603 if (FirstUncoveredLineNo == 0) {
603 if (FirstUncoveredLineNo == 0 || ViewDepth > 0) {
604604 SourceLabel = tag("td", tag("pre", "Source"));
605605 } else {
606606 std::string LinkTarget = "#L" + utostr(uint64_t(FirstUncoveredLineNo));