summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/CoverageReport.cpp
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vtsyrklevich@google.com>2019-10-29 22:38:38 -0700
committerVlad Tsyrklevich <vtsyrklevich@google.com>2019-10-29 22:38:38 -0700
commit8d24d72f7f8b7a111f96510fc6d62b05bfb7dbec (patch)
tree1967037d3a23397aa6189e91fccfd06675d83174 /llvm/tools/llvm-cov/CoverageReport.cpp
parentbaff8ec2e1d845d90580a0d85ad6ab43d929bcfe (diff)
downloadbcm5719-llvm-8d24d72f7f8b7a111f96510fc6d62b05bfb7dbec.tar.gz
bcm5719-llvm-8d24d72f7f8b7a111f96510fc6d62b05bfb7dbec.zip
Revert "[llvm-cov] Add option to whitelist filenames"
This reverts commit bfed824b57d14e2ba98ddbaf1a1410cf04a3e279, the included test fails on many bots including the sanitier bots, e.g. in http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/36140
Diffstat (limited to 'llvm/tools/llvm-cov/CoverageReport.cpp')
-rw-r--r--llvm/tools/llvm-cov/CoverageReport.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-cov/CoverageReport.cpp b/llvm/tools/llvm-cov/CoverageReport.cpp
index 805e465f99c..82259542c59 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 FilenameCoverageFilters &FilenameFilters) const {
+ raw_ostream &OS, const CoverageFilters &IgnoreFilenameFilters) const {
std::vector<std::string> UniqueSourceFiles;
for (StringRef SF : Coverage.getUniqueSourceFiles()) {
- // Apply source files filters.
- if (FilenameFilters.matchesFilename(SF))
+ // Apply ignore source files filters.
+ if (!IgnoreFilenameFilters.matchesFilename(SF))
UniqueSourceFiles.emplace_back(SF.str());
}
renderFileReports(OS, UniqueSourceFiles);
OpenPOWER on IntegriCloud