This is an archive of the discontinued LLVM Phabricator instance.

[llvm-cov] Allow hiding instantiation/region coverage from summary tables
ClosedPublic

Authored by efriedma on Aug 14 2017, 5:16 PM.

Details

Reviewers
vsk
Summary

Region coverage is difficult to explain without going deep into how coverage is implemented. Instantiation coverage is easier to explain, but probably not useful in most cases (templates don't exist in C, and most C++ code contains relatively few templates).

This patch adds the options "-show-region-summary" and "-show-instantiation-summary" to allow hiding those columns. "-show-instantiation-summary" is turned off by default.

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma created this revision.Aug 14 2017, 5:16 PM
vsk edited edge metadata.Aug 14 2017, 6:57 PM

I think it makes sense to hide instantiation coverage by default. Unless you're specifically looking for unused specializations (perhaps not the common case), it can be overwhelming.

I'd prefer to keep region coverage visible by default. It requires some additional effort up-front to understand, but is the most granular metric we currently report. IMO it's a good deal more informative than line coverage.

efriedma updated this revision to Diff 113152.Aug 29 2017, 1:58 PM
efriedma retitled this revision from [llvm-cov] Hide instantiation/region coverage from summary tables to [llvm-cov] Allow hiding instantiation/region coverage from summary tables.
efriedma edited the summary of this revision. (Show Details)

Updated to turn "-show-region-summary" on by default.

vsk accepted this revision.Aug 29 2017, 2:28 PM

Thanks!

This revision is now accepted and ready to land.Aug 29 2017, 2:28 PM