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

            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: unassignedb...@nondot.org
          Reporter: dennis.fels...@sap.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to