[llvm-bugs] [Bug 34237] New: llvm-cov: Wrong coverage with partially uncovered nested macros

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 18 13:02:29 PDT 2017


            Bug ID: 34237
           Summary: llvm-cov: Wrong coverage with partially uncovered
                    nested macros
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dennis.felsing at sap.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19005
  --> https://bugs.llvm.org/attachment.cgi?id=19005&action=edit
Source Code

When instantiating a macro within a macro and the first 2 cases are not
covered, the rest of the file is wrongly classified as uncovered.

The segment building in CoverageMapping.cpp seems to lead to a wrong order,
thus skipping valid segments later when displaying them. I guess it has to do
with the types of the coverage regions.

I have attached a minimal example and the script I use to test this behaviour.

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/20170818/5361ed1e/attachment.html>

More information about the llvm-bugs mailing list