[llvm-cov] Add option to whitelist filenames
authorVedant Kumar <vsk@apple.com>
Tue, 29 Oct 2019 22:47:23 +0000 (15:47 -0700)
committerVedant Kumar <vsk@apple.com>
Wed, 30 Oct 2019 01:26:33 +0000 (18:26 -0700)
commitbfed824b57d14e2ba98ddbaf1a1410cf04a3e279
treeef8dc4694911d21ef423ad7c023fb4997b541be9
parent3b982b11f4e7c45c59ff80136efab7c116313e98
[llvm-cov] Add option to whitelist filenames

Add the `-whitelist-filename-regex` option to restrict coverage
reporting to file paths that match a whitelist regex.

Patch by Michael Daniels!

rdar://56720320
12 files changed:
llvm/docs/CommandGuide/llvm-cov.rst
llvm/test/tools/llvm-cov/whitelist-filename-regex.test [new file with mode: 0644]
llvm/tools/llvm-cov/CodeCoverage.cpp
llvm/tools/llvm-cov/CoverageExporter.h
llvm/tools/llvm-cov/CoverageExporterJson.cpp
llvm/tools/llvm-cov/CoverageExporterJson.h
llvm/tools/llvm-cov/CoverageExporterLcov.cpp
llvm/tools/llvm-cov/CoverageExporterLcov.h
llvm/tools/llvm-cov/CoverageFilters.cpp
llvm/tools/llvm-cov/CoverageFilters.h
llvm/tools/llvm-cov/CoverageReport.cpp
llvm/tools/llvm-cov/CoverageReport.h