From 4220f89107c49e7db2247e575263ccd752cdf442 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Mon, 9 Apr 2018 15:20:35 +0000 Subject: [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 --- llvm/docs/CommandGuide/llvm-cov.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'llvm/docs/CommandGuide/llvm-cov.rst') 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= + + Skip source code files with file paths that match the given regular expression. + .. option:: -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= + + 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= + + Skip source code files with file paths that match the given regular expression. -- cgit v1.2.3