]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/clang/include/clang/Driver/CLCompatOptions.td
Update to bmake-20200710
[FreeBSD/FreeBSD.git] / contrib / llvm-project / clang / include / clang / Driver / CLCompatOptions.td
1 //===--- CLCompatOptions.td - Options for clang-cl ------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 //  This file defines the options accepted by clang-cl.
10 //
11 //===----------------------------------------------------------------------===//
12
13 def cl_Group : OptionGroup<"<clang-cl options>">, Flags<[CLOption]>,
14   HelpText<"CL.EXE COMPATIBILITY OPTIONS">;
15
16 def cl_compile_Group : OptionGroup<"<clang-cl compile-only options>">,
17   Group<cl_Group>;
18
19 def cl_ignored_Group : OptionGroup<"<clang-cl ignored options>">,
20   Group<cl_Group>;
21
22 class CLFlag<string name> : Option<["/", "-"], name, KIND_FLAG>,
23   Group<cl_Group>, Flags<[CLOption, DriverOption]>;
24
25 class CLCompileFlag<string name> : Option<["/", "-"], name, KIND_FLAG>,
26   Group<cl_compile_Group>, Flags<[CLOption, DriverOption]>;
27
28 class CLIgnoredFlag<string name> : Option<["/", "-"], name, KIND_FLAG>,
29   Group<cl_ignored_Group>, Flags<[CLOption, DriverOption]>;
30
31 class CLJoined<string name> : Option<["/", "-"], name, KIND_JOINED>,
32   Group<cl_Group>, Flags<[CLOption, DriverOption]>;
33
34 class CLCompileJoined<string name> : Option<["/", "-"], name, KIND_JOINED>,
35   Group<cl_compile_Group>, Flags<[CLOption, DriverOption]>;
36
37 class CLIgnoredJoined<string name> : Option<["/", "-"], name, KIND_JOINED>,
38   Group<cl_ignored_Group>, Flags<[CLOption, DriverOption, HelpHidden]>;
39
40 class CLJoinedOrSeparate<string name> : Option<["/", "-"], name,
41   KIND_JOINED_OR_SEPARATE>, Group<cl_Group>, Flags<[CLOption, DriverOption]>;
42
43 class CLCompileJoinedOrSeparate<string name> : Option<["/", "-"], name,
44   KIND_JOINED_OR_SEPARATE>, Group<cl_compile_Group>,
45   Flags<[CLOption, DriverOption]>;
46
47 class CLRemainingArgsJoined<string name> : Option<["/", "-"], name,
48   KIND_REMAINING_ARGS_JOINED>, Group<cl_Group>, Flags<[CLOption, DriverOption]>;
49
50 // Aliases:
51 // (We don't put any of these in cl_compile_Group as the options they alias are
52 // already in the right group.)
53
54 def _SLASH_Brepro : CLFlag<"Brepro">,
55   HelpText<"Do not write current time into COFF output (breaks link.exe /incremental)">,
56   Alias<mno_incremental_linker_compatible>;
57 def _SLASH_Brepro_ : CLFlag<"Brepro-">,
58   HelpText<"Write current time into COFF output (default)">,
59   Alias<mincremental_linker_compatible>;
60 def _SLASH_C : CLFlag<"C">,
61   HelpText<"Do not discard comments when preprocessing">, Alias<C>;
62 def _SLASH_c : CLFlag<"c">, HelpText<"Compile only">, Alias<c>;
63 def _SLASH_d1PP : CLFlag<"d1PP">,
64   HelpText<"Retain macro definitions in /E mode">, Alias<dD>;
65 def _SLASH_d1reportAllClassLayout : CLFlag<"d1reportAllClassLayout">,
66   HelpText<"Dump record layout information">,
67   Alias<Xclang>, AliasArgs<["-fdump-record-layouts"]>;
68 def _SLASH_diagnostics_caret : CLFlag<"diagnostics:caret">,
69   HelpText<"Enable caret and column diagnostics (default)">;
70 def _SLASH_diagnostics_column : CLFlag<"diagnostics:column">,
71   HelpText<"Disable caret diagnostics but keep column info">;
72 def _SLASH_diagnostics_classic : CLFlag<"diagnostics:classic">,
73   HelpText<"Disable column and caret diagnostics">;
74 def _SLASH_D : CLJoinedOrSeparate<"D">, HelpText<"Define macro">,
75   MetaVarName<"<macro[=value]>">, Alias<D>;
76 def _SLASH_E : CLFlag<"E">, HelpText<"Preprocess to stdout">, Alias<E>;
77 def _SLASH_fp_except : CLFlag<"fp:except">, HelpText<"">, Alias<ftrapping_math>;
78 def _SLASH_fp_except_ : CLFlag<"fp:except-">,
79   HelpText<"">, Alias<fno_trapping_math>;
80 def _SLASH_fp_fast : CLFlag<"fp:fast">, HelpText<"">, Alias<ffast_math>;
81 def _SLASH_fp_precise : CLFlag<"fp:precise">,
82   HelpText<"">, Alias<fno_fast_math>;
83 def _SLASH_fp_strict : CLFlag<"fp:strict">, HelpText<"">, Alias<fno_fast_math>;
84 def _SLASH_GA : CLFlag<"GA">, Alias<ftlsmodel_EQ>, AliasArgs<["local-exec"]>,
85   HelpText<"Assume thread-local variables are defined in the executable">;
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)">;
90 def _SLASH_GF_ : CLFlag<"GF-">, HelpText<"Disable string pooling">,
91   Alias<fwritable_strings>;
92 def _SLASH_GS : CLFlag<"GS">,
93   HelpText<"Enable buffer security check (default)">;
94 def _SLASH_GS_ : CLFlag<"GS-">, HelpText<"Disable buffer security check">;
95 def : CLFlag<"Gs">, HelpText<"Use stack probes (default)">,
96   Alias<mstack_probe_size>, AliasArgs<["4096"]>;
97 def _SLASH_Gs : CLJoined<"Gs">,
98   HelpText<"Set stack probe size (default 4096)">, Alias<mstack_probe_size>;
99 def _SLASH_Gy : CLFlag<"Gy">, HelpText<"Put each function in its own section">,
100   Alias<ffunction_sections>;
101 def _SLASH_Gy_ : CLFlag<"Gy-">,
102   HelpText<"Do not put each function in its own section (default)">,
103   Alias<fno_function_sections>;
104 def _SLASH_Gw : CLFlag<"Gw">, HelpText<"Put each data item in its own section">,
105   Alias<fdata_sections>;
106 def _SLASH_Gw_ : CLFlag<"Gw-">,
107   HelpText<"Do not put each data item in its own section (default)">,
108   Alias<fno_data_sections>;
109 def _SLASH_help : CLFlag<"help">, Alias<help>,
110   HelpText<"Display available options">;
111 def _SLASH_HELP : CLFlag<"HELP">, Alias<help>;
112 def _SLASH_I : CLJoinedOrSeparate<"I">,
113   HelpText<"Add directory to include search path">, MetaVarName<"<dir>">,
114   Alias<I>;
115 def _SLASH_J : CLFlag<"J">, HelpText<"Make char type unsigned">,
116   Alias<funsigned_char>;
117
118 // The _SLASH_O option handles all the /O flags, but we also provide separate
119 // aliased options to provide separate help messages.
120 def _SLASH_O : CLJoined<"O">,
121   HelpText<"Set multiple /O flags at once; e.g. '/O2y-' for '/O2 /Oy-'">,
122   MetaVarName<"<flags>">;
123 def : CLFlag<"O1">, Alias<_SLASH_O>, AliasArgs<["1"]>,
124   HelpText<"Optimize for size  (like /Og     /Os /Oy /Ob2 /GF /Gy)">;
125 def : CLFlag<"O2">, Alias<_SLASH_O>, AliasArgs<["2"]>,
126   HelpText<"Optimize for speed (like /Og /Oi /Ot /Oy /Ob2 /GF /Gy)">;
127 def : CLFlag<"Ob0">, Alias<_SLASH_O>, AliasArgs<["b0"]>,
128   HelpText<"Disable function inlining">;
129 def : CLFlag<"Ob1">, Alias<_SLASH_O>, AliasArgs<["b1"]>,
130   HelpText<"Only inline functions explicitly or implicitly marked inline">;
131 def : CLFlag<"Ob2">, Alias<_SLASH_O>, AliasArgs<["b2"]>,
132   HelpText<"Inline functions as deemed beneficial by the compiler">;
133 def : CLFlag<"Od">, Alias<_SLASH_O>, AliasArgs<["d"]>,
134   HelpText<"Disable optimization">;
135 def : CLFlag<"Og">, Alias<_SLASH_O>, AliasArgs<["g"]>,
136   HelpText<"No effect">;
137 def : CLFlag<"Oi">, Alias<_SLASH_O>, AliasArgs<["i"]>,
138   HelpText<"Enable use of builtin functions">;
139 def : CLFlag<"Oi-">, Alias<_SLASH_O>, AliasArgs<["i-"]>,
140   HelpText<"Disable use of builtin functions">;
141 def : CLFlag<"Os">, Alias<_SLASH_O>, AliasArgs<["s"]>,
142   HelpText<"Optimize for size">;
143 def : CLFlag<"Ot">, Alias<_SLASH_O>, AliasArgs<["t"]>,
144   HelpText<"Optimize for speed">;
145 def : CLFlag<"Ox">, Alias<_SLASH_O>, AliasArgs<["x"]>,
146   HelpText<"Deprecated (like /Og /Oi /Ot /Oy /Ob2); use /O2">;
147 def : CLFlag<"Oy">, Alias<_SLASH_O>, AliasArgs<["y"]>,
148   HelpText<"Enable frame pointer omission (x86 only)">;
149 def : CLFlag<"Oy-">, Alias<_SLASH_O>, AliasArgs<["y-"]>,
150   HelpText<"Disable frame pointer omission (x86 only, default)">;
151
152 def _SLASH_QUESTION : CLFlag<"?">, Alias<help>,
153   HelpText<"Display available options">;
154 def _SLASH_Qvec : CLFlag<"Qvec">,
155   HelpText<"Enable the loop vectorization passes">, Alias<fvectorize>;
156 def _SLASH_Qvec_ : CLFlag<"Qvec-">,
157   HelpText<"Disable the loop vectorization passes">, Alias<fno_vectorize>;
158 def _SLASH_showIncludes : CLFlag<"showIncludes">,
159   HelpText<"Print info about included files to stderr">,
160   Alias<show_includes>;
161 def _SLASH_showFilenames : CLFlag<"showFilenames">,
162   HelpText<"Print the name of each compiled file">;
163 def _SLASH_showFilenames_ : CLFlag<"showFilenames-">,
164   HelpText<"Do not print the name of each compiled file (default)">;
165 def _SLASH_source_charset : CLCompileJoined<"source-charset:">,
166   HelpText<"Set source encoding, supports only UTF-8">,
167   Alias<finput_charset_EQ>;
168 def _SLASH_execution_charset : CLCompileJoined<"execution-charset:">,
169   HelpText<"Set runtime encoding, supports only UTF-8">,
170   Alias<fexec_charset_EQ>;
171 def _SLASH_std : CLCompileJoined<"std:">,
172   HelpText<"Set C++ version (c++14,c++17,c++latest)">;
173 def _SLASH_U : CLJoinedOrSeparate<"U">, HelpText<"Undefine macro">,
174   MetaVarName<"<macro>">, Alias<U>;
175 def _SLASH_validate_charset : CLFlag<"validate-charset">,
176   Alias<W_Joined>, AliasArgs<["invalid-source-encoding"]>;
177 def _SLASH_validate_charset_ : CLFlag<"validate-charset-">,
178   Alias<W_Joined>, AliasArgs<["no-invalid-source-encoding"]>;
179 def _SLASH_W0 : CLFlag<"W0">, HelpText<"Disable all warnings">, Alias<w>;
180 def _SLASH_W1 : CLFlag<"W1">, HelpText<"Enable -Wall">, Alias<Wall>;
181 def _SLASH_W2 : CLFlag<"W2">, HelpText<"Enable -Wall">, Alias<Wall>;
182 def _SLASH_W3 : CLFlag<"W3">, HelpText<"Enable -Wall">, Alias<Wall>;
183 def _SLASH_W4 : CLFlag<"W4">, HelpText<"Enable -Wall and -Wextra">, Alias<WCL4>;
184 def _SLASH_Wall : CLFlag<"Wall">, HelpText<"Enable -Weverything">,
185   Alias<W_Joined>, AliasArgs<["everything"]>;
186 def _SLASH_WX : CLFlag<"WX">, HelpText<"Treat warnings as errors">,
187   Alias<W_Joined>, AliasArgs<["error"]>;
188 def _SLASH_WX_ : CLFlag<"WX-">,
189   HelpText<"Do not treat warnings as errors (default)">,
190   Alias<W_Joined>, AliasArgs<["no-error"]>;
191 def _SLASH_w_flag : CLFlag<"w">, HelpText<"Disable all warnings">, Alias<w>;
192 def _SLASH_wd4005 : CLFlag<"wd4005">, Alias<W_Joined>,
193   AliasArgs<["no-macro-redefined"]>;
194 def _SLASH_wd4018 : CLFlag<"wd4018">, Alias<W_Joined>,
195   AliasArgs<["no-sign-compare"]>;
196 def _SLASH_wd4100 : CLFlag<"wd4100">, Alias<W_Joined>,
197   AliasArgs<["no-unused-parameter"]>;
198 def _SLASH_wd4910 : CLFlag<"wd4910">, Alias<W_Joined>,
199   AliasArgs<["no-dllexport-explicit-instantiation-decl"]>;
200 def _SLASH_wd4996 : CLFlag<"wd4996">, Alias<W_Joined>,
201   AliasArgs<["no-deprecated-declarations"]>;
202 def _SLASH_vd : CLJoined<"vd">, HelpText<"Control vtordisp placement">,
203   Alias<vtordisp_mode_EQ>;
204 def _SLASH_X : CLFlag<"X">,
205   HelpText<"Do not add %INCLUDE% to include search path">, Alias<nostdlibinc>;
206 def _SLASH_Zc_sizedDealloc : CLFlag<"Zc:sizedDealloc">,
207   HelpText<"Enable C++14 sized global deallocation functions">,
208   Alias<fsized_deallocation>;
209 def _SLASH_Zc_sizedDealloc_ : CLFlag<"Zc:sizedDealloc-">,
210   HelpText<"Disable C++14 sized global deallocation functions">,
211   Alias<fno_sized_deallocation>;
212 def _SLASH_Zc_alignedNew : CLFlag<"Zc:alignedNew">,
213   HelpText<"Enable C++17 aligned allocation functions">,
214   Alias<faligned_allocation>;
215 def _SLASH_Zc_alignedNew_ : CLFlag<"Zc:alignedNew-">,
216   HelpText<"Disable C++17 aligned allocation functions">,
217   Alias<fno_aligned_allocation>;
218 def _SLASH_Zc_char8_t : CLFlag<"Zc:char8_t">,
219   HelpText<"Enable char8_t from C++2a">,
220   Alias<fchar8__t>;
221 def _SLASH_Zc_char8_t_ : CLFlag<"Zc:char8_t-">,
222   HelpText<"Disable char8_t from c++2a">,
223   Alias<fno_char8__t>;
224 def _SLASH_Zc_strictStrings : CLFlag<"Zc:strictStrings">,
225   HelpText<"Treat string literals as const">, Alias<W_Joined>,
226   AliasArgs<["error=c++11-compat-deprecated-writable-strings"]>;
227 def _SLASH_Zc_threadSafeInit : CLFlag<"Zc:threadSafeInit">,
228   HelpText<"Enable thread-safe initialization of static variables">,
229   Alias<fthreadsafe_statics>;
230 def _SLASH_Zc_threadSafeInit_ : CLFlag<"Zc:threadSafeInit-">,
231   HelpText<"Disable thread-safe initialization of static variables">,
232   Alias<fno_threadsafe_statics>;
233 def _SLASH_Zc_trigraphs : CLFlag<"Zc:trigraphs">,
234   HelpText<"Enable trigraphs">, Alias<ftrigraphs>;
235 def _SLASH_Zc_trigraphs_off : CLFlag<"Zc:trigraphs-">,
236   HelpText<"Disable trigraphs (default)">, Alias<fno_trigraphs>;
237 def _SLASH_Zc_twoPhase : CLFlag<"Zc:twoPhase">,
238   HelpText<"Enable two-phase name lookup in templates">,
239   Alias<fno_delayed_template_parsing>;
240 def _SLASH_Zc_twoPhase_ : CLFlag<"Zc:twoPhase-">,
241   HelpText<"Disable two-phase name lookup in templates (default)">,
242   Alias<fdelayed_template_parsing>;
243 def _SLASH_Z7 : CLFlag<"Z7">,
244   HelpText<"Enable CodeView debug information in object files">;
245 def _SLASH_Zd : CLFlag<"Zd">,
246   HelpText<"Emit debug line number tables only">;
247 def _SLASH_Zi : CLFlag<"Zi">, Alias<_SLASH_Z7>,
248   HelpText<"Like /Z7">;
249 def _SLASH_Zp : CLJoined<"Zp">,
250   HelpText<"Set default maximum struct packing alignment">,
251   Alias<fpack_struct_EQ>;
252 def _SLASH_Zp_flag : CLFlag<"Zp">,
253   HelpText<"Set default maximum struct packing alignment to 1">,
254   Alias<fpack_struct_EQ>, AliasArgs<["1"]>;
255 def _SLASH_Zs : CLFlag<"Zs">, HelpText<"Syntax-check only">,
256   Alias<fsyntax_only>;
257 def _SLASH_openmp_ : CLFlag<"openmp-">,
258   HelpText<"Disable OpenMP support">, Alias<fno_openmp>;
259 def _SLASH_openmp : CLFlag<"openmp">, HelpText<"Enable OpenMP support">,
260   Alias<fopenmp>;
261 def _SLASH_openmp_experimental : CLFlag<"openmp:experimental">,
262   HelpText<"Enable OpenMP support with experimental SIMD support">,
263   Alias<fopenmp>;
264
265 // Non-aliases:
266
267 def _SLASH_arch : CLCompileJoined<"arch:">,
268   HelpText<"Set architecture for code generation">;
269
270 def _SLASH_M_Group : OptionGroup<"</M group>">, Group<cl_compile_Group>;
271 def _SLASH_volatile_Group : OptionGroup<"</volatile group>">,
272   Group<cl_compile_Group>;
273
274 def _SLASH_EH : CLJoined<"EH">, HelpText<"Set exception handling model">;
275 def _SLASH_EP : CLFlag<"EP">,
276   HelpText<"Disable linemarker output and preprocess to stdout">;
277 def _SLASH_FA : CLFlag<"FA">,
278   HelpText<"Output assembly code file during compilation">;
279 def _SLASH_Fa : CLJoined<"Fa">,
280   HelpText<"Set assembly output file name (with /FA)">,
281   MetaVarName<"<file or dir/>">;
282 def _SLASH_fallback : CLCompileFlag<"fallback">,
283   HelpText<"Fall back to cl.exe if clang-cl fails to compile">;
284 def _SLASH_FI : CLJoinedOrSeparate<"FI">,
285   HelpText<"Include file before parsing">, Alias<include_>;
286 def _SLASH_Fe : CLJoined<"Fe">,
287   HelpText<"Set output executable file name">,
288   MetaVarName<"<file or dir/>">;
289 def _SLASH_Fi : CLCompileJoined<"Fi">,
290   HelpText<"Set preprocess output file name (with /P)">,
291   MetaVarName<"<file>">;
292 def _SLASH_Fo : CLCompileJoined<"Fo">,
293   HelpText<"Set output object file (with /c)">,
294   MetaVarName<"<file or dir/>">;
295 def _SLASH_guard : CLJoined<"guard:">,
296   HelpText<"Enable Control Flow Guard with /guard:cf, or only the table with /guard:cf,nochecks">;
297 def _SLASH_GX : CLFlag<"GX">,
298   HelpText<"Deprecated; use /EHsc">;
299 def _SLASH_GX_ : CLFlag<"GX-">,
300   HelpText<"Deprecated (like not passing /EH)">;
301 def _SLASH_imsvc : CLJoinedOrSeparate<"imsvc">,
302   HelpText<"Add <dir> to system include search path, as if in %INCLUDE%">,
303   MetaVarName<"<dir>">;
304 def _SLASH_LD : CLFlag<"LD">, HelpText<"Create DLL">;
305 def _SLASH_LDd : CLFlag<"LDd">, HelpText<"Create debug DLL">;
306 def _SLASH_link : CLRemainingArgsJoined<"link">,
307   HelpText<"Forward options to the linker">, MetaVarName<"<options>">;
308 def _SLASH_MD : Option<["/", "-"], "MD", KIND_FLAG>, Group<_SLASH_M_Group>,
309   Flags<[CLOption, DriverOption]>, HelpText<"Use DLL run-time">;
310 def _SLASH_MDd : Option<["/", "-"], "MDd", KIND_FLAG>, Group<_SLASH_M_Group>,
311   Flags<[CLOption, DriverOption]>, HelpText<"Use DLL debug run-time">;
312 def _SLASH_MT : Option<["/", "-"], "MT", KIND_FLAG>, Group<_SLASH_M_Group>,
313   Flags<[CLOption, DriverOption]>, HelpText<"Use static run-time">;
314 def _SLASH_MTd : Option<["/", "-"], "MTd", KIND_FLAG>, Group<_SLASH_M_Group>,
315   Flags<[CLOption, DriverOption]>, HelpText<"Use static debug run-time">;
316 def _SLASH_o : CLJoinedOrSeparate<"o">,
317   HelpText<"Deprecated (set output file name); use /Fe or /Fe">,
318   MetaVarName<"<file or dir/>">;
319 def _SLASH_P : CLFlag<"P">, HelpText<"Preprocess to file">;
320 def _SLASH_Tc : CLCompileJoinedOrSeparate<"Tc">,
321   HelpText<"Treat <file> as C source file">, MetaVarName<"<file>">;
322 def _SLASH_TC : CLCompileFlag<"TC">, HelpText<"Treat all source files as C">;
323 def _SLASH_Tp : CLCompileJoinedOrSeparate<"Tp">,
324   HelpText<"Treat <file> as C++ source file">, MetaVarName<"<file>">;
325 def _SLASH_TP : CLCompileFlag<"TP">, HelpText<"Treat all source files as C++">;
326 def _SLASH_volatile_iso : Option<["/", "-"], "volatile:iso", KIND_FLAG>,
327   Group<_SLASH_volatile_Group>, Flags<[CLOption, DriverOption]>,
328   HelpText<"Volatile loads and stores have standard semantics">;
329 def _SLASH_vmb : CLFlag<"vmb">,
330   HelpText<"Use a best-case representation method for member pointers">;
331 def _SLASH_vmg : CLFlag<"vmg">,
332   HelpText<"Use a most-general representation for member pointers">;
333 def _SLASH_vms : CLFlag<"vms">,
334   HelpText<"Set the default most-general representation to single inheritance">;
335 def _SLASH_vmm : CLFlag<"vmm">,
336   HelpText<"Set the default most-general representation to "
337            "multiple inheritance">;
338 def _SLASH_vmv : CLFlag<"vmv">,
339   HelpText<"Set the default most-general representation to "
340            "virtual inheritance">;
341 def _SLASH_volatile_ms  : Option<["/", "-"], "volatile:ms", KIND_FLAG>,
342   Group<_SLASH_volatile_Group>, Flags<[CLOption, DriverOption]>,
343   HelpText<"Volatile loads and stores have acquire and release semantics">;
344 def _SLASH_clang : CLJoined<"clang:">,
345   HelpText<"Pass <arg> to the clang driver">, MetaVarName<"<arg>">;
346 def _SLASH_Zl : CLFlag<"Zl">,
347   HelpText<"Do not let object file auto-link default libraries">;
348
349 def _SLASH_Yc : CLJoined<"Yc">,
350   HelpText<"Generate a pch file for all code up to and including <filename>">,
351   MetaVarName<"<filename>">;
352 def _SLASH_Yu : CLJoined<"Yu">,
353   HelpText<"Load a pch file and use it instead of all code up to "
354            "and including <filename>">,
355   MetaVarName<"<filename>">;
356 def _SLASH_Y_ : CLFlag<"Y-">,
357   HelpText<"Disable precompiled headers, overrides /Yc and /Yu">;
358 def _SLASH_Zc_dllexportInlines : CLFlag<"Zc:dllexportInlines">,
359   HelpText<"dllexport/dllimport inline member functions of dllexport/import classes (default)">;
360 def _SLASH_Zc_dllexportInlines_ : CLFlag<"Zc:dllexportInlines-">,
361   HelpText<"Do not dllexport/dllimport inline member functions of dllexport/import classes">;
362 def _SLASH_Fp : CLJoined<"Fp">,
363   HelpText<"Set pch file name (with /Yc and /Yu)">, MetaVarName<"<file>">;
364
365 def _SLASH_Gd : CLFlag<"Gd">,
366   HelpText<"Set __cdecl as a default calling convention">;
367 def _SLASH_Gr : CLFlag<"Gr">,
368   HelpText<"Set __fastcall as a default calling convention">;
369 def _SLASH_Gz : CLFlag<"Gz">,
370   HelpText<"Set __stdcall as a default calling convention">;
371 def _SLASH_Gv : CLFlag<"Gv">,
372   HelpText<"Set __vectorcall as a default calling convention">;
373 def _SLASH_Gregcall : CLFlag<"Gregcall">,
374   HelpText<"Set __regcall as a default calling convention">;
375
376 // Ignored:
377
378 def _SLASH_analyze_ : CLIgnoredFlag<"analyze-">;
379 def _SLASH_bigobj : CLIgnoredFlag<"bigobj">;
380 def _SLASH_cgthreads : CLIgnoredJoined<"cgthreads">;
381 def _SLASH_d2FastFail : CLIgnoredFlag<"d2FastFail">;
382 def _SLASH_d2Zi_PLUS : CLIgnoredFlag<"d2Zi+">;
383 def _SLASH_errorReport : CLIgnoredJoined<"errorReport">;
384 def _SLASH_FC : CLIgnoredFlag<"FC">;
385 def _SLASH_Fd : CLIgnoredJoined<"Fd">;
386 def _SLASH_FS : CLIgnoredFlag<"FS">;
387 def _SLASH_JMC : CLIgnoredFlag<"JMC">;
388 def _SLASH_kernel_ : CLIgnoredFlag<"kernel-">;
389 def _SLASH_nologo : CLIgnoredFlag<"nologo">;
390 def _SLASH_permissive_ : CLIgnoredFlag<"permissive-">;
391 def _SLASH_RTC : CLIgnoredJoined<"RTC">;
392 def _SLASH_sdl : CLIgnoredFlag<"sdl">;
393 def _SLASH_sdl_ : CLIgnoredFlag<"sdl-">;
394 def _SLASH_utf8 : CLIgnoredFlag<"utf-8">,
395   HelpText<"Set source and runtime encoding to UTF-8 (default)">;
396 def _SLASH_w : CLIgnoredJoined<"w">;
397 def _SLASH_Zc___cplusplus : CLIgnoredFlag<"Zc:__cplusplus">;
398 def _SLASH_Zc_auto : CLIgnoredFlag<"Zc:auto">;
399 def _SLASH_Zc_forScope : CLIgnoredFlag<"Zc:forScope">;
400 def _SLASH_Zc_inline : CLIgnoredFlag<"Zc:inline">;
401 def _SLASH_Zc_rvalueCast : CLIgnoredFlag<"Zc:rvalueCast">;
402 def _SLASH_Zc_ternary : CLIgnoredFlag<"Zc:ternary">;
403 def _SLASH_Zc_wchar_t : CLIgnoredFlag<"Zc:wchar_t">;
404 def _SLASH_ZH_MD5 : CLIgnoredFlag<"ZH:MD5">;
405 def _SLASH_ZH_SHA1 : CLIgnoredFlag<"ZH:SHA1">;
406 def _SLASH_ZH_SHA_256 : CLIgnoredFlag<"ZH:SHA_256">;
407 def _SLASH_Zm : CLIgnoredJoined<"Zm">;
408 def _SLASH_Zo : CLIgnoredFlag<"Zo">;
409 def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;
410
411
412 // Unsupported:
413
414 def _SLASH_await : CLFlag<"await">;
415 def _SLASH_constexpr : CLJoined<"constexpr:">;
416 def _SLASH_AI : CLJoinedOrSeparate<"AI">;
417 def _SLASH_Bt : CLFlag<"Bt">;
418 def _SLASH_Bt_plus : CLFlag<"Bt+">;
419 def _SLASH_clr : CLJoined<"clr">;
420 def _SLASH_d2 : CLJoined<"d2">;
421 def _SLASH_doc : CLJoined<"doc">;
422 def _SLASH_FA_joined : CLJoined<"FA">;
423 def _SLASH_favor : CLJoined<"favor">;
424 def _SLASH_F : CLJoinedOrSeparate<"F">;
425 def _SLASH_Fm : CLJoined<"Fm">;
426 def _SLASH_Fr : CLJoined<"Fr">;
427 def _SLASH_FR : CLJoined<"FR">;
428 def _SLASH_FU : CLJoinedOrSeparate<"FU">;
429 def _SLASH_Fx : CLFlag<"Fx">;
430 def _SLASH_G1 : CLFlag<"G1">;
431 def _SLASH_G2 : CLFlag<"G2">;
432 def _SLASH_Ge : CLFlag<"Ge">;
433 def _SLASH_Gh : CLFlag<"Gh">;
434 def _SLASH_GH : CLFlag<"GH">;
435 def _SLASH_GL : CLFlag<"GL">;
436 def _SLASH_GL_ : CLFlag<"GL-">;
437 def _SLASH_Gm : CLFlag<"Gm">;
438 def _SLASH_Gm_ : CLFlag<"Gm-">;
439 def _SLASH_GT : CLFlag<"GT">;
440 def _SLASH_GZ : CLFlag<"GZ">;
441 def _SLASH_H : CLFlag<"H">;
442 def _SLASH_homeparams : CLFlag<"homeparams">;
443 def _SLASH_hotpatch : CLFlag<"hotpatch">;
444 def _SLASH_kernel : CLFlag<"kernel">;
445 def _SLASH_LN : CLFlag<"LN">;
446 def _SLASH_MP : CLJoined<"MP">;
447 def _SLASH_Qfast_transcendentals : CLFlag<"Qfast_transcendentals">;
448 def _SLASH_QIfist : CLFlag<"QIfist">;
449 def _SLASH_Qimprecise_fwaits : CLFlag<"Qimprecise_fwaits">;
450 def _SLASH_Qpar : CLFlag<"Qpar">;
451 def _SLASH_Qpar_report : CLJoined<"Qpar-report">;
452 def _SLASH_Qsafe_fp_loads : CLFlag<"Qsafe_fp_loads">;
453 def _SLASH_Qspectre : CLFlag<"Qspectre">;
454 def _SLASH_Qvec_report : CLJoined<"Qvec-report">;
455 def _SLASH_u : CLFlag<"u">;
456 def _SLASH_V : CLFlag<"V">;
457 def _SLASH_WL : CLFlag<"WL">;
458 def _SLASH_Wp64 : CLFlag<"Wp64">;
459 def _SLASH_Yd : CLFlag<"Yd">;
460 def _SLASH_Yl : CLJoined<"Yl">;
461 def _SLASH_Za : CLFlag<"Za">;
462 def _SLASH_Zc : CLJoined<"Zc:">;
463 def _SLASH_Ze : CLFlag<"Ze">;
464 def _SLASH_Zg : CLFlag<"Zg">;
465 def _SLASH_ZI : CLFlag<"ZI">;
466 def _SLASH_ZW : CLJoined<"ZW">;