llvm-capstone/llvm/tools/llvm-cov
Yuhao Gu bea39c5443 [llvm-cov] Support directory layout in coverage reports
This is a GSoC 2023 project ([discourse link](https://discourse.llvm.org/t/coverage-support-a-hierarchical-directory-structure-in-generated-coverage-html-reports/68239)).

llvm-cov currently generates a single top-level index HTML file, which causes rendering scalability issues in large projects. This patch adds support for hierarchical directory structure into the HTML reports to solve scalability issues by introducing the following changes:

- Added a new command line option `--show-directory-coverage` for `llvm-cov show`. It works both for `--format=html` and `--format=text`.
- Two new classes: `CoveragePrinterHTMLDirectory` and `CoveragePrinterTextDirectory` was added to support the new option.
- A tool class `DirectoryCoverageReport` was added to support the two classes above.
- Updated the document.
- Added a new regression test for `--show-directory-coverage`.

Reviewed By: phosek, gulfem

Differential Revision: https://reviews.llvm.org/D151283
2023-08-24 13:46:12 +08:00
..
CMakeLists.txt Reland: [llvm-cov] Look up object files using debuginfod 2023-01-26 12:59:52 -08:00
CodeCoverage.cpp [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
CoverageExporter.h
CoverageExporterJson.cpp
CoverageExporterJson.h
CoverageExporterLcov.cpp
CoverageExporterLcov.h
CoverageFilters.cpp
CoverageFilters.h
CoverageReport.cpp [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
CoverageReport.h [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
CoverageSummaryInfo.cpp
CoverageSummaryInfo.h [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
CoverageViewOptions.h [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
gcov.cpp
llvm-cov.cpp [llvm] Migrate {starts,ends}with_insensitive to {starts,ends}_with_insensitive (NFC) 2023-05-12 15:37:37 -07:00
RenderingSupport.h
SourceCoverageView.cpp [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
SourceCoverageView.h [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
SourceCoverageViewHTML.cpp [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
SourceCoverageViewHTML.h [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
SourceCoverageViewText.cpp [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
SourceCoverageViewText.h [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00
TestingSupport.cpp [llvm-cov] Support directory layout in coverage reports 2023-08-24 13:46:12 +08:00