diff options
author | Sean Eveson <eveson.sean@gmail.com> | 2017-08-14 10:20:12 +0000 |
---|---|---|
committer | Sean Eveson <eveson.sean@gmail.com> | 2017-08-14 10:20:12 +0000 |
commit | 8574d59a97c4296279b37de66ba392671c598464 (patch) | |
tree | 9458513cab30efd3dcc4350ff183e6272a87489e /docs/CommandGuide | |
parent | 0028f6a87224fb595a1c19c544cde9b003035996 (diff) |
[llvm-cov] Add an option which maps the location of source directories on another machine to your local copies
Summary:
This patch adds the -path-equivalence option (example: llvm-cov show -path-equivalence=/origin/path,/local/path) which maps the source code path from one machine to another when using `llvm-cov show`. This is similar to the -filename-equivalence option, but doesn't require you to specify all the source files on the command line.
This allows you to generate the coverage data on one machine (e.g. in a CI system), and then use llvm-cov on another machine where you have the same code base on a different path.
Reviewers: vsk
Reviewed By: vsk
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D36391
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide')
-rw-r--r-- | docs/CommandGuide/llvm-cov.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/CommandGuide/llvm-cov.rst b/docs/CommandGuide/llvm-cov.rst index 97064c82cf4a..082f51037516 100644 --- a/docs/CommandGuide/llvm-cov.rst +++ b/docs/CommandGuide/llvm-cov.rst @@ -290,6 +290,12 @@ OPTIONS Show code coverage only for functions with region coverage less than the given threshold. +.. option:: -path-equivalence=<from>,<to> + + Map the paths in the coverage data to local source file paths. This allows you + to generate the coverage data on one machine, and then use llvm-cov on a + different machine where you have the same files on a different path. + .. program:: llvm-cov report .. _llvm-cov-report: |