bazelbuild / bazelbuild/bazel

Handle MCDC Coverage data in Coverage Output Generator

Open
#27,710 6 comments 0 reactions 1 assignee Claimed by @c-mita View on GitHub
coverage P2 team-Rules-CPP type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the feature request:

MCDC Coverage support is improving in GCC and Clang toolchains.

The Bazel Coverage Output Generator is currently not able to parse MCDC Tags like [these](https://github.com/linux-test-project/lcov/blob/master/tests/lcov/merge/mcdc.dat#L40-L47)
```
# common
MCDC:1,2,t,0,0,0
MCDC:1,2,f,0,0,0
MCDC:1,2,t,0,1,0
MCDC:1,2,f,0,1,0

# on line which has no coverpoint (so synthesize one)
MCDC:6,1,t,0,0,0
MCDC:6,1,f,0,0,0
```

### Which category does this issue belong to?

C++ Rules

### What underlying problem are you trying to solve with this feature?

Support of bazel for MC/DC coverage merging with the builtin [coverageoutputgenerator](https://github.com/bazelbuild/bazel/blob/master/tools/test/CoverageOutputGenerator/java/com/google/devtools/coverageoutputgenerator/)

### Which operating system are you running Bazel on?

Ubuntu

### What is the output of `bazel info release`?

release 8.4.2

### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.

_No response_

### What's the output of `git remote get-url origin; git rev-parse HEAD` ?

```text

```

### Have you found anything relevant by searching the web?

_No response_

### Any other information, logs, or outputs that you want to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.