This is an archive of the discontinued LLVM Phabricator instance.

Allow branch coverage to be skipped by llvm-cov when exporting for LCOV
ClosedPublic

Authored by alanphipps on Oct 14 2022, 1:39 PM.

Details

Summary

This small patch adds a '--skip-branches' option to the llvm-cov export options. This option allows branch coverage information to be skipped from the exported LCOV directives if it's not needed. For now, this only works when exporting LCOV (which is noted in the option description), but it can be extended for JSON later if it makes sense.

Reference discussion here: https://discourse.llvm.org/t/is-it-possible-to-disable-branch-coverage-generation/62342/7

Diff Detail

Event Timeline

alanphipps created this revision.Oct 14 2022, 1:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2022, 1:39 PM
alanphipps requested review of this revision.Oct 14 2022, 1:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2022, 1:39 PM
justincady accepted this revision.Oct 14 2022, 1:49 PM

LGTM.

Thank you!

This revision is now accepted and ready to land.Oct 14 2022, 1:49 PM
This revision was landed with ongoing or failed builds.Oct 14 2022, 2:25 PM
This revision was automatically updated to reflect the committed changes.