diff options
Diffstat (limited to 'llvm/tools/llvm-cov/CoverageReport.cpp')
-rw-r--r-- | llvm/tools/llvm-cov/CoverageReport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-cov/CoverageReport.cpp b/llvm/tools/llvm-cov/CoverageReport.cpp index 82259542c59..805e465f99c 100644 --- a/llvm/tools/llvm-cov/CoverageReport.cpp +++ b/llvm/tools/llvm-cov/CoverageReport.cpp @@ -379,11 +379,11 @@ std::vector<FileCoverageSummary> CoverageReport::prepareFileReports( } void CoverageReport::renderFileReports( - raw_ostream &OS, const CoverageFilters &IgnoreFilenameFilters) const { + raw_ostream &OS, const FilenameCoverageFilters &FilenameFilters) const { std::vector<std::string> UniqueSourceFiles; for (StringRef SF : Coverage.getUniqueSourceFiles()) { - // Apply ignore source files filters. - if (!IgnoreFilenameFilters.matchesFilename(SF)) + // Apply source files filters. + if (FilenameFilters.matchesFilename(SF)) UniqueSourceFiles.emplace_back(SF.str()); } renderFileReports(OS, UniqueSourceFiles); |