diff options
Diffstat (limited to 'llvm/tools/llvm-cov/CoverageReport.h')
| -rw-r--r-- | llvm/tools/llvm-cov/CoverageReport.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/tools/llvm-cov/CoverageReport.h b/llvm/tools/llvm-cov/CoverageReport.h index 242dc7fe7ba..d78f2e4c2bd 100644 --- a/llvm/tools/llvm-cov/CoverageReport.h +++ b/llvm/tools/llvm-cov/CoverageReport.h @@ -14,6 +14,7 @@ #ifndef LLVM_COV_COVERAGEREPORT_H #define LLVM_COV_COVERAGEREPORT_H +#include "CoverageFilters.h" #include "CoverageSummaryInfo.h" #include "CoverageViewOptions.h" @@ -40,13 +41,16 @@ public: static std::vector<FileCoverageSummary> prepareFileReports(const coverage::CoverageMapping &Coverage, FileCoverageSummary &Totals, ArrayRef<std::string> Files, - const CoverageViewOptions &Options); + const CoverageViewOptions &Options, + const CoverageFilter &Filters = CoverageFiltersMatchAll()); /// Render file reports for every unique file in the coverage mapping. void renderFileReports(raw_ostream &OS) 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 CoverageFilter &Filters) const; }; } // end namespace llvm |

