summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/docs/CommandGuide/llvm-cov.rst5
-rw-r--r--llvm/tools/llvm-cov/CodeCoverage.cpp5
2 files changed, 8 insertions, 2 deletions
diff --git a/llvm/docs/CommandGuide/llvm-cov.rst b/llvm/docs/CommandGuide/llvm-cov.rst
index 4317126bdd8..35424890f51 100644
--- a/llvm/docs/CommandGuide/llvm-cov.rst
+++ b/llvm/docs/CommandGuide/llvm-cov.rst
@@ -241,6 +241,11 @@ OPTIONS
Use the specified output format. The supported formats are: "text", "html".
+.. option:: -tab-size=<TABSIZE>
+
+ Replace tabs with <TABSIZE> spaces when preparing reports. Currently, this is
+ only supported for the html format.
+
.. option:: -output-dir=PATH
Specify a directory to write coverage reports into. If the directory does not
diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp
index 2853867aafb..6d7c7aef44e 100644
--- a/llvm/tools/llvm-cov/CodeCoverage.cpp
+++ b/llvm/tools/llvm-cov/CodeCoverage.cpp
@@ -585,8 +585,9 @@ int CodeCoverageTool::show(int argc, const char **argv,
cl::aliasopt(ShowOutputDirectory));
cl::opt<uint32_t> TabSize(
- "tab-size", cl::Hidden, cl::init(2),
- cl::desc("Set tab size for the HTML coverage report (default = 2)"));
+ "tab-size", cl::init(2),
+ cl::desc(
+ "Set tab expansion size for html coverage reports (default = 2)"));
auto Err = commandLineParser(argc, argv);
if (Err)
OpenPOWER on IntegriCloud