[llvm-bugs] [Bug 31982] New: llvm-cov show -format html: index removes leading part of file names

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 16 08:18:36 PST 2017


http://bugs.llvm.org/show_bug.cgi?id=31982

            Bug ID: 31982
           Summary: llvm-cov show -format html: index removes leading part
                    of file names
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: jay.foad at gmail.com
                CC: llvm-bugs at lists.llvm.org

To reproduce:

$ cat cov.c
#include <stdio.h>
int main() {
#include "cov.h"
}
$ cat cov.h
int i;
for (i = 0; i < 10; i++)
        printf("hello\n");
$ clang -fprofile-instr-generate -fcoverage-mapping -o cov cov.c
$ ./cov
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
$ llvm-profdata merge default.profraw -o merged.profdata
$ llvm-cov show -instr-profile merged.profdata cov -format html -output-dir out

Now out/index.html lists two source files called "c" and "h". I think this is
unhelpful. They should at least be called "cov.c" and "cov.h".

-- 
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/20170216/36e815f9/attachment.html>


More information about the llvm-bugs mailing list