[PATCH] D135986: Allow branch coverage to be skipped by llvm-cov when exporting for LCOV
Alan Phipps via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 14 13:39:47 PDT 2022
alanphipps created this revision.
alanphipps added reviewers: justincady, vsk.
Herald added a project: All.
alanphipps requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135986
Files:
llvm/test/tools/llvm-cov/branch-export-lcov.test
llvm/tools/llvm-cov/CodeCoverage.cpp
llvm/tools/llvm-cov/CoverageExporterLcov.cpp
llvm/tools/llvm-cov/CoverageViewOptions.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135986.467897.patch
Type: text/x-patch
Size: 4765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221014/c4897e2e/attachment.bin>
More information about the llvm-commits
mailing list