diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 |
| commit | eb11fae6d08f479c0799db45860a98af528fa6e7 (patch) | |
| tree | 44d492a50c8c1a7eb8e2d17ea3360ec4d066f042 /docs/CommandGuide/llvm-cov.rst | |
| parent | b8a2042aa938069e862750553db0e4d82d25822c (diff) | |
Notes
Diffstat (limited to 'docs/CommandGuide/llvm-cov.rst')
| -rw-r--r-- | docs/CommandGuide/llvm-cov.rst | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/docs/CommandGuide/llvm-cov.rst b/docs/CommandGuide/llvm-cov.rst index 478ba0fb15e0..6f1b6e46c48a 100644 --- a/docs/CommandGuide/llvm-cov.rst +++ b/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". @@ -323,8 +327,8 @@ the binaries *BIN*,... using the profile data *PROFILE*. It can optionally be filtered to only show the coverage for the files listed in *SOURCES*. If no source files are provided, a summary line is printed for each file in the -coverage data. If any files are provided, summaries are shown for each function -in the listed files instead. +coverage data. If any files are provided, summaries can be shown for each +function in the listed files if the ``-show-functions`` option is enabled. For information on compiling programs for coverage and generating profile data, see :ref:`llvm-cov-show`. @@ -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: @@ -361,14 +369,15 @@ EXPORT COMMAND SYNOPSIS ^^^^^^^^ -:program:`llvm-cov export` [*options*] -instr-profile *PROFILE* *BIN* [*-object BIN,...*] [[*-object BIN*]] +:program:`llvm-cov export` [*options*] -instr-profile *PROFILE* *BIN* [*-object BIN,...*] [[*-object BIN*]] [*SOURCES*] DESCRIPTION ^^^^^^^^^^^ The :program:`llvm-cov export` command exports regions, functions, expansions, and summaries of the coverage of the binaries *BIN*,... using the profile data -*PROFILE* as JSON. +*PROFILE* as JSON. It can optionally be filtered to only export the coverage +for the files listed in *SOURCES*. For information on compiling programs for coverage and generating profile data, see :ref:`llvm-cov-show`. @@ -389,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. |
