Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.

This commit is contained in:
Dimitry Andric
2023-12-09 14:28:42 +01:00
parent 7fa27ce4a0
commit b1c73532ee
5377 changed files with 312715 additions and 180672 deletions
@@ -76,8 +76,12 @@ std::unique_ptr<CoveragePrinter>
CoveragePrinter::create(const CoverageViewOptions &Opts) {
switch (Opts.Format) {
case CoverageViewOptions::OutputFormat::Text:
if (Opts.ShowDirectoryCoverage)
return std::make_unique<CoveragePrinterTextDirectory>(Opts);
return std::make_unique<CoveragePrinterText>(Opts);
case CoverageViewOptions::OutputFormat::HTML:
if (Opts.ShowDirectoryCoverage)
return std::make_unique<CoveragePrinterHTMLDirectory>(Opts);
return std::make_unique<CoveragePrinterHTML>(Opts);
case CoverageViewOptions::OutputFormat::Lcov:
// Unreachable because CodeCoverage.cpp should terminate with an error