summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-07-28 23:18:48 +0000
committerVedant Kumar <vsk@apple.com>2016-07-28 23:18:48 +0000
commitc15796190b8351e09cf5fd2ec7202f42958e2df9 (patch)
tree77a0b63f42d1c993d4b17ca07a077da07fe3d996
parent1148c92bdb10ac42c543363b7ed587a1950a5e20 (diff)
downloadclang-c15796190b8351e09cf5fd2ec7202f42958e2df9.tar.gz
[docs] Mention some new options in llvm-cov
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277080 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/SourceBasedCodeCoverage.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/SourceBasedCodeCoverage.rst b/docs/SourceBasedCodeCoverage.rst
index 8d0a51fd33..b56675da73 100644
--- a/docs/SourceBasedCodeCoverage.rst
+++ b/docs/SourceBasedCodeCoverage.rst
@@ -111,11 +111,11 @@ generate a line-oriented report:
# Step 3(b): Create a line-oriented coverage report.
% llvm-cov show ./foo -instr-profile=foo.profdata
-To demangle any C++ identifiers in the output, use:
+To generate the same report in html with demangling turned on, use:
.. code-block:: console
- % llvm-cov show ./foo -instr-profile=foo.profdata | c++filt -n
+ % llvm-cov show ./foo -instr-profile=foo.profdata -format html -Xdemangler c++filt -Xdemangler -n
This report includes a summary view as well as dedicated sub-views for
templated functions and their instantiations. For our example program, we get
@@ -152,11 +152,11 @@ of a line-oriented report) with:
# Step 3(c): Create a coverage summary.
% llvm-cov report ./foo -instr-profile=foo.profdata
- Filename Regions Miss Cover Functions Executed
- -----------------------------------------------------------------------
- /tmp/foo.cc 13 0 100.00% 3 100.00%
- -----------------------------------------------------------------------
- TOTAL 13 0 100.00% 3 100.00%
+ Filename Regions Missed Regions Cover Functions Missed Functions Executed Lines Missed Lines Cover
+ --------------------------------------------------------------------------------------------------------------------------------------
+ /tmp/foo.cc 13 0 100.00% 3 0 100.00% 13 0 100.00%
+ --------------------------------------------------------------------------------------------------------------------------------------
+ TOTAL 13 0 100.00% 3 0 100.00% 13 0 100.00%
A few final notes: