summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-06-28 02:09:39 +0000
committerVedant Kumar <vsk@apple.com>2016-06-28 02:09:39 +0000
commit7937ef37969f7d46d8626e2b61a6ae8361afbea6 (patch)
treeda524077905d16803c53d68fc50823be5f352880 /llvm/docs/CommandGuide
parent9980075133ceec5746318ba133a1b09cffebd6ee (diff)
downloadbcm5719-llvm-7937ef37969f7d46d8626e2b61a6ae8361afbea6.tar.gz
bcm5719-llvm-7937ef37969f7d46d8626e2b61a6ae8361afbea6.zip
Reapply "[llvm-cov] Add an -output-dir option for the show sub-command""
Passing -output-dir path/to/dir to llvm-cov show creates path/to/dir if it doesn't already exist, and prints reports into that directory. In function view mode, all views are written into path/to/dir/functions.$EXTENSION. In file view mode, all views are written into path/to/dir/coverage/$PATH.$EXTENSION. Changes since the initial commit: - Avoid accidentally closing stdout twice. llvm-svn: 273985
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/llvm-cov.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-cov.rst b/llvm/docs/CommandGuide/llvm-cov.rst
index 8e2806b0c61..35a7a036456 100644
--- a/llvm/docs/CommandGuide/llvm-cov.rst
+++ b/llvm/docs/CommandGuide/llvm-cov.rst
@@ -240,6 +240,14 @@ OPTIONS
Use the specified output format. The supported formats are: "text".
+.. option:: -output-dir=PATH
+
+ Specify a directory to write coverage reports into. If the directory does not
+ exist, it is created. When used in function view mode (i.e when -name or
+ -name-regex are used to select specific functions), the report is written to
+ PATH/functions.EXTENSION. When used in file view mode, a report for each file
+ is written to PATH/REL_PATH_TO_FILE.EXTENSION.
+
.. option:: -line-coverage-gt=<N>
Show code coverage only for functions with line coverage greater than the
OpenPOWER on IntegriCloud