<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/135195>135195</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[llvm-cov] llvm-cov report' should provide option to produce JSON output
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bartlettroscoe
</td>
</tr>
</table>
<pre>
## Description
The current `llvm-cov report -show-functions` command only produces text output that uses spaces to align the columns. This is great for smaller functions but it unreadable if there is even a single long function name (even mangled template function names can be long). This also produced a lot of wasted space with space chars ' ' and therefore needlessly large output.
It would be very helpful if `llvm-cov report` supported `-format=JSON`. Then, it would be easy to write a Python script to parse the JSON info and produce a nice Markdown table or HTML table given this data. The mangled or demangled function names could be wrapped and the table could be readable.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkk0uu6zYMhlcjT4gEjmznMfDgtEHQFr1tgZ4N0BZtq5UlQ6STZveFlEfRcweGJZCi-P-fiMx29EStan5QzbnAVaYQ2w6jOBKJgftARRfMvVW6UrqCM3Ef7SI2eFV-qPLjcyLo1xjJC6h96dx13vThCpGWEAU2PIXbZlh9n46w2pfQh3lGbyB4d4clBrP2xCD0j0BYZVkFZEKBlYmBF8zBAOjs6EHSbcGts-ctwOdkGSzDGAkFhhCBZ3SOIrwvhG4VsAKrj4QGO0dgh1QmUjpJV_KAwNaPjsAFP76PgseZQOljzpkxZRgQmheHQv9PY-jRQ_eooPTp1Rs6Di-JBhBcEAgD3JCFzEMc3KxMz2U_YWRQ-pC_5FFudAiRwBMZR8zuDg7jSE-vtg8KPwvcwupM6uFK8Q4TuWVYXRL7PZVEAXhd0ppMStgMIc4oqjr_8ufvv6l9mRWQV_rH5N67NiHfE41btEKA8MddpuDh8SZSYMHIlDGlQmD9ELKQpwmA4G1P8A3j3ybcPEhGEiL89Pnt1-dutMlxSQYaFHy08iYQIhh6bb5SePV5i7gsyfKHh8_C7_DrLST3CtNW5lSdsKB2d6hrfTrofVlMLXWn4WiO3WmoezxUaLpqdxiwbo6Gmn3dFLbVpW7KelfumnJXlttDTyfTHzXqHod6X6q6pBmt2yb_tyGOhWVeqd1Vze7UFA47cpxnT2tPN8hRpXUaxdhmaN06sqpLZ1n4vzJixeWhfYFVzRm-QtYH4CkrXmK4WkMQ8txmTE8cGdLjJRVrdO0ksrCqPpS-KH0ZrUxrt-3DrPQllX_-NksMf1EvSl9yy6z05anp2up_AwAA___u5X2H">