[llvm-bugs] [Bug 31395] New: llvm-cov report filtering without function coverage display

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 15 10:47:31 PST 2016


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

            Bug ID: 31395
           Summary: llvm-cov report filtering without function coverage
                    display
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dane at mapbox.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I've noticed that `llvm-cov report` shows per-file summaries when no source
files are passed. But when source files are passed, it seems to automatically
go into a new mode where per-function summaries are displayed. I think it would
be more ideal if function summaries were only enabled via an option. The reason
I think it would be better as an option is for the case where:

1. You want to filter out which source files contribute to the summary, but..
2. You don't want to see per-function output

Currently this appears not possible: you can't get per-function summary output
without manually passing source files. And you can't get per-file summary
output if you manually pass source files.

Here is a demonstration of the two modes
(https://gist.github.com/springmeyer/b5a46888bd330f42f6430d9b78a54ca3). The
first is too verbose due to the function-summaries, and the latter is too
verbose due to dependency headers being included in the coverage report that
are not important.

-- 
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/20161215/47977f47/attachment.html>


More information about the llvm-bugs mailing list