LLVM clang also understands the gcc options for enabling coverage collection (e.g. --coverage and -fprofile-arcs -ftest-coverage). But - in that compatibility mode - llvm targets a certain gcc/gcov version. For example one that isn't supported anymore by current gcov/lcov (yielding inaccuracies and lcov errors).
Thus, to increase the portability of the cmake codecov module, it would be useful to also add support for llvm-cov.
LLVM clang also understands the gcc options for enabling coverage collection (e.g.
--coverageand-fprofile-arcs -ftest-coverage). But - in that compatibility mode - llvm targets a certain gcc/gcov version. For example one that isn't supported anymore by currentgcov/lcov(yielding inaccuracies and lcov errors).Thus, to increase the portability of the cmake codecov module, it would be useful to also add support for
llvm-cov.