[llvm] r277741 - [llvm-cov] Add some documentation for the -tab-size option

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 4 11:00:42 PDT 2016


Author: vedantk
Date: Thu Aug  4 13:00:42 2016
New Revision: 277741

URL: http://llvm.org/viewvc/llvm-project?rev=277741&view=rev
Log:
[llvm-cov] Add some documentation for the -tab-size option

Also, un-hide the cl::opt.

Modified:
    llvm/trunk/docs/CommandGuide/llvm-cov.rst
    llvm/trunk/tools/llvm-cov/CodeCoverage.cpp

Modified: llvm/trunk/docs/CommandGuide/llvm-cov.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CommandGuide/llvm-cov.rst?rev=277741&r1=277740&r2=277741&view=diff
==============================================================================
--- llvm/trunk/docs/CommandGuide/llvm-cov.rst (original)
+++ llvm/trunk/docs/CommandGuide/llvm-cov.rst Thu Aug  4 13:00:42 2016
@@ -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

Modified: llvm/trunk/tools/llvm-cov/CodeCoverage.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/CodeCoverage.cpp?rev=277741&r1=277740&r2=277741&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/CodeCoverage.cpp (original)
+++ llvm/trunk/tools/llvm-cov/CodeCoverage.cpp Thu Aug  4 13:00:42 2016
@@ -585,8 +585,9 @@ int CodeCoverageTool::show(int argc, con
                                  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)




More information about the llvm-commits mailing list