Request support for lcov for C and C++ languages

Hi @mpaladin,
I want to raise a point for “lcov” support for C/C++ code.

Reasoning:
We use Bazel to build our C++ project. Bazel natively supports coverage generation for C++ code, by simply passing some arguments. However, Bazel only support “lcov” as an output format, see bazel doc.

Background:
Bazel streamlines the coverage format for all kind of programming languages. It generates the “lcov” format for example also for python coverage or llvm-coverage with clang.

Solution:
The lcov format is already supported by typescript (sonar.typescript.lcov.reportPaths), I assume that it should be not so complex to extend the support for C code.

What do you think about it?

Hi @PieterBunnenberg ,

I am going to add it to the feature requests for C and C++ languages. Were you able to convert lcov to gcov for C and C++ languages?

Hi @mpaladin,
thanks for adding this feature request.

I already searched for a conversion tool, but I was not able to find a suitable solution to convert the lcov format to .gcov. It is not very common to do it in this direction. :frowning:

Hi @PieterBunnenberg

I put up a card on our ProductBoard to record traction on the topic.
Thank you again for reaching out.