[clang] Fix help string output for cl's `/experimental:deterministic` option. NFC (PR #207083)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 1 13:53:06 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Vladimir Vereschaka (vvereschaka)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/207083.diff
1 Files Affected:
- (modified) clang/include/clang/Options/Options.td (+1-1)
``````````diff
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__">;
``````````
</details>
https://github.com/llvm/llvm-project/pull/207083
More information about the cfe-commits
mailing list