[clang] [NFC][clang][Driver] Specify options for <arg> with -save-temps=<arg> (PR #80921)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 7 12:41:47 PST 2024


================
@@ -5392,7 +5392,9 @@ def regcall4 : Flag<["-"], "regcall4">, Group<m_Group>,
   MarshallingInfoFlag<LangOpts<"RegCall4">>;
 def save_temps_EQ : Joined<["-", "--"], "save-temps=">, Flags<[NoXarchOption]>,
   Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>,
-  HelpText<"Save intermediate compilation results.">;
+  HelpText<"Save intermediate compilation results. The <arg> option can be set "
----------------
MaskRay wrote:

`<arg>` is an argument, not an option, but it is unnecessary to mention it is an argument.

`<arg> can be set to 'cwd' for ..., or 'obj' ...`

https://github.com/llvm/llvm-project/pull/80921


More information about the cfe-commits mailing list