[llvm-bugs] [Bug 29008] New: Support the #line directive in source-based code coverage

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 16 16:51:30 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=29008

            Bug ID: 29008
           Summary: Support the #line directive in source-based code
                    coverage
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vsk at apple.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Consider:

```
#line 42 "other.cpp"
int main() { return 0; }
```

The report currently looks like:

```
foo.c:
       |    1|#line 42 "other.cpp"
      1|    2|int main() { return 0; }
```

Use a sub-view to display the current filename and line number. On the clang
side, we need to include the right information from the #line directive in the
coverage mapping. Then we need to teach llvm-cov to display the sub-view.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160816/7edbd85b/attachment.html>


More information about the llvm-bugs mailing list