<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - "llvm-cov show" displays suboptimal output when file is lacking coverage"
   href="https://llvm.org/bugs/show_bug.cgi?id=30659">30659</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"llvm-cov show" displays suboptimal output when file is lacking coverage
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dane@mapbox.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If you run `llvm-cov show src/*cpp` and a file inside of `src/*cpp` lacks
coverage then coverage is successfully output for the files with coverage but a
confusing warning and error is displayed for the file that is not. I added a
blank file to replicate called ` src/foo.cpp` and the output was:


error: B?
         : No such file or directory
warning: The file 'B?
                     ' isn't covered.


Note: the exact command was `llvm-cov show
/Users/dane/projects/node-cpp-skel/lib/binding/hello_world.node
-instr-profile=code.profdata src/*.cpp -filename-equivalence -use-color` which
the shell expands to `llvm-cov show
/Users/dane/projects/node-cpp-skel/lib/binding/hello_world.node
-instr-profile=code.profdata src/foo.cpp src/hello_world.cpp
-filename-equivalence -use-color`.

I would expect the output to be something like: `warning: the file src/foo.cpp
isn't covered, skipping this file`

Also, and it appears that the order of files passed matters. If the
`src/foo.cpp` that lacks coverage is passed first then, like I describe above,
the coverage is output successfully for other files (src/hello_world.cpp in
this case) and the odd warning is harmless. But if `src/foo.cpp` is passed last
then no coverage is output for the file that needs it displayed and an error is
output like:

error: B@??    B@?: No such file or directory
warning: The file 'B@??    B@?' isn't covered.
warning: The file 'src/foo.cpp' isn't covered.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>