This is an archive of the discontinued LLVM Phabricator instance.

[llvm-cov] Generate "report" for given source paths if sources are specified.
ClosedPublic

Authored by Dor1s on Oct 12 2017, 2:18 PM.

Details

Summary

Documentation says that user can specify sources for both "show" and
"report" commands. "Show" command respects specified sources, but "report" does
not. It is useful to have both "show" and "report" generated for specified
sources. Also added tests to for both commands with sources specified.

Event Timeline

Dor1s created this revision.Oct 12 2017, 2:18 PM
Dor1s added a comment.EditedOct 12 2017, 2:23 PM

Vedant, I haven't found any existing test to be extended with these checks (multiple-files.test seemed to be a good one, but I couldn't find the sources), so I decided to add new one looking at multiple-objects.tests as an example. I can change it, if you suggest a better place. Though I'm planning to add more changes to the show generation, and these new files would be useful to my future changes as well.

Please take a look :)

Dor1s updated this revision to Diff 118846.Oct 12 2017, 2:27 PM

Add missing newlines at the end of test sources.

Dor1s updated this revision to Diff 118847.Oct 12 2017, 2:28 PM

An attempt to fix weirdly-looking diff for CoverageReport.cpp file.

vsk accepted this revision.Oct 12 2017, 5:25 PM

Looks great. Thank you very much!

This revision is now accepted and ready to land.Oct 12 2017, 5:25 PM
Dor1s closed this revision.Oct 13 2017, 7:44 AM