From: Vedant Kumar Date: Thu, 4 Aug 2016 18:00:42 +0000 (+0000) Subject: [llvm-cov] Add some documentation for the -tab-size option X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad547d361e8c7a3ad645fa09433842979deae9e1;p=platform%2Fupstream%2Fllvm.git [llvm-cov] Add some documentation for the -tab-size option Also, un-hide the cl::opt. llvm-svn: 277741 --- diff --git a/llvm/docs/CommandGuide/llvm-cov.rst b/llvm/docs/CommandGuide/llvm-cov.rst index 4317126..3542489 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= + + Replace tabs with 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 2853867..6d7c7ae 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 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)