[PATCH] D18278: llvm-cov HTML Generation

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 18 11:04:31 PDT 2016




> On Jul 17, 2016, at 2:03 PM, Harlan Haskins <harlan at harlanhaskins.com> wrote:
> 
> harlanhaskins added inline comments.
> 
> ================
> Comment at: llvm/trunk/tools/llvm-cov/SourceCoverageViewHTML.cpp:405
> @@ +404,3 @@
> +                                                    unsigned LineNo) {
> +  OS << tag("td", tag("pre", utostr(uint64_t(LineNo))), "line-number");
> +}
> ----------------
> Any chance we can wrap this in an anchor, a la:
> 
> `<a name="L{{line-number}}"></a>`
> 
> This would be very useful for linking within the files.

Sure, this is done in llvm/r275840.

By the way, you might be interested in the new -Xdemangler option. You should
be able to hook swift-demangler into llvm-cov with it.

vedant

> 
> 
> Repository:
>  rL LLVM
> 
> https://reviews.llvm.org/D18278
> 
> 
> 



More information about the llvm-commits mailing list