Skip to content

[llvm-cov] llvm-cov report' should provide option to produce JSON output #135195

@bartlettroscoe

Description

@bartlettroscoe

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.

Workaround

The current workaround is to just parse the generated text table that is output by llvm-cov report. That is not the end of the world.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImproving things as opposed to bug fixing, e.g. new or missing featuretools:llvm-cov

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions