[PATCH][RFC] llvm-cov HTML generation

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 2 10:43:48 PST 2016


Hi Harlan,

This looks great! Some high level comments. I find the code can be further
restructured
1) high level methods can be commoned between two derived classes  (and
pushed to the base class) -- such as renderSubviews
2) the subclasses just need to provide virtual functions that implement the
view specific low level routines.

Also there does not seem to be a test case.

thanks,

David

On Tue, Mar 1, 2016 at 6:03 PM, Harlan Haskins via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Oops, forgot to add a file to the patch.
>
> New patch attached.
>
>
>
>
> On Mar 1, 2016, at 5:48 PM, Harlan Haskins via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
> Hi all,
>
> I’ve got a preliminary implementation of HTML generation for llvm-cov’s
> coverage reports.
>
> The patch adds 2 flags to llvm-cov show:
>
>    - -format [html | console]
>    - -output-dir <dirname>
>
>
> Specifying -format=console will perform the current behavior (now the
> default), and -format=html will generate an HTML report.
> If -output-dir is specified, then the output is split into one html or txt
> file per source file, named <source-name>.<ext>, with a directory structure
> that mimics the file system structure.
>
> If neither are provided, the behavior remains the same.
>
> I’m hoping to add an index with a browsable list of files within their
> directories, but for now I’ve attached the patch and a sample HTML file (In
> this case, AliasAnalysis.h, as included by swiftc).
>
> Thanks,
> Harlan Haskins
>
> <AliasAnalysis.h.html>
> <llvm-cov-html.diff>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160302/8ba4232a/attachment.html>


More information about the llvm-commits mailing list