HomePhabricator

[Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage

Authored by alanphipps on Dec 28 2020, 9:20 AM.

Description

[Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage

This is an enhancement to LLVM Source-Based Code Coverage in clang to track how
many times individual branch-generating conditions are taken (evaluate to TRUE)
and not taken (evaluate to FALSE). Individual conditions may comprise larger
boolean expressions using boolean logical operators. This functionality is
very similar to what is supported by GCOV except that it is very closely
anchored to the ASTs.

Differential Revision: https://reviews.llvm.org/D84467

Details

Committed
alanphippsJan 5 2021, 7:51 AM
Differential Revision
D84467: Add support for Branch Coverage in LLVM Source-Based Code Coverage
Parents
rG53c3acb89fcc: [clang-tidy] Add extra tests
Branches
Unknown
Tags
Unknown