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

Yuhao Gu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 08:47:25 PDT 2023


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

- [llvm-cov] Add regression tests.

llvm-cov convert-for-testing not works for me. When I use it for program with multiple source files, the generated .covmapping file can not be read back by llvm-cov:

  error: Failed to load coverage: 'main.covmapping': Malformed coverage data

So, I just include two program files (one for Linux and the other one for Windows) directly.


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/b0/b1.h
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/b0/b1_1.cc
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/b0/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
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/main.cc
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/main.exe
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/main.exe.profdata
  llvm/test/tools/llvm-cov/Inputs/directory_coverage/main.profdata
  llvm/test/tools/llvm-cov/directory_coverage.linux.test
  llvm/test/tools/llvm-cov/directory_coverage.win.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.541575.patch
Type: text/x-patch
Size: 46044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230718/ad479bb1/attachment.bin>


More information about the llvm-commits mailing list