[PATCH] D151283: [llvm-cov] Support a Hierarchical Structure for HTML Coverage Report Generating

Yuhao Gu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 02:32:29 PDT 2023


AtomicGu updated this revision to Diff 541411.
AtomicGu added a comment.

- [llvm-cov] `--show-directory_coverage` for text.

I refactored the HTML printer and extract the recursion part into a common template method pattern class named "DirectoryCoverageReport".

Manual test is passed (both on linux and windows).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151283/new/

https://reviews.llvm.org/D151283

Files:
  llvm/docs/CommandGuide/llvm-cov.rst
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/a0/a1/a2.cc
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/b/b1.h
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/b/b1_1.cc
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/b/b1_2.cc
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/c0/c1/c2.h
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/c0/c1/c2_1.cc
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/c0/c1/c2_2.cc
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/header.h
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/main.cc
  llvm/test/tools/llvm-cov/directory_coverage.test
  llvm/tools/llvm-cov/CodeCoverage.cpp
  llvm/tools/llvm-cov/CoverageReport.cpp
  llvm/tools/llvm-cov/CoverageReport.h
  llvm/tools/llvm-cov/CoverageSummaryInfo.h
  llvm/tools/llvm-cov/CoverageViewOptions.h
  llvm/tools/llvm-cov/SourceCoverageView.cpp
  llvm/tools/llvm-cov/SourceCoverageView.h
  llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp
  llvm/tools/llvm-cov/SourceCoverageViewHTML.h
  llvm/tools/llvm-cov/SourceCoverageViewText.cpp
  llvm/tools/llvm-cov/SourceCoverageViewText.h
  llvm/utils/prepare-code-coverage-artifact.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151283.541411.patch
Type: text/x-patch
Size: 42276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230718/8f1ee1e8/attachment.bin>


More information about the llvm-commits mailing list