[PATCH] D18278: llvm-cov HTML Generation

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 30 09:16:50 PDT 2016


vsk added a comment.

In http://reviews.llvm.org/D18278#471401, @harlanhaskins wrote:

> Sorry, I should've provided more details. I ran llvm-cov with `-output-dir swift-coverage`, which output everything, including the index file, into swift-coverage.
>
> The relative links from the index include a leading `swift-coverage/...` which make their absolute paths, once resolved, `swift-coverage/swift-coverage/...`


This index file looks correct to me. For example, one entry has LinkText="home/harlan/Swift/swift/lib/IRGen/GenCoverage.cpp" and LinkTarget="file:///Users/vk/Desktop/swift-coverage/coverage/home/harlan/Swift/swift/lib/IRGen/GenCoverage.cpp.html". Does this not work?

Note that the final paths do not contain `swift-coverage/swift-coverage/...`. Instead, it's `swift-coverage/coverage/...`. Having the extra 'coverage' component handles a corner case where the user compiles a source file called, e.g "index.html" into their binary.


http://reviews.llvm.org/D18278





More information about the llvm-commits mailing list