[PATCH] D30361: [sancov] extending sancov --help documentation

Mike Aizatsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 16:07:03 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL296205: [sancov] extending sancov --help documentation (authored by aizatsky).

Changed prior to commit:
  https://reviews.llvm.org/D30361?vs=89744&id=89745#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D30361

Files:
  llvm/trunk/tools/sancov/sancov.cc


Index: llvm/trunk/tools/sancov/sancov.cc
===================================================================
--- llvm/trunk/tools/sancov/sancov.cc
+++ llvm/trunk/tools/sancov/sancov.cc
@@ -96,7 +96,8 @@
 
 static cl::list<std::string>
     ClInputFiles(cl::Positional, cl::OneOrMore,
-                 cl::desc("(<binary file>|<.sancov file>)..."));
+                 cl::desc("<action> <binary files...> <.sancov files...> "
+                          "<.symcov files...>"));
 
 static cl::opt<bool> ClDemangle("demangle", cl::init(true),
                                 cl::desc("Print demangled function name."));
@@ -1200,7 +1201,17 @@
   llvm::InitializeAllTargetMCs();
   llvm::InitializeAllDisassemblers();
 
-  cl::ParseCommandLineOptions(Argc, Argv, "Sanitizer Coverage Processing Tool");
+  cl::ParseCommandLineOptions(Argc, Argv, 
+      "Sanitizer Coverage Processing Tool (sancov)\n\n"
+      "  This tool can extract various coverage-related information from: \n"
+      "  coverage-instrumented binary files, raw .sancov files and their "
+      "symbolized .symcov version.\n"
+      "  Depending on chosen action the tool expects different input files:\n"
+      "    -print-coverage-pcs     - coverage-instrumented binary files\n"
+      "    -print-coverage         - .sancov files\n"
+      "    <other actions>         - .sancov files & corresponding binary "
+      "files, .symcov files\n"
+      );
 
   // -print doesn't need object files.
   if (Action == PrintAction) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30361.89745.patch
Type: text/x-patch
Size: 1498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170225/2dd6375a/attachment.bin>


More information about the llvm-commits mailing list