summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorMax Moroz <mmoroz@chromium.org>2018-04-09 15:20:35 +0000
committerMax Moroz <mmoroz@chromium.org>2018-04-09 15:20:35 +0000
commit4220f89107c49e7db2247e575263ccd752cdf442 (patch)
tree2af9607851ab1d140de7fccb0507b4ffab8f0de5 /llvm/docs/CommandGuide
parentea9773ac69389c6eac82384b3cf98ceb774ff740 (diff)
downloadbcm5719-llvm-4220f89107c49e7db2247e575263ccd752cdf442.tar.gz
bcm5719-llvm-4220f89107c49e7db2247e575263ccd752cdf442.zip
[llvm-cov] Implement -ignore-filename-regex= option for excluding source files.
Summary: The option is helpful for large projects where it's not feasible to specify sources which user would like to see in the report. Instead, it allows to black-list specific sources via regular expressions (e.g. now it's possible to skip all files that have "test" in its name). This also partially fixes https://bugs.llvm.org/show_bug.cgi?id=34277 Reviewers: vsk, morehouse, liaoyuke Reviewed By: vsk Subscribers: kcc, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D43907 llvm-svn: 329581
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/llvm-cov.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-cov.rst b/llvm/docs/CommandGuide/llvm-cov.rst
index 85c8dde6496..8e9c78c23a1 100644
--- a/llvm/docs/CommandGuide/llvm-cov.rst
+++ b/llvm/docs/CommandGuide/llvm-cov.rst
@@ -246,6 +246,10 @@ OPTIONS
Show code coverage only for functions that match the given regular expression.
+.. option:: -ignore-filename-regex=<PATTERN>
+
+ Skip source code files with file paths that match the given regular expression.
+
.. option:: -format=<FORMAT>
Use the specified output format. The supported formats are: "text", "html".
@@ -351,6 +355,10 @@ OPTIONS
Show statistics for all function instantiations. Defaults to false.
+.. option:: -ignore-filename-regex=<PATTERN>
+
+ Skip source code files with file paths that match the given regular expression.
+
.. program:: llvm-cov export
.. _llvm-cov-export:
@@ -390,3 +398,7 @@ OPTIONS
will not export coverage information for smaller units such as individual
functions or regions. The result will be the same as produced by :program:
`llvm-cov report` command, but presented in JSON format rather than text.
+
+.. option:: -ignore-filename-regex=<PATTERN>
+
+ Skip source code files with file paths that match the given regular expression.
OpenPOWER on IntegriCloud