https://github.com/vvereschaka created 
https://github.com/llvm/llvm-project/pull/207083

The `clang-cl -help` command show the help string for 
`/experimental:deterministic` options with the default metavar name value that 
should not be:

  /experimental:deterministic<value>

This patch fixes this output and omits the `<value>` part for the option.

>From 1a27030ab7744901aa1fafa7b37902af53a5a55a Mon Sep 17 00:00:00 2001
From: Vladimir Vereschaka <[email protected]>
Date: Wed, 1 Jul 2026 12:48:46 -0700
Subject: [PATCH] Fix help string output for cl's `/experimental:deterministic`
 option. NFC

The `clang-cl -help` command show the help string for 
`/experimental:deterministic`
options with the default metavar name value that should not be:

  /experimental:deterministic<value>

This patch fixes this output and omits the `<value>` part for the option.
---
 clang/include/clang/Options/Options.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/Options/Options.td 
b/clang/include/clang/Options/Options.td
index 3a3952a4397be..7a0ca182be0a4 100644
--- a/clang/include/clang/Options/Options.td
+++ b/clang/include/clang/Options/Options.td
@@ -9400,7 +9400,7 @@ def : CLFlag<"Qgather-">, Alias<mno_gather>,
       HelpText<"Disable generation of gather instructions in 
auto-vectorization(x86 only)">;
 def : CLFlag<"Qscatter-">, Alias<mno_scatter>,
       HelpText<"Disable generation of scatter instructions in 
auto-vectorization(x86 only)">;
-def _SLASH_experimental_deterministic : CLJoined<"experimental:deterministic">,
+def _SLASH_experimental_deterministic : CLFlag<"experimental:deterministic">,
       HelpText<"Emit warnings on usage of non-deterministic macros __DATE__, 
__TIME__ and __TIMESTAMP__">;
 def _SLASH_d1nodatetime : CLFlag<"d1nodatetime">,
       HelpText<"Undefine the standard preprocessor macros __DATE__, __TIME__ 
and __TIMESTAMP__">;

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to