diff options
| author | 2020-08-03 15:06:44 +0000 | |
|---|---|---|
| committer | 2020-08-03 15:06:44 +0000 | |
| commit | b64793999546ed8adebaeebd9d8345d18db8927d (patch) | |
| tree | 4357c27b561d73b0e089727c6ed659f2ceff5f47 /gnu/llvm/tools/llvm-cov/CoverageReport.h | |
| parent | Add support for UTF-8 DISPLAY-HINTs with octet length. For now only (diff) | |
| download | wireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.tar.xz wireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.zip | |
Remove LLVM 8.0.1 files.
Diffstat (limited to 'gnu/llvm/tools/llvm-cov/CoverageReport.h')
| -rw-r--r-- | gnu/llvm/tools/llvm-cov/CoverageReport.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/gnu/llvm/tools/llvm-cov/CoverageReport.h b/gnu/llvm/tools/llvm-cov/CoverageReport.h deleted file mode 100644 index 4a6527e9fe5..00000000000 --- a/gnu/llvm/tools/llvm-cov/CoverageReport.h +++ /dev/null @@ -1,70 +0,0 @@ -//===- CoverageReport.h - Code coverage report ----------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This class implements rendering of a code coverage report. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_COV_COVERAGEREPORT_H -#define LLVM_COV_COVERAGEREPORT_H - -#include "CoverageFilters.h" -#include "CoverageSummaryInfo.h" -#include "CoverageViewOptions.h" - -namespace llvm { - -/// Displays the code coverage report. -class CoverageReport { - const CoverageViewOptions &Options; - const coverage::CoverageMapping &Coverage; - - void render(const FileCoverageSummary &File, raw_ostream &OS) const; - void render(const FunctionCoverageSummary &Function, const DemangleCache &DC, - raw_ostream &OS) const; - -public: - CoverageReport(const CoverageViewOptions &Options, - const coverage::CoverageMapping &Coverage) - : Options(Options), Coverage(Coverage) {} - - void renderFunctionReports(ArrayRef<std::string> Files, - const DemangleCache &DC, raw_ostream &OS); - - /// Prepare file reports for the files specified in \p Files. - static std::vector<FileCoverageSummary> - prepareFileReports(const coverage::CoverageMapping &Coverage, - FileCoverageSummary &Totals, ArrayRef<std::string> Files, - const CoverageViewOptions &Options, - const CoverageFilter &Filters = CoverageFiltersMatchAll()); - - static void - prepareSingleFileReport(const StringRef Filename, - const coverage::CoverageMapping *Coverage, - const CoverageViewOptions &Options, - const unsigned LCP, - FileCoverageSummary *FileReport, - const CoverageFilter *Filters); - - /// Render file reports for every unique file in the coverage mapping. - void renderFileReports(raw_ostream &OS, - const CoverageFilters &IgnoreFilenameFilters) const; - - /// Render file reports for the files specified in \p Files. - void renderFileReports(raw_ostream &OS, ArrayRef<std::string> Files) const; - - /// Render file reports for the files specified in \p Files and the functions - /// in \p Filters. - void renderFileReports(raw_ostream &OS, ArrayRef<std::string> Files, - const CoverageFiltersMatchAll &Filters) const; -}; - -} // end namespace llvm - -#endif // LLVM_COV_COVERAGEREPORT_H |
