This is an archive of the discontinued LLVM Phabricator instance.

[llvm-cov] Hide files with no coverage from the index when filtering by name
ClosedPublic

Authored by seaneveson on Oct 2 2017, 7:04 AM.

Details

Summary

Remove the "Files which contain no functions" section from the index page when filtering (using -name*= options) with an output directory. The coverage for those files is not produced in the directory structure.

Diff Detail

Repository
rL LLVM

Event Timeline

seaneveson created this revision.Oct 2 2017, 7:04 AM
vsk edited edge metadata.Oct 2 2017, 8:48 AM

Could you upload a diff with some source context (e.g 'git diff -U1000')?

test/tools/llvm-cov/dir-with-filtering.test
38 ↗(On Diff #117331)

This test looks like it would pass without this patch's functionality change. Could you "CHECK-NOT" against "Files which ..."?

seaneveson updated this revision to Diff 117362.Oct 2 2017, 9:07 AM

Add context.

seaneveson added inline comments.Oct 2 2017, 9:11 AM
test/tools/llvm-cov/dir-with-filtering.test
38 ↗(On Diff #117331)

The test checks that dir-with-filtering2.cpp does not appear in the index file. Before the change it appears listed under the "Files which ..." sections, so the test doesn't pass.

I'll add a check for "Files which ..." since that shouldn't be in the output either.

Thanks for the review!

seaneveson updated this revision to Diff 117364.Oct 2 2017, 9:17 AM

Improve test to check for absence of "Files which contain no functions" message.

vsk accepted this revision.Oct 2 2017, 10:43 AM

Thanks!

This revision is now accepted and ready to land.Oct 2 2017, 10:43 AM
This revision was automatically updated to reflect the committed changes.