@@ -52,21 +52,21 @@ class CLRemainingArgsJoined<string name> : Option<["/", "-"], name,
5252// already in the right group.)
5353
5454def _SLASH_Brepro : CLFlag<"Brepro">,
55- HelpText<"Emit an object file which can be reproduced over time ">,
55+ HelpText<"Do not write current time into COFF output (breaks link.exe /incremental) ">,
5656 Alias<mno_incremental_linker_compatible>;
5757def _SLASH_Brepro_ : CLFlag<"Brepro-">,
58- HelpText<"Emit an object file which cannot be reproduced over time ">,
58+ HelpText<"Write current time into COFF output (default) ">,
5959 Alias<mincremental_linker_compatible>;
6060def _SLASH_C : CLFlag<"C">,
61- HelpText<"Don't discard comments when preprocessing">, Alias<C>;
61+ HelpText<"Do not discard comments when preprocessing">, Alias<C>;
6262def _SLASH_c : CLFlag<"c">, HelpText<"Compile only">, Alias<c>;
6363def _SLASH_d1PP : CLFlag<"d1PP">,
6464 HelpText<"Retain macro definitions in /E mode">, Alias<dD>;
6565def _SLASH_d1reportAllClassLayout : CLFlag<"d1reportAllClassLayout">,
6666 HelpText<"Dump record layout information">,
67- Alias<Xclang>, AliasArgs<["-fdump-record-layouts"]>;
67+ Alias<Xclang>, AliasArgs<["-fdump-record-layouts"]>;
6868def _SLASH_diagnostics_caret : CLFlag<"diagnostics:caret">,
69- HelpText<"Enable caret and column diagnostics (on by default)">;
69+ HelpText<"Enable caret and column diagnostics (default)">;
7070def _SLASH_diagnostics_column : CLFlag<"diagnostics:column">,
7171 HelpText<"Disable caret diagnostics but keep column info">;
7272def _SLASH_diagnostics_classic : CLFlag<"diagnostics:classic">,
@@ -83,12 +83,14 @@ def _SLASH_fp_precise : CLFlag<"fp:precise">,
8383def _SLASH_fp_strict : CLFlag<"fp:strict">, HelpText<"">, Alias<fno_fast_math>;
8484def _SLASH_GA : CLFlag<"GA">, Alias<ftlsmodel_EQ>, AliasArgs<["local-exec"]>,
8585 HelpText<"Assume thread-local variables are defined in the executable">;
86- def _SLASH_GR : CLFlag<"GR">, HelpText<"Enable emission of RTTI data">;
87- def _SLASH_GR_ : CLFlag<"GR-">, HelpText<"Disable emission of RTTI data">;
88- def _SLASH_GF : CLIgnoredFlag<"GF">, HelpText<"Enable string pooling (default)">;
86+ def _SLASH_GR : CLFlag<"GR">, HelpText<"Emit RTTI data (default)">;
87+ def _SLASH_GR_ : CLFlag<"GR-">, HelpText<"Do not emit RTTI data">;
88+ def _SLASH_GF : CLIgnoredFlag<"GF">,
89+ HelpText<"Enable string pooling (default)">;
8990def _SLASH_GF_ : CLFlag<"GF-">, HelpText<"Disable string pooling">,
9091 Alias<fwritable_strings>;
91- def _SLASH_GS : CLFlag<"GS">, HelpText<"Enable buffer security check (default)">;
92+ def _SLASH_GS : CLFlag<"GS">,
93+ HelpText<"Enable buffer security check (default)">;
9294def _SLASH_GS_ : CLFlag<"GS-">, HelpText<"Disable buffer security check">;
9395def : CLFlag<"Gs">, HelpText<"Use stack probes (default)">,
9496 Alias<mstack_probe_size>, AliasArgs<["4096"]>;
@@ -97,12 +99,12 @@ def _SLASH_Gs : CLJoined<"Gs">,
9799def _SLASH_Gy : CLFlag<"Gy">, HelpText<"Put each function in its own section">,
98100 Alias<ffunction_sections>;
99101def _SLASH_Gy_ : CLFlag<"Gy-">,
100- HelpText<"Don't put each function in its own section (default)">,
102+ HelpText<"Do not put each function in its own section (default)">,
101103 Alias<fno_function_sections>;
102104def _SLASH_Gw : CLFlag<"Gw">, HelpText<"Put each data item in its own section">,
103105 Alias<fdata_sections>;
104106def _SLASH_Gw_ : CLFlag<"Gw-">,
105- HelpText<"Don't put each data item in its own section">,
107+ HelpText<"Do not put each data item in its own section (default) ">,
106108 Alias<fno_data_sections>;
107109def _SLASH_help : CLFlag<"help">, Alias<help>,
108110 HelpText<"Display available options">;
@@ -121,13 +123,13 @@ def _SLASH_O : CLJoined<"O">,
121123// FIXME: Not sure why we have -O0 here; MSVC doesn't support that.
122124def : CLFlag<"O0">, Alias<O0>, HelpText<"Disable optimization">;
123125def : CLFlag<"O1">, Alias<_SLASH_O>, AliasArgs<["1"]>,
124- HelpText<"Optimize for size (same as /Og /Os /Oy /Ob2 /GF /Gy)">;
126+ HelpText<"Optimize for size (like /Og /Os /Oy /Ob2 /GF /Gy)">;
125127def : CLFlag<"O2">, Alias<_SLASH_O>, AliasArgs<["2"]>,
126- HelpText<"Optimize for speed (same as /Og /Oi /Ot /Oy /Ob2 /GF /Gy)">;
128+ HelpText<"Optimize for speed (like /Og /Oi /Ot /Oy /Ob2 /GF /Gy)">;
127129def : CLFlag<"Ob0">, Alias<_SLASH_O>, AliasArgs<["b0"]>,
128130 HelpText<"Disable function inlining">;
129131def : CLFlag<"Ob1">, Alias<_SLASH_O>, AliasArgs<["b1"]>,
130- HelpText<"Only inline functions which are ( explicitly or implicitly) marked inline">;
132+ HelpText<"Only inline functions explicitly or implicitly marked inline">;
131133def : CLFlag<"Ob2">, Alias<_SLASH_O>, AliasArgs<["b2"]>,
132134 HelpText<"Inline functions as deemed beneficial by the compiler">;
133135def : CLFlag<"Od">, Alias<_SLASH_O>, AliasArgs<["d"]>,
@@ -143,7 +145,7 @@ def : CLFlag<"Os">, Alias<_SLASH_O>, AliasArgs<["s"]>,
143145def : CLFlag<"Ot">, Alias<_SLASH_O>, AliasArgs<["t"]>,
144146 HelpText<"Optimize for speed">;
145147def : CLFlag<"Ox">, Alias<_SLASH_O>, AliasArgs<["x"]>,
146- HelpText<"Deprecated (same as /Og /Oi /Ot /Oy /Ob2); use /O2 instead ">;
148+ HelpText<"Deprecated (like /Og /Oi /Ot /Oy /Ob2); use /O2">;
147149def : CLFlag<"Oy">, Alias<_SLASH_O>, AliasArgs<["y"]>,
148150 HelpText<"Enable frame pointer omission (x86 only)">;
149151def : CLFlag<"Oy-">, Alias<_SLASH_O>, AliasArgs<["y-"]>,
@@ -161,13 +163,15 @@ def _SLASH_showIncludes : CLFlag<"showIncludes">,
161163def _SLASH_showFilenames : CLFlag<"showFilenames">,
162164 HelpText<"Print the name of each compiled file">;
163165def _SLASH_showFilenames_ : CLFlag<"showFilenames-">,
164- HelpText<"Don't print the name of each compiled file (default)">;
166+ HelpText<"Do not print the name of each compiled file (default)">;
165167def _SLASH_source_charset : CLCompileJoined<"source-charset:">,
166- HelpText<"Source encoding, supports only UTF-8">, Alias<finput_charset_EQ>;
168+ HelpText<"Set source encoding, supports only UTF-8">,
169+ Alias<finput_charset_EQ>;
167170def _SLASH_execution_charset : CLCompileJoined<"execution-charset:">,
168- HelpText<"Runtime encoding, supports only UTF-8">, Alias<fexec_charset_EQ>;
171+ HelpText<"Set runtime encoding, supports only UTF-8">,
172+ Alias<fexec_charset_EQ>;
169173def _SLASH_std : CLCompileJoined<"std:">,
170- HelpText<"Language standard to compile for (c++14,c++17,c++latest)">;
174+ HelpText<"Set C++ version (c++14,c++17,c++latest)">;
171175def _SLASH_U : CLJoinedOrSeparate<"U">, HelpText<"Undefine macro">,
172176 MetaVarName<"<macro>">, Alias<U>;
173177def _SLASH_validate_charset : CLFlag<"validate-charset">,
@@ -183,7 +187,8 @@ def _SLASH_Wall : CLFlag<"Wall">, HelpText<"Enable -Weverything">,
183187 Alias<W_Joined>, AliasArgs<["everything"]>;
184188def _SLASH_WX : CLFlag<"WX">, HelpText<"Treat warnings as errors">,
185189 Alias<W_Joined>, AliasArgs<["error"]>;
186- def _SLASH_WX_ : CLFlag<"WX-">, HelpText<"Do not treat warnings as errors">,
190+ def _SLASH_WX_ : CLFlag<"WX-">,
191+ HelpText<"Do not treat warnings as errors (default)">,
187192 Alias<W_Joined>, AliasArgs<["no-error"]>;
188193def _SLASH_w_flag : CLFlag<"w">, HelpText<"Disable all warnings">, Alias<w>;
189194def _SLASH_wd4005 : CLFlag<"wd4005">, Alias<W_Joined>,
@@ -199,8 +204,7 @@ def _SLASH_wd4996 : CLFlag<"wd4996">, Alias<W_Joined>,
199204def _SLASH_vd : CLJoined<"vd">, HelpText<"Control vtordisp placement">,
200205 Alias<vtordisp_mode_EQ>;
201206def _SLASH_X : CLFlag<"X">,
202- HelpText<"Don't add %INCLUDE% to the include search path">,
203- Alias<nostdlibinc>;
207+ HelpText<"Do not add %INCLUDE% to include search path">, Alias<nostdlibinc>;
204208def _SLASH_Zc_sizedDealloc : CLFlag<"Zc:sizedDealloc">,
205209 HelpText<"Enable C++14 sized global deallocation functions">,
206210 Alias<fsized_deallocation>;
@@ -236,19 +240,19 @@ def _SLASH_Zc_twoPhase : CLFlag<"Zc:twoPhase">,
236240 HelpText<"Enable two-phase name lookup in templates">,
237241 Alias<fno_delayed_template_parsing>;
238242def _SLASH_Zc_twoPhase_ : CLFlag<"Zc:twoPhase-">,
239- HelpText<"Disable two-phase name lookup in templates">,
243+ HelpText<"Disable two-phase name lookup in templates (default) ">,
240244 Alias<fdelayed_template_parsing>;
241245def _SLASH_Z7 : CLFlag<"Z7">,
242246 HelpText<"Enable CodeView debug information in object files">;
243247def _SLASH_Zd : CLFlag<"Zd">,
244248 HelpText<"Emit debug line number tables only">;
245249def _SLASH_Zi : CLFlag<"Zi">, Alias<_SLASH_Z7>,
246- HelpText<"Alias for /Z7. Does not produce PDBs. ">;
250+ HelpText<"Like /Z7">;
247251def _SLASH_Zp : CLJoined<"Zp">,
248- HelpText<"Specify the default maximum struct packing alignment">,
252+ HelpText<"Set default maximum struct packing alignment">,
249253 Alias<fpack_struct_EQ>;
250254def _SLASH_Zp_flag : CLFlag<"Zp">,
251- HelpText<"Set the default maximum struct packing alignment to 1">,
255+ HelpText<"Set default maximum struct packing alignment to 1">,
252256 Alias<fpack_struct_EQ>, AliasArgs<["1"]>;
253257def _SLASH_Zs : CLFlag<"Zs">, HelpText<"Syntax-check only">,
254258 Alias<fsyntax_only>;
@@ -263,35 +267,35 @@ def _SLASH_M_Group : OptionGroup<"</M group>">, Group<cl_compile_Group>;
263267def _SLASH_volatile_Group : OptionGroup<"</volatile group>">,
264268 Group<cl_compile_Group>;
265269
266- def _SLASH_EH : CLJoined<"EH">, HelpText<"Exception handling model">;
270+ def _SLASH_EH : CLJoined<"EH">, HelpText<"Set exception handling model">;
267271def _SLASH_EP : CLFlag<"EP">,
268272 HelpText<"Disable linemarker output and preprocess to stdout">;
269273def _SLASH_FA : CLFlag<"FA">,
270274 HelpText<"Output assembly code file during compilation">;
271275def _SLASH_Fa : CLJoined<"Fa">,
272- HelpText<"Output assembly code to this file during compilation (with /FA)">,
273- MetaVarName<"<file or directory >">;
276+ HelpText<"Set assembly output file name (with /FA)">,
277+ MetaVarName<"<file or dir/ >">;
274278def _SLASH_fallback : CLCompileFlag<"fallback">,
275279 HelpText<"Fall back to cl.exe if clang-cl fails to compile">;
276280def _SLASH_FI : CLJoinedOrSeparate<"FI">,
277281 HelpText<"Include file before parsing">, Alias<include_>;
278282def _SLASH_Fe : CLJoined<"Fe">,
279- HelpText<"Set output executable file or directory (ends in / or \\) ">,
280- MetaVarName<"<file or directory >">;
283+ HelpText<"Set output executable file name ">,
284+ MetaVarName<"<file or dir/ >">;
281285def _SLASH_Fi : CLCompileJoined<"Fi">,
282286 HelpText<"Set preprocess output file name (with /P)">,
283287 MetaVarName<"<file>">;
284288def _SLASH_Fo : CLCompileJoined<"Fo">,
285- HelpText<"Set output object file, or directory (ends in / or \\) (with /c)">,
286- MetaVarName<"<file or directory >">;
289+ HelpText<"Set output object file (with /c)">,
290+ MetaVarName<"<file or dir/ >">;
287291def _SLASH_guard : CLJoined<"guard:">,
288292 HelpText<"Enable Control Flow Guard with /guard:cf, or only the table with /guard:cf,nochecks">;
289293def _SLASH_GX : CLFlag<"GX">,
290- HelpText<"Enable exception handling ">;
294+ HelpText<"Deprecated; use /EHsc ">;
291295def _SLASH_GX_ : CLFlag<"GX-">,
292- HelpText<"Disable exception handling ">;
296+ HelpText<"Deprecated (like not passing /EH) ">;
293297def _SLASH_imsvc : CLJoinedOrSeparate<"imsvc">,
294- HelpText<"Add directory to system include search path, as if part of %INCLUDE%">,
298+ HelpText<"Add <dir> to system include search path, as if in %INCLUDE%">,
295299 MetaVarName<"<dir>">;
296300def _SLASH_LD : CLFlag<"LD">, HelpText<"Create DLL">;
297301def _SLASH_LDd : CLFlag<"LDd">, HelpText<"Create debug DLL">;
@@ -306,14 +310,14 @@ def _SLASH_MT : Option<["/", "-"], "MT", KIND_FLAG>, Group<_SLASH_M_Group>,
306310def _SLASH_MTd : Option<["/", "-"], "MTd", KIND_FLAG>, Group<_SLASH_M_Group>,
307311 Flags<[CLOption, DriverOption]>, HelpText<"Use static debug run-time">;
308312def _SLASH_o : CLJoinedOrSeparate<"o">,
309- HelpText<"Set output file or directory (ends in / or \\) ">,
310- MetaVarName<"<file or directory >">;
313+ HelpText<"Deprecated (set output file name); use /Fe or /Fe ">,
314+ MetaVarName<"<file or dir/ >">;
311315def _SLASH_P : CLFlag<"P">, HelpText<"Preprocess to file">;
312316def _SLASH_Tc : CLCompileJoinedOrSeparate<"Tc">,
313- HelpText<"Specify a C source file">, MetaVarName<"<filename >">;
317+ HelpText<"Treat <file> as C source file">, MetaVarName<"<file >">;
314318def _SLASH_TC : CLCompileFlag<"TC">, HelpText<"Treat all source files as C">;
315319def _SLASH_Tp : CLCompileJoinedOrSeparate<"Tp">,
316- HelpText<"Specify a C++ source file">, MetaVarName<"<filename >">;
320+ HelpText<"Treat <file> as C++ source file">, MetaVarName<"<file >">;
317321def _SLASH_TP : CLCompileFlag<"TP">, HelpText<"Treat all source files as C++">;
318322def _SLASH_volatile_iso : Option<["/", "-"], "volatile:iso", KIND_FLAG>,
319323 Group<_SLASH_volatile_Group>, Flags<[CLOption, DriverOption]>,
@@ -336,7 +340,7 @@ def _SLASH_volatile_ms : Option<["/", "-"], "volatile:ms", KIND_FLAG>,
336340def _SLASH_clang : CLJoined<"clang:">,
337341 HelpText<"Pass <arg> to the clang driver">, MetaVarName<"<arg>">;
338342def _SLASH_Zl : CLFlag<"Zl">,
339- HelpText<"Don't mention any default libraries in the object file ">;
343+ HelpText<"Do not let object file auto-link default libraries ">;
340344
341345def _SLASH_Yc : CLJoined<"Yc">,
342346 HelpText<"Generate a pch file for all code up to and including <filename>">,
@@ -350,9 +354,9 @@ def _SLASH_Y_ : CLFlag<"Y-">,
350354def _SLASH_Zc_dllexportInlines : CLFlag<"Zc:dllexportInlines">,
351355 HelpText<"dllexport/dllimport inline member functions of dllexport/import classes (default)">;
352356def _SLASH_Zc_dllexportInlines_ : CLFlag<"Zc:dllexportInlines-">,
353- HelpText<"Don't dllexport/dllimport inline member functions of dllexport/import classes">;
357+ HelpText<"Do not dllexport/dllimport inline member functions of dllexport/import classes">;
354358def _SLASH_Fp : CLJoined<"Fp">,
355- HelpText<"Set pch filename (with /Yc and /Yu)">, MetaVarName<"<filename >">;
359+ HelpText<"Set pch file name (with /Yc and /Yu)">, MetaVarName<"<file >">;
356360
357361def _SLASH_Gd : CLFlag<"Gd">,
358362 HelpText<"Set __cdecl as a default calling convention">;
0 commit comments