[clang] [Clang][Docs] Fix #40293 Add help text to coverage flag (PR #77705)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 10 15:59:54 PST 2024


https://github.com/widberg created https://github.com/llvm/llvm-project/pull/77705

As raised in https://github.com/llvm/llvm-project/issues/40293 `--coverage` does not have help text so it does not show up in `--help`. If you have suggestions to improve the help text I am more than happy to integrate them.

>From cbc155397667dbb21aea98dea5a669a82122599a Mon Sep 17 00:00:00 2001
From: widberg <jaredwidberg at gmail.com>
Date: Wed, 10 Jan 2024 18:51:13 -0500
Subject: [PATCH] Add help text to coverage flag

---
 clang/include/clang/Driver/Options.td | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 19becba4a5ad83..bc40bfca412c6e 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -1112,7 +1112,8 @@ def config_user_dir_EQ : Joined<["--"], "config-user-dir=">,
   Visibility<[ClangOption, CLOption, DXCOption]>,
   HelpText<"User directory for configuration files">;
 def coverage : Flag<["-", "--"], "coverage">, Group<Link_Group>,
-  Visibility<[ClangOption, CLOption]>;
+  Visibility<[ClangOption, CLOption]>,
+  HelpText<"Compile with gcov code coverage">;
 def cpp_precomp : Flag<["-"], "cpp-precomp">, Group<clang_ignored_f_Group>;
 def current__version : JoinedOrSeparate<["-"], "current_version">;
 def cxx_isystem : JoinedOrSeparate<["-"], "cxx-isystem">, Group<clang_i_Group>,



More information about the cfe-commits mailing list