This patch enables users to export coverage information into portable JSON for use by analysis tools and storage in document based databases. This will expose the coverage information gathered by the instrumentation in such a fashion that automated tooling will be able to process coverage information.
The export submodule is invoked just like the the report subcommand
$ llvm-cov export -instr-profile /path/to/foo.profdata /path/to/foo
The resulting JSON contains a list of Files and Functions.
Every file object contains a list of segments, expansions, and a summary of the file's region, function, and line coverage.
Every function object contains the function's name and regions
There is also a total summary for the entire object file.
A documentation patch is incoming to update https://github.com/llvm-mirror/clang/blob/master/docs/SourceBasedCodeCoverage.rst
Can you use your shorter filename-matching regex for all filenames? Something like {{[^\"]+}}showHighlightedRanges.cpp in this case.