<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/85774>85774</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-profdata/llvm-cov should handle MSVC code coverage reports
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dilyanpalauzov
</td>
</tr>
</table>
<pre>
A software product is compiled on different systems with different compilers. E.g. this source code
```c
#ifdef WIN32
printf("WIN32\n");
#else
printf("NOT WIN32\n");
#endif
```
is compiled on Linux with clang and on Windows with MSVC 2019. I prefer not to dig into how to compile on Windows with clang. There are tests performed on the compiled code, which produce code coverage reports. Tests run only on Windows, only on Linux or on both systems. I want to see the source code in html files, showing which lines were ever executed during the tests on Linux or on Windows. On Windows, the possible formats produced by MSVC are mentioned at https://devblogs.microsoft.com/visualstudio/code-coverage-features-in-visual-studio-enterprise/#support-of-additional-report-formats : CoverageXML (file extension .coveragexml), XML (.xml), Cobertura (.cobertura.xml), Binary (.coverage).
Please extend llvm-profdata/llvm-cov to accept as input any of the four coverage formats produced by MSVC. This way coverage reports can be generated for code executed under Windows and under Linux.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8VN1upDgTfRpzUwKBoRP6gouk87U00vx80kY7e2vsArwyNvJPk96nX9nQSSYzs1KrRZXLx6dOHZs5J0eN2JHDIzk8ZSz4ydhOSHVlemGKhX_MJeuNuHYP4MzgV2YRFmtE4B6kA27mRSoUYDQIOQxoUXtwV-dxdrBKP71L78XWFQD_K8YC_CQdOBMsR-BGICmfSPlA7srtx_eY1nIQOMD3T19ruuUAFiu1HwhtCaXbwuGkCaWEHkn9-LoTlcNfbfn67Rn-a5sWcvhAZws_NP1Z6vCyNcoV0yMwnfLfpRZm3SX48sefJ6BldSwAPsFicUAL2njwBoQcQWpvYDJrjHfwnzASegHwPKFFiGPw6LyDBe1g7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