<div dir="ltr">I've reverted this commit as the test appears to fail on sanitizer and non-sanitizer buildbots, e.g. <a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/36140">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/36140</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 29, 2019 at 6:40 PM Vedant Kumar via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Author: Vedant Kumar<br>
Date: 2019-10-29T18:26:33-07:00<br>
New Revision: bfed824b57d14e2ba98ddbaf1a1410cf04a3e279<br>
<br>
URL: <a href="https://github.com/llvm/llvm-project/commit/bfed824b57d14e2ba98ddbaf1a1410cf04a3e279" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/bfed824b57d14e2ba98ddbaf1a1410cf04a3e279</a><br>
DIFF: <a href="https://github.com/llvm/llvm-project/commit/bfed824b57d14e2ba98ddbaf1a1410cf04a3e279.diff" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/bfed824b57d14e2ba98ddbaf1a1410cf04a3e279.diff</a><br>
<br>
LOG: [llvm-cov] Add option to whitelist filenames<br>
<br>
Add the `-whitelist-filename-regex` option to restrict coverage<br>
reporting to file paths that match a whitelist regex.<br>
<br>
Patch by Michael Daniels!<br>
<br>
rdar://56720320<br>
<br>
Added: <br>
    llvm/test/tools/llvm-cov/whitelist-filename-regex.test<br>
<br>
Modified: <br>
    llvm/docs/CommandGuide/llvm-cov.rst<br>
    llvm/tools/llvm-cov/CodeCoverage.cpp<br>
    llvm/tools/llvm-cov/CoverageExporter.h<br>
    llvm/tools/llvm-cov/CoverageExporterJson.cpp<br>
    llvm/tools/llvm-cov/CoverageExporterJson.h<br>
    llvm/tools/llvm-cov/CoverageExporterLcov.cpp<br>
    llvm/tools/llvm-cov/CoverageExporterLcov.h<br>
    llvm/tools/llvm-cov/CoverageFilters.cpp<br>
    llvm/tools/llvm-cov/CoverageFilters.h<br>
    llvm/tools/llvm-cov/CoverageReport.cpp<br>
    llvm/tools/llvm-cov/CoverageReport.h<br>
<br>
Removed: <br>
<br>
<br>
<br>
################################################################################<br>
diff  --git a/llvm/docs/CommandGuide/llvm-cov.rst b/llvm/docs/CommandGuide/llvm-cov.rst<br>
index 08123e8cb788..9bc9f7edae21 100644<br>
--- a/llvm/docs/CommandGuide/llvm-cov.rst<br>
+++ b/llvm/docs/CommandGuide/llvm-cov.rst<br>
@@ -259,6 +259,10 @@ OPTIONS<br>
<br>
  Skip source code files with file paths that match the given regular expression.<br>
<br>
+.. option:: -whitelist-filename-regex=<PATTERN><br>
+<br>
+ Show code coverage only for files that match the given regular expression.<br>
+<br>
 .. option:: -format=<FORMAT><br>
<br>
  Use the specified output format. The supported formats are: "text", "html".<br>
<br>
diff  --git a/llvm/test/tools/llvm-cov/whitelist-filename-regex.test b/llvm/test/tools/llvm-cov/whitelist-filename-regex.test<br>
new file mode 100644<br>
index 000000000000..7039fb532f33<br>
--- /dev/null<br>
+++ b/llvm/test/tools/llvm-cov/whitelist-filename-regex.test<br>
@@ -0,0 +1,88 @@<br>
+########################<br>
+# Test "report" command.<br>
+########################<br>
+# Only source files<br>
+RUN: llvm-cov report -instr-profile %S/Inputs/sources_specified/main.profdata \<br>
+RUN:   -path-equivalence=/tmp,%S/Inputs -whitelist-filename-regex='.*\.cc$' \<br>
+RUN:   %S/Inputs/sources_specified/main.covmapping \<br>
+RUN:   | FileCheck -check-prefix=REPORT_WHITELIST_SOURCE %s<br>
+<br>
+REPORT_WHITELIST_SOURCE-NOT: {{.*}}dec.h{{.*}}<br>
+REPORT_WHITELIST_SOURCE-NOT: {{.*}}inc.h{{.*}}<br>
+REPORT_WHITELIST_SOURCE-NOT: {{.*}}abs.h{{.*}}<br>
+REPORT_WHITELIST_SOURCE: {{.*}}main.cc{{.*}}<br>
+REPORT_WHITELIST_SOURCE: {{^}}TOTAL 1{{.*}}100.00%{{$}}<br>
+<br>
+# Whitelist all files from "extra" directory.<br>
+RUN: llvm-cov report -instr-profile %S/Inputs/sources_specified/main.profdata \<br>
+RUN:   -path-equivalence=/tmp,%S/Inputs -whitelist-filename-regex='.*extra[/\\].*' \<br>
+RUN:   %S/Inputs/sources_specified/main.covmapping \<br>
+RUN:   | FileCheck -check-prefix=REPORT_WHITELIST_DIR %s<br>
+<br>
+REPORT_WHITELIST_DIR: {{.*}}dec.h{{.*}}<br>
+REPORT_WHITELIST_DIR: {{.*}}inc.h{{.*}}<br>
+REPORT_WHITELIST_DIR-NOT: {{.*}}abs.h{{.*}}<br>
+REPORT_WHITELIST_DIR-NOT: {{.*}}main.cc{{.*}}<br>
+REPORT_WHITELIST_DIR: {{^}}TOTAL 2{{.*}}50.00%{{$}}<br>
+<br>
+# Whitelist ignored files<br>
+RUN: llvm-cov report -instr-profile %S/Inputs/sources_specified/main.profdata \<br>
+RUN:   -path-equivalence=/tmp,%S/Inputs \<br>
+RUN:   -ignore-filename-regex='.*' -whitelist-filename-regex='.*' \<br>
+RUN:   %S/Inputs/sources_specified/main.covmapping \<br>
+RUN:   | FileCheck -check-prefix=REPORT_WHITELIST_IGNORED %s<br>
+<br>
+REPORT_WHITELIST_IGNORED-NOT: {{.*}}dec.h{{.*}}<br>
+REPORT_WHITELIST_IGNORED-NOT: {{.*}}inc.h{{.*}}<br>
+REPORT_WHITELIST_IGNORED-NOT: {{.*}}abs.h{{.*}}<br>
+REPORT_WHITELIST_IGNORED-NOT: {{.*}}main.cc{{.*}}<br>
+REPORT_WHITELIST_IGNORED-NOT: {{^}}TOTAL 0{{.*}}0.00%{{$}}<br>
+<br>
+# Whitelist all files from "extra" directory even when SOURCES specified.<br>
+RUN: llvm-cov report -instr-profile %S/Inputs/sources_specified/main.profdata \<br>
+RUN:   -path-equivalence=/tmp,%S/Inputs -whitelist-filename-regex='.*extra[/\\].*' \<br>
+RUN:   %S/Inputs/sources_specified/main.covmapping \<br>
+RUN:   %S/Inputs/sources_specified/extra %S/Inputs/sources_specified/abs.h \<br>
+RUN:   | FileCheck -check-prefix=REPORT_WHITELIST_DIR_WITH_SOURCES %s<br>
+<br>
+REPORT_WHITELIST_DIR_WITH_SOURCES: {{.*}}dec.h{{.*}}<br>
+REPORT_WHITELIST_DIR_WITH_SOURCES: {{.*}}inc.h{{.*}}<br>
+REPORT_WHITELIST_DIR_WITH_SOURCES-NOT: {{.*}}abs.h{{.*}}<br>
+REPORT_WHITELIST_DIR_WITH_SOURCES-NOT: {{.*}}main.cc{{.*}}<br>
+REPORT_WHITELIST_DIR_WITH_SOURCES: {{^}}TOTAL 2{{.*}}50.00%{{$}}<br>
+<br>
+########################<br>
+# Test "show" command.<br>
+########################<br>
+# Whitelist a couple files<br>
+RUN: llvm-cov show -instr-profile %S/Inputs/sources_specified/main.profdata \<br>
+RUN:   -path-equivalence=/tmp,%S/Inputs \<br>
+RUN:   -whitelist-filename-regex='.*\.cc$' -whitelist-filename-regex='.*abs\.h$' \<br>
+RUN:   %S/Inputs/sources_specified/main.covmapping \<br>
+RUN:   | FileCheck -check-prefix=SHOW_WHITELIST_CC %s<br>
+<br>
+# Order of files may <br>
diff er, check that there are 3 files and not abs.h.<br>
+SHOW_IGNORE_CC-NOT: {{.*}}main.cc{{.*}}<br>
+<br>
+SHOW_WHITELIST_CC-NOT: {{.*}}dec.h{{.*}}<br>
+SHOW_WHITELIST_CC-NOT: {{.*}}inc.h{{.*}}<br>
+SHOW_WHITELIST_CC: {{.*}}sources_specified{{.*}}<br>
+SHOW_WHITELIST_CC: {{.*}}sources_specified{{.*}}<br>
+<br>
+########################<br>
+# Test "export" command.<br>
+########################<br>
+# Use a temp .json file as output in a single line. Whitelist headers that have<br>
+# an 'a' follow by 2 chars followed by '.h'.<br>
+RUN: llvm-cov export -instr-profile %S/Inputs/sources_specified/main.profdata \<br>
+RUN:   -path-equivalence=/tmp,%S/Inputs -whitelist-filename-regex='.*a..\.h$' \<br>
+RUN:   %S/Inputs/sources_specified/main.covmapping \<br>
+RUN:   > %t.export.json<br>
+<br>
+RUN: FileCheck -check-prefix=NO-EXPORT_WHITELIST_3_SYMBOLS_H %s < %t.export.json<br>
+RUN: FileCheck -check-prefix=EXPORT_WHITELIST_3_SYMBOLS_H %s < %t.export.json<br>
+<br>
+NO-EXPORT_WHITELIST_3_SYMBOLS_H-NOT: {{"filename":"(/|\\\\)tmp(/|\\\\)sources_specified(/|\\\\)inc.h"}}<br>
+NO-EXPORT_WHITELIST_3_SYMBOLS_H-NOT: {{"filename":"(/|\\\\)tmp(/|\\\\)sources_specified(/|\\\\)dec.h"}}<br>
+NO-EXPORT_WHITELIST_3_SYMBOLS_H-NOT: {{"filename":"(/|\\\\)tmp(/|\\\\)sources_specified(/|\\\\)main.cc"}}<br>
+EXPORT_WHITELIST_3_SYMBOLS_H: {{"filename":"(/|\\\\)tmp(/|\\\\)sources_specified(/|\\\\)abs.h"}}<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp<br>
index 7151cfb032f3..79c58450f0dd 100644<br>
--- a/llvm/tools/llvm-cov/CodeCoverage.cpp<br>
+++ b/llvm/tools/llvm-cov/CodeCoverage.cpp<br>
@@ -126,7 +126,7 @@ class CodeCoverageTool {<br>
   std::vector<StringRef> ObjectFilenames;<br>
   CoverageViewOptions ViewOpts;<br>
   CoverageFiltersMatchAll Filters;<br>
-  CoverageFilters IgnoreFilenameFilters;<br>
+  FilenameCoverageFilters FilenameFilters;<br>
<br>
   /// The path to the indexed profile.<br>
   std::string PGOFilename;<br>
@@ -190,7 +190,7 @@ void CodeCoverageTool::addCollectedPath(const std::string &Path) {<br>
     return;<br>
   }<br>
   sys::path::remove_dots(EffectivePath, /*remove_dot_dots=*/true);<br>
-  if (!IgnoreFilenameFilters.matchesFilename(EffectivePath))<br>
+  if (FilenameFilters.matchesFilename(EffectivePath))<br>
     SourceFiles.emplace_back(EffectivePath.str());<br>
 }<br>
<br>
@@ -595,6 +595,12 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {<br>
                "regular expression"),<br>
       cl::ZeroOrMore, cl::cat(FilteringCategory));<br>
<br>
+  cl::list<std::string> WhitelistFilenameRegexFilters(<br>
+      "whitelist-filename-regex", cl::Optional,<br>
+      cl::desc("Show code coverage only for file paths that match the given "<br>
+               "regular expression"),<br>
+      cl::ZeroOrMore, cl::cat(FilteringCategory));<br>
+<br>
   cl::list<std::string> IgnoreFilenameRegexFilters(<br>
       "ignore-filename-regex", cl::Optional,<br>
       cl::desc("Skip source code files with file paths that match the given "<br>
@@ -744,10 +750,11 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {<br>
       Filters.push_back(std::move(StatFilterer));<br>
     }<br>
<br>
-    // Create the ignore filename filters.<br>
+    // Create the filename filters.<br>
     for (const auto &RE : IgnoreFilenameRegexFilters)<br>
-      IgnoreFilenameFilters.push_back(<br>
-          std::make_unique<NameRegexCoverageFilter>(RE));<br>
+      FilenameFilters.blacklist(std::make_unique<NameRegexCoverageFilter>(RE));<br>
+    for (const auto &RE : WhitelistFilenameRegexFilters)<br>
+      FilenameFilters.whitelist(std::make_unique<NameRegexCoverageFilter>(RE));<br>
<br>
     if (!Arches.empty()) {<br>
       for (const std::string &Arch : Arches) {<br>
@@ -763,7 +770,7 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {<br>
       }<br>
     }<br>
<br>
-    // IgnoreFilenameFilters are applied even when InputSourceFiles specified.<br>
+    // FilenameFilters are applied even when InputSourceFiles specified.<br>
     for (const std::string &File : InputSourceFiles)<br>
       collectPaths(File);<br>
<br>
@@ -884,7 +891,7 @@ int CodeCoverageTool::doShow(int argc, const char **argv,<br>
   if (SourceFiles.empty())<br>
     // Get the source files from the function coverage mapping.<br>
     for (StringRef Filename : Coverage->getUniqueSourceFiles()) {<br>
-      if (!IgnoreFilenameFilters.matchesFilename(Filename))<br>
+      if (FilenameFilters.matchesFilename(Filename))<br>
         SourceFiles.push_back(Filename);<br>
     }<br>
<br>
@@ -988,7 +995,7 @@ int CodeCoverageTool::doReport(int argc, const char **argv,<br>
   CoverageReport Report(ViewOpts, *Coverage.get());<br>
   if (!ShowFunctionSummaries) {<br>
     if (SourceFiles.empty())<br>
-      Report.renderFileReports(llvm::outs(), IgnoreFilenameFilters);<br>
+      Report.renderFileReports(llvm::outs(), FilenameFilters);<br>
     else<br>
       Report.renderFileReports(llvm::outs(), SourceFiles);<br>
   } else {<br>
@@ -1054,7 +1061,7 @@ int CodeCoverageTool::doExport(int argc, const char **argv,<br>
   }<br>
<br>
   if (SourceFiles.empty())<br>
-    Exporter->renderRoot(IgnoreFilenameFilters);<br>
+    Exporter->renderRoot(FilenameFilters);<br>
   else<br>
     Exporter->renderRoot(SourceFiles);<br>
<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CoverageExporter.h b/llvm/tools/llvm-cov/CoverageExporter.h<br>
index 751e55dc0916..03a7447e934c 100644<br>
--- a/llvm/tools/llvm-cov/CoverageExporter.h<br>
+++ b/llvm/tools/llvm-cov/CoverageExporter.h<br>
@@ -40,7 +40,7 @@ class CoverageExporter {<br>
   virtual ~CoverageExporter(){};<br>
<br>
   /// Render the CoverageMapping object.<br>
-  virtual void renderRoot(const CoverageFilters &IgnoreFilters) = 0;<br>
+  virtual void renderRoot(const FilenameCoverageFilters &FilenameFilters) = 0;<br>
<br>
   /// Render the CoverageMapping object for specified source files.<br>
   virtual void renderRoot(ArrayRef<std::string> SourceFiles) = 0;<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CoverageExporterJson.cpp b/llvm/tools/llvm-cov/CoverageExporterJson.cpp<br>
index 181d428ed9d8..204571b7ee8f 100644<br>
--- a/llvm/tools/llvm-cov/CoverageExporterJson.cpp<br>
+++ b/llvm/tools/llvm-cov/CoverageExporterJson.cpp<br>
@@ -190,10 +190,11 @@ json::Array renderFunctions(<br>
<br>
 } // end anonymous namespace<br>
<br>
-void CoverageExporterJson::renderRoot(const CoverageFilters &IgnoreFilters) {<br>
+void CoverageExporterJson::renderRoot(<br>
+    const FilenameCoverageFilters &FilenameFilters) {<br>
   std::vector<std::string> SourceFiles;<br>
   for (StringRef SF : Coverage.getUniqueSourceFiles()) {<br>
-    if (!IgnoreFilters.matchesFilename(SF))<br>
+    if (FilenameFilters.matchesFilename(SF))<br>
       SourceFiles.emplace_back(SF);<br>
   }<br>
   renderRoot(SourceFiles);<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CoverageExporterJson.h b/llvm/tools/llvm-cov/CoverageExporterJson.h<br>
index c19475005552..c0f4f5b4beb4 100644<br>
--- a/llvm/tools/llvm-cov/CoverageExporterJson.h<br>
+++ b/llvm/tools/llvm-cov/CoverageExporterJson.h<br>
@@ -24,7 +24,7 @@ class CoverageExporterJson : public CoverageExporter {<br>
       : CoverageExporter(CoverageMapping, Options, OS) {}<br>
<br>
   /// Render the CoverageMapping object.<br>
-  void renderRoot(const CoverageFilters &IgnoreFilters) override;<br>
+  void renderRoot(const FilenameCoverageFilters &FilenameFilters) override;<br>
<br>
   /// Render the CoverageMapping object for specified source files.<br>
   void renderRoot(ArrayRef<std::string> SourceFiles) override;<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CoverageExporterLcov.cpp b/llvm/tools/llvm-cov/CoverageExporterLcov.cpp<br>
index d9b0c3b0d7a8..bc9dce852958 100644<br>
--- a/llvm/tools/llvm-cov/CoverageExporterLcov.cpp<br>
+++ b/llvm/tools/llvm-cov/CoverageExporterLcov.cpp<br>
@@ -106,10 +106,11 @@ void renderFiles(raw_ostream &OS, const coverage::CoverageMapping &Coverage,<br>
<br>
 } // end anonymous namespace<br>
<br>
-void CoverageExporterLcov::renderRoot(const CoverageFilters &IgnoreFilters) {<br>
+void CoverageExporterLcov::renderRoot(<br>
+    const FilenameCoverageFilters &FilenameFilters) {<br>
   std::vector<std::string> SourceFiles;<br>
   for (StringRef SF : Coverage.getUniqueSourceFiles()) {<br>
-    if (!IgnoreFilters.matchesFilename(SF))<br>
+    if (FilenameFilters.matchesFilename(SF))<br>
       SourceFiles.emplace_back(SF);<br>
   }<br>
   renderRoot(SourceFiles);<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CoverageExporterLcov.h b/llvm/tools/llvm-cov/CoverageExporterLcov.h<br>
index e8a260bf4937..0ffeb1111b8b 100644<br>
--- a/llvm/tools/llvm-cov/CoverageExporterLcov.h<br>
+++ b/llvm/tools/llvm-cov/CoverageExporterLcov.h<br>
@@ -24,7 +24,7 @@ class CoverageExporterLcov : public CoverageExporter {<br>
       : CoverageExporter(CoverageMapping, Options, OS) {}<br>
<br>
   /// Render the CoverageMapping object.<br>
-  void renderRoot(const CoverageFilters &IgnoreFilters) override;<br>
+  void renderRoot(const FilenameCoverageFilters &FilenameFilters) override;<br>
<br>
   /// Render the CoverageMapping object for specified source files.<br>
   void renderRoot(ArrayRef<std::string> SourceFiles) override;<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CoverageFilters.cpp b/llvm/tools/llvm-cov/CoverageFilters.cpp<br>
index ca241e386e87..57d8d5e5be28 100644<br>
--- a/llvm/tools/llvm-cov/CoverageFilters.cpp<br>
+++ b/llvm/tools/llvm-cov/CoverageFilters.cpp<br>
@@ -83,3 +83,20 @@ bool CoverageFiltersMatchAll::matches(<br>
   }<br>
   return true;<br>
 }<br>
+<br>
+bool FilenameCoverageFilters::matchesFilename(StringRef Filename) const {<br>
+  if (!Whitelist.empty() && !Whitelist.matchesFilename(Filename)) {<br>
+    return false;<br>
+  }<br>
+  return !Blacklist.matchesFilename(Filename);<br>
+}<br>
+<br>
+void FilenameCoverageFilters::whitelist(<br>
+    std::unique_ptr<CoverageFilter> Filter) {<br>
+  Whitelist.push_back(std::move(Filter));<br>
+}<br>
+<br>
+void FilenameCoverageFilters::blacklist(<br>
+    std::unique_ptr<CoverageFilter> Filter) {<br>
+  Blacklist.push_back(std::move(Filter));<br>
+}<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CoverageFilters.h b/llvm/tools/llvm-cov/CoverageFilters.h<br>
index ce56e1607111..26f8fcc0a0da 100644<br>
--- a/llvm/tools/llvm-cov/CoverageFilters.h<br>
+++ b/llvm/tools/llvm-cov/CoverageFilters.h<br>
@@ -152,6 +152,22 @@ class CoverageFiltersMatchAll : public CoverageFilters {<br>
                const coverage::FunctionRecord &Function) const override;<br>
 };<br>
<br>
+/// A collection of filters.<br>
+/// Matches filenames that are whitelisted and not blacklisted.<br>
+class FilenameCoverageFilters : public CoverageFilter {<br>
+protected:<br>
+  CoverageFilters Whitelist;<br>
+  CoverageFilters Blacklist;<br>
+<br>
+public:<br>
+<br>
+  void whitelist(std::unique_ptr<CoverageFilter> Filter);<br>
+  void blacklist(std::unique_ptr<CoverageFilter> Filter);<br>
+<br>
+  bool matchesFilename(StringRef Filename) const override;<br>
+};<br>
+<br>
+<br>
 } // namespace llvm<br>
<br>
 #endif // LLVM_COV_COVERAGEFILTERS_H<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CoverageReport.cpp b/llvm/tools/llvm-cov/CoverageReport.cpp<br>
index 82259542c597..805e465f99c1 100644<br>
--- a/llvm/tools/llvm-cov/CoverageReport.cpp<br>
+++ b/llvm/tools/llvm-cov/CoverageReport.cpp<br>
@@ -379,11 +379,11 @@ std::vector<FileCoverageSummary> CoverageReport::prepareFileReports(<br>
 }<br>
<br>
 void CoverageReport::renderFileReports(<br>
-    raw_ostream &OS, const CoverageFilters &IgnoreFilenameFilters) const {<br>
+    raw_ostream &OS, const FilenameCoverageFilters &FilenameFilters) const {<br>
   std::vector<std::string> UniqueSourceFiles;<br>
   for (StringRef SF : Coverage.getUniqueSourceFiles()) {<br>
-    // Apply ignore source files filters.<br>
-    if (!IgnoreFilenameFilters.matchesFilename(SF))<br>
+    // Apply source files filters.<br>
+    if (FilenameFilters.matchesFilename(SF))<br>
       UniqueSourceFiles.emplace_back(SF.str());<br>
   }<br>
   renderFileReports(OS, UniqueSourceFiles);<br>
<br>
diff  --git a/llvm/tools/llvm-cov/CoverageReport.h b/llvm/tools/llvm-cov/CoverageReport.h<br>
index f9a092f510b5..7290586f0a05 100644<br>
--- a/llvm/tools/llvm-cov/CoverageReport.h<br>
+++ b/llvm/tools/llvm-cov/CoverageReport.h<br>
@@ -53,7 +53,7 @@ class CoverageReport {<br>
<br>
   /// Render file reports for every unique file in the coverage mapping.<br>
   void renderFileReports(raw_ostream &OS,<br>
-                         const CoverageFilters &IgnoreFilenameFilters) const;<br>
+                         const FilenameCoverageFilters &FilenameFilters) const;<br>
<br>
   /// Render file reports for the files specified in \p Files.<br>
   void renderFileReports(raw_ostream &OS, ArrayRef<std::string> Files) const;<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>