Author: Vladimir Vereschaka
Date: 2026-08-22T09:15:04-07:00
New Revision: 505bb64833c0b69270baacfb98c2f4429e98075f

URL: 
https://github.com/llvm/llvm-project/commit/505bb64833c0b69270baacfb98c2f4429e98075f
DIFF: 
https://github.com/llvm/llvm-project/commit/505bb64833c0b69270baacfb98c2f4429e98075f.diff

LOG: [clang-cl] Fix help string output for `/experimental:deterministic` 
option. NFC (#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.

Added: 
    

Modified: 
    clang/include/clang/Options/Options.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Options/Options.td 
b/clang/include/clang/Options/Options.td
index a5be26fdf0dce..eb5a009b5628c 100644
--- a/clang/include/clang/Options/Options.td
+++ b/clang/include/clang/Options/Options.td
@@ -9575,7 +9575,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