CC1Options.td revision 400b607546a8dbfcee3b690f3d0a2fee0ea6480b
1//===--- CC1Options.td - Options for clang -cc1 ---------------------------===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10//  This file defines the options accepted by clang -cc1.
11//
12//===----------------------------------------------------------------------===//
13
14// Include the common option parsing interfaces.
15include "OptParser.td"
16
17//===----------------------------------------------------------------------===//
18// Target Options
19//===----------------------------------------------------------------------===//
20
21def cxx_abi : Separate<"-cxx-abi">,
22  HelpText<"Target a particular C++ ABI type">;
23def target_abi : Separate<"-target-abi">,
24  HelpText<"Target a particular ABI type">;
25def target_cpu : Separate<"-target-cpu">,
26  HelpText<"Target a specific cpu type">;
27def target_feature : Separate<"-target-feature">,
28  HelpText<"Target specific attributes">;
29def target_linker_version : Separate<"-target-linker-version">,
30  HelpText<"Target linker version">;
31def triple : Separate<"-triple">,
32  HelpText<"Specify target triple (e.g. i686-apple-darwin9)">;
33def triple_EQ : Joined<"-triple=">, Alias<triple>;
34
35//===----------------------------------------------------------------------===//
36// Analyzer Options
37//===----------------------------------------------------------------------===//
38
39def analysis_CFGDump : Flag<"-cfg-dump">,
40  HelpText<"Display Control-Flow Graphs">;
41def analysis_CFGView : Flag<"-cfg-view">,
42  HelpText<"View Control-Flow Graphs using GraphViz">;
43def analysis_UnoptimizedCFG : Flag<"-unoptimized-cfg">,
44  HelpText<"Generate unoptimized CFGs for all analyses">;
45def analysis_DisplayLiveVariables : Flag<"-dump-live-variables">,
46  HelpText<"Print results of live variable analysis">;
47def analysis_LLVMConventionChecker : Flag<"-analyzer-check-llvm-conventions">,
48  HelpText<"Check code for LLVM codebase conventions (domain-specific)">;
49def analysis_SecuritySyntacticChecks : Flag<"-analyzer-check-security-syntactic">,
50  HelpText<"Perform quick security checks that require no data flow">;
51def analysis_WarnDeadStores : Flag<"-analyzer-check-dead-stores">,
52  HelpText<"Warn about stores to dead variables">;
53def analysis_WarnUninitVals : Flag<"-warn-uninit-values">,
54  HelpText<"Warn about uses of uninitialized variables">;
55def analysis_WarnObjCMethSigs : Flag<"-analyzer-check-objc-methodsigs">,
56  HelpText<"Warn about Objective-C method signatures with type incompatibilities">;
57def analysis_WarnObjCDealloc : Flag<"-analyzer-check-objc-missing-dealloc">,
58  HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">;
59def analysis_WarnObjCUnusedIvars : Flag<"-analyzer-check-objc-unused-ivars">,
60  HelpText<"Warn about private ivars that are never used">;
61def analysis_ObjCMemChecker : Flag<"-analyzer-check-objc-mem">,
62  HelpText<"Run the [Core] Foundation reference count checker">;
63def analysis_WarnSizeofPointer : Flag<"-warn-sizeof-pointer">,
64  HelpText<"Warn about unintended use of sizeof() on pointer expressions">;
65def analysis_WarnIdempotentOps : Flag<"-analyzer-check-idempotent-operations">,
66  HelpText<"Warn about idempotent operations">;
67
68def analyzer_store : Separate<"-analyzer-store">,
69  HelpText<"Source Code Analysis - Abstract Memory Store Models">;
70def analyzer_store_EQ : Joined<"-analyzer-store=">, Alias<analyzer_store>;
71
72def analyzer_constraints : Separate<"-analyzer-constraints">,
73  HelpText<"Source Code Analysis - Symbolic Constraint Engines">;
74def analyzer_constraints_EQ : Joined<"-analyzer-constraints=">,
75  Alias<analyzer_constraints>;
76
77def analyzer_output : Separate<"-analyzer-output">,
78  HelpText<"Source Code Analysis - Output Options">;
79def analyzer_output_EQ : Joined<"-analyzer-output=">,
80  Alias<analyzer_output>;
81
82def analyzer_opt_analyze_headers : Flag<"-analyzer-opt-analyze-headers">,
83  HelpText<"Force the static analyzer to analyze functions defined in header files">;
84def analyzer_opt_analyze_nested_blocks : Flag<"-analyzer-opt-analyze-nested-blocks">,
85  HelpText<"Analyze the definitions of blocks in addition to functions">;  
86def analyzer_display_progress : Flag<"-analyzer-display-progress">,
87  HelpText<"Emit verbose output about the analyzer's progress">;
88def analyzer_experimental_checks : Flag<"-analyzer-experimental-checks">,
89  HelpText<"Use experimental path-sensitive checks">;
90def analyzer_experimental_internal_checks :
91  Flag<"-analyzer-experimental-internal-checks">,
92  HelpText<"Use new default path-sensitive checks currently in testing">;
93def analyze_function : Separate<"-analyze-function">,
94  HelpText<"Run analysis on specific function">;
95def analyze_function_EQ : Joined<"-analyze-function=">, Alias<analyze_function>;
96def analyzer_eagerly_assume : Flag<"-analyzer-eagerly-assume">,
97  HelpText<"Eagerly assume the truth/falseness of some symbolic constraints">;
98def analyzer_no_purge_dead : Flag<"-analyzer-no-purge-dead">,
99  HelpText<"Don't remove dead symbols, bindings, and constraints before processing a statement">;
100def trim_egraph : Flag<"-trim-egraph">,
101  HelpText<"Only show error-related paths in the analysis graph">;
102def analyzer_viz_egraph_graphviz : Flag<"-analyzer-viz-egraph-graphviz">,
103  HelpText<"Display exploded graph using GraphViz">;
104def analyzer_viz_egraph_ubigraph : Flag<"-analyzer-viz-egraph-ubigraph">,
105  HelpText<"Display exploded graph using Ubigraph">;
106def analyzer_inline_call : Flag<"-analyzer-inline-call">,
107  HelpText<"Experimental transfer function inlining callees when its definition is available.">;
108def analyzer_max_nodes : Separate<"-analyzer-max-nodes">,
109  HelpText<"The maximum number of nodes the analyzer can generate">;
110def analyzer_max_loop : Separate<"-analyzer-max-loop">,
111  HelpText<"The maximum number of times the analyzer will go through a loop">;
112
113//===----------------------------------------------------------------------===//
114// CodeGen Options
115//===----------------------------------------------------------------------===//
116
117def disable_llvm_optzns : Flag<"-disable-llvm-optzns">,
118  HelpText<"Don't run LLVM optimization passes">;
119def disable_llvm_verifier : Flag<"-disable-llvm-verifier">,
120  HelpText<"Don't run the LLVM IR verifier pass">;
121def disable_red_zone : Flag<"-disable-red-zone">,
122  HelpText<"Do not emit code that uses the red zone.">;
123def dwarf_debug_flags : Separate<"-dwarf-debug-flags">,
124  HelpText<"The string to embed in the Dwarf debug flags record.">;
125def g : Flag<"-g">, HelpText<"Generate source level debug information">;
126def fcatch_undefined_behavior : Flag<"-fcatch-undefined-behavior">,
127    HelpText<"Generate runtime checks for undefined behavior.">;
128def fno_common : Flag<"-fno-common">,
129  HelpText<"Compile common globals like normal definitions">;
130def no_implicit_float : Flag<"-no-implicit-float">,
131  HelpText<"Don't generate implicit floating point instructions (x86-only)">;
132def finstrument_functions : Flag<"-finstrument-functions">,
133  HelpText<"Generate calls to instrument function entry and exit">;
134def fno_merge_all_constants : Flag<"-fno-merge-all-constants">,
135  HelpText<"Disallow merging of constants.">;
136def fno_threadsafe_statics : Flag<"-fno-threadsafe-statics">,
137  HelpText<"Do not emit code to make initialization of local statics thread safe">;
138def fdump_vtable_layouts : Flag<"-fdump-vtable-layouts">,
139  HelpText<"Dump the layouts of all vtables that will be emitted in a translation unit">;
140def ffunction_sections : Flag<"-ffunction-sections">,
141  HelpText<"Place each function in its own section (ELF Only)">;
142def fdata_sections : Flag<"-fdata-sections">,
143  HelpText<"Place each data in its own section (ELF Only)">;
144def funroll_loops : Flag<"-funroll-loops">,
145  HelpText<"Turn on loop unroller">;
146def masm_verbose : Flag<"-masm-verbose">,
147  HelpText<"Generate verbose assembly output">;
148def mcode_model : Separate<"-mcode-model">,
149  HelpText<"The code model to use">;
150def mdebug_pass : Separate<"-mdebug-pass">,
151  HelpText<"Enable additional debug output">;
152def mdisable_fp_elim : Flag<"-mdisable-fp-elim">,
153  HelpText<"Disable frame pointer elimination optimization">;
154def mfloat_abi : Separate<"-mfloat-abi">,
155  HelpText<"The float ABI to use">;
156def mlimit_float_precision : Separate<"-mlimit-float-precision">,
157  HelpText<"Limit float precision to the given value">;
158def mno_zero_initialized_in_bss : Flag<"-mno-zero-initialized-in-bss">,
159  HelpText<"Do not put zero initialized data in the BSS">;
160def momit_leaf_frame_pointer : Flag<"-momit-leaf-frame-pointer">,
161  HelpText<"Omit frame pointer setup for leaf functions.">;
162def msoft_float : Flag<"-msoft-float">,
163  HelpText<"Use software floating point">;
164def mrelax_all : Flag<"-mrelax-all">,
165  HelpText<"Relax all machine instructions">;
166def mrelocation_model : Separate<"-mrelocation-model">,
167  HelpText<"The relocation model to use">;
168def munwind_tables : Flag<"-munwind-tables">,
169  HelpText<"Generate unwinding tables for all functions">;
170def mconstructor_aliases : Flag<"-mconstructor-aliases">,
171  HelpText<"Emit complete constructors and destructors as aliases when possible">;
172def O : Joined<"-O">, HelpText<"Optimization level">;
173def Os : Flag<"-Os">, HelpText<"Optimize for size">;
174
175//===----------------------------------------------------------------------===//
176// Dependency Output Options
177//===----------------------------------------------------------------------===//
178
179def dependency_file : Separate<"-dependency-file">,
180  HelpText<"Filename (or -) to write dependency output to">;
181def sys_header_deps : Flag<"-sys-header-deps">,
182  HelpText<"Include system headers in dependency output">;
183def MQ : Separate<"-MQ">, HelpText<"Specify target to quote for dependency">;
184def MT : Separate<"-MT">, HelpText<"Specify target for dependency">;
185def MP : Flag<"-MP">,
186  HelpText<"Create phony target for each dependency (other than main file)">;
187
188//===----------------------------------------------------------------------===//
189// Diagnostic Options
190//===----------------------------------------------------------------------===//
191
192def dump_build_information : Separate<"-dump-build-information">,
193  MetaVarName<"<filename>">,
194  HelpText<"output a dump of some build information to a file">;
195def fno_show_column : Flag<"-fno-show-column">,
196  HelpText<"Do not include column number on diagnostics">;
197def fno_show_source_location : Flag<"-fno-show-source-location">,
198  HelpText<"Do not include source location information with diagnostics">;
199def fshow_overloads_EQ : Joined<"-fshow-overloads=">,
200  HelpText<"Which overload candidates to show when overload resolution fails: "
201           "best|all; defaults to all">;
202def fno_caret_diagnostics : Flag<"-fno-caret-diagnostics">,
203  HelpText<"Do not include source line and caret with diagnostics">;
204def fno_diagnostics_fixit_info : Flag<"-fno-diagnostics-fixit-info">,
205  HelpText<"Do not include fixit information in diagnostics">;
206def fdiagnostics_binary : Flag<"-fdiagnostics-binary">;
207def w : Flag<"-w">, HelpText<"Suppress all warnings">;
208def pedantic : Flag<"-pedantic">;
209def pedantic_errors : Flag<"-pedantic-errors">;
210
211// This gets all -W options, including -Werror, -W[no-]system-headers, etc.  The
212// driver has stripped off -Wa,foo etc.  The driver has also translated -W to
213// -Wextra, so we don't need to worry about it.
214def W : Joined<"-W">;
215
216def fdiagnostics_print_source_range_info : Flag<"-fdiagnostics-print-source-range-info">,
217  HelpText<"Print source range spans in numeric form">;
218def fdiagnostics_parseable_fixits : Flag<"-fdiagnostics-parseable-fixits">,
219  HelpText<"Print fix-its in machine parseable form">;
220def fdiagnostics_show_option : Flag<"-fdiagnostics-show-option">,
221  HelpText<"Print diagnostic name with mappable diagnostics">;
222def fdiagnostics_show_category : Separate<"-fdiagnostics-show-category">,
223  HelpText<"Print diagnostic category">;
224  
225def ftabstop : Separate<"-ftabstop">, MetaVarName<"<N>">,
226  HelpText<"Set the tab stop distance.">;
227def ferror_limit : Separate<"-ferror-limit">, MetaVarName<"<N>">,
228  HelpText<"Set the maximum number of errors to emit before stopping (0 = no limit).">;
229def fmacro_backtrace_limit : Separate<"-fmacro-backtrace-limit">, MetaVarName<"<N>">,
230  HelpText<"Set the maximum number of entries to print in a macro instantiation backtrace (0 = no limit).">;
231def ftemplate_backtrace_limit : Separate<"-ftemplate-backtrace-limit">, MetaVarName<"<N>">,
232  HelpText<"Set the maximum number of entries to print in a template instantiation backtrace (0 = no limit).">;
233def fmessage_length : Separate<"-fmessage-length">, MetaVarName<"<N>">,
234  HelpText<"Format message diagnostics so that they fit within N columns or fewer, when possible.">;
235def fcolor_diagnostics : Flag<"-fcolor-diagnostics">,
236  HelpText<"Use colors in diagnostics">;
237def Wno_rewrite_macros : Flag<"-Wno-rewrite-macros">,
238  HelpText<"Silence ObjC rewriting warnings">;
239def Wwrite_strings : Flag<"-Wwrite-strings">,
240  HelpText<"Remove const qualifier from string literals">;
241def verify : Flag<"-verify">,
242  HelpText<"Verify emitted diagnostics and warnings">;
243
244//===----------------------------------------------------------------------===//
245// Frontend Options
246//===----------------------------------------------------------------------===//
247
248// This isn't normally used, it is just here so we can parse a
249// CompilerInvocation out of a driver-derived argument vector.
250def cc1 : Flag<"-cc1">;
251
252def ast_merge : Separate<"-ast-merge">,
253  MetaVarName<"<ast file>">,
254  HelpText<"Merge the given AST file into the translation unit being compiled.">;
255def code_completion_at : Separate<"-code-completion-at">,
256  MetaVarName<"<file>:<line>:<column>">,
257  HelpText<"Dump code-completion information at a location">;
258def remap_file : Separate<"-remap-file">,
259  MetaVarName<"<from>;<to>">,
260  HelpText<"Replace the contents of the <from> file with the contents of the <to> file">;
261def code_completion_at_EQ : Joined<"-code-completion-at=">,
262  Alias<code_completion_at>;
263def no_code_completion_debug_printer : Flag<"-no-code-completion-debug-printer">,
264  HelpText<"Don't use the \"debug\" code-completion print">;
265def code_completion_macros : Flag<"-code-completion-macros">,
266  HelpText<"Include macros in code-completion results">;
267def code_completion_patterns : Flag<"-code-completion-patterns">,
268  HelpText<"Include code patterns in code-completion results">;
269def no_code_completion_globals : Flag<"-no-code-completion-globals">,
270  HelpText<"Do not include global declarations in code-completion results.">;
271def disable_free : Flag<"-disable-free">,
272  HelpText<"Disable freeing of memory on exit">;
273def help : Flag<"-help">,
274  HelpText<"Print this help text">;
275def _help : Flag<"--help">, Alias<help>;
276def x : Separate<"-x">, HelpText<"Input language type">;
277def cxx_inheritance_view : Separate<"-cxx-inheritance-view">,
278  MetaVarName<"<class name>">,
279  HelpText<"View C++ inheritance for a specified class">;
280def o : Separate<"-o">, MetaVarName<"<path>">, HelpText<"Specify output file">;
281def load : Separate<"-load">, MetaVarName<"<dsopath>">,
282  HelpText<"Load the named plugin (dynamic shared object)">;
283def plugin : Separate<"-plugin">, MetaVarName<"<name>">,
284  HelpText<"Use the named plugin action (use \"help\" to list available options)">;
285def plugin_arg : JoinedAndSeparate<"-plugin-arg-">, 
286    MetaVarName<"<name> <arg>">,
287    HelpText<"Pass <arg> to plugin <name>">;
288def resource_dir : Separate<"-resource-dir">,
289  HelpText<"The directory which holds the compiler resource files">;
290def version : Flag<"-version">,
291  HelpText<"Print the compiler version">;
292def _version : Flag<"--version">, Alias<version>;
293
294def Action_Group : OptionGroup<"<action group>">;
295let Group = Action_Group in {
296
297def Eonly : Flag<"-Eonly">,
298  HelpText<"Just run preprocessor, no output (for timings)">;
299def E : Flag<"-E">,
300  HelpText<"Run preprocessor, emit preprocessed file">;
301def dump_raw_tokens : Flag<"-dump-raw-tokens">,
302  HelpText<"Lex file in raw mode and dump raw tokens">;
303def analyze : Flag<"-analyze">,
304  HelpText<"Run static analysis engine">;
305def dump_tokens : Flag<"-dump-tokens">,
306  HelpText<"Run preprocessor, dump internal rep of tokens">;
307def init_only : Flag<"-init-only">,
308  HelpText<"Only execute frontend initialization">;
309def fsyntax_only : Flag<"-fsyntax-only">,
310  HelpText<"Run parser and perform semantic analysis">;
311def fixit : Flag<"-fixit">,
312  HelpText<"Apply fix-it advice to the input source">;
313def fixit_EQ : Joined<"-fixit=">,
314  HelpText<"Apply fix-it advice creating a file with the given suffix">;
315def print_preamble : Flag<"-print-preamble">,
316  HelpText<"Print the \"preamble\" of a file, which is a candidate for implicit"
317           " precompiled headers.">;
318def emit_html : Flag<"-emit-html">,
319  HelpText<"Output input source as HTML">;
320def ast_print : Flag<"-ast-print">,
321  HelpText<"Build ASTs and then pretty-print them">;
322def ast_print_xml : Flag<"-ast-print-xml">,
323  HelpText<"Build ASTs and then print them in XML format">;
324def ast_dump : Flag<"-ast-dump">,
325  HelpText<"Build ASTs and then debug dump them">;
326def ast_view : Flag<"-ast-view">,
327  HelpText<"Build ASTs and view them with GraphViz">;
328def boostcon : Flag<"-boostcon">,
329  HelpText<"BoostCon workshop mode">;
330def print_decl_contexts : Flag<"-print-decl-contexts">,
331  HelpText<"Print DeclContexts and their Decls">;
332def emit_pth : Flag<"-emit-pth">,
333  HelpText<"Generate pre-tokenized header file">;
334def emit_pch : Flag<"-emit-pch">,
335  HelpText<"Generate pre-compiled header file">;
336def S : Flag<"-S">,
337  HelpText<"Emit native assembly code">;
338def emit_llvm : Flag<"-emit-llvm">,
339  HelpText<"Build ASTs then convert to LLVM, emit .ll file">;
340def emit_llvm_bc : Flag<"-emit-llvm-bc">,
341  HelpText<"Build ASTs then convert to LLVM, emit .bc file">;
342def emit_llvm_only : Flag<"-emit-llvm-only">,
343  HelpText<"Build ASTs and convert to LLVM, discarding output">;
344def emit_codegen_only : Flag<"-emit-codegen-only">,
345  HelpText<"Generate machine code, but discard output">;
346def emit_obj : Flag<"-emit-obj">,
347  HelpText<"Emit native object files">;
348def rewrite_test : Flag<"-rewrite-test">,
349  HelpText<"Rewriter playground">;
350def rewrite_objc : Flag<"-rewrite-objc">,
351  HelpText<"Rewrite ObjC into C (code rewriter example)">;
352def rewrite_macros : Flag<"-rewrite-macros">,
353  HelpText<"Expand macros without full preprocessing">;
354
355def create_module : Flag<"-create-module">,
356  HelpText<"Create a module definition file">;
357}
358
359def import_module : Separate<"-import-module">,
360  HelpText<"Import a module definition file">;
361
362def relocatable_pch : Flag<"-relocatable-pch">,
363  HelpText<"Whether to build a relocatable precompiled header">;
364def chained_pch : Flag<"-chained-pch">,
365  HelpText<"Whether to chain the new precompiled header to the old one.">;
366def print_stats : Flag<"-print-stats">,
367  HelpText<"Print performance metrics and statistics">;
368def ftime_report : Flag<"-ftime-report">,
369  HelpText<"Print the amount of time each phase of compilation takes">;
370def fdump_record_layouts : Flag<"-fdump-record-layouts">,
371  HelpText<"Dump record layout information">;
372def fix_what_you_can : Flag<"-fix-what-you-can">,
373  HelpText<"Apply fix-it advice even in the presence of unfixable errors">;
374
375// Generic forwarding to LLVM options. This should only be used for debugging
376// and experimental features.
377def mllvm : Separate<"-mllvm">,
378  HelpText<"Additional arguments to forward to LLVM's option processing">;
379
380//===----------------------------------------------------------------------===//
381// Language Options
382//===----------------------------------------------------------------------===//
383
384def fno_builtin : Flag<"-fno-builtin">,
385  HelpText<"Disable implicit builtin knowledge of functions">;
386def faltivec : Flag<"-faltivec">,
387  HelpText<"Enable AltiVec vector initializer syntax">;
388def fno_access_control : Flag<"-fno-access-control">,
389  HelpText<"Disable C++ access control">;
390def fno_assume_sane_operator_new : Flag<"-fno-assume-sane-operator-new">,
391  HelpText<"Don't assume that C++'s global operator new can't alias any pointer">;
392def fgnu_keywords : Flag<"-fgnu-keywords">,
393  HelpText<"Allow GNU-extension keywords regardless of language standard">;
394def fno_gnu_keywords : Flag<"-fno-gnu-keywords">,
395  HelpText<"Disallow GNU-extension keywords regardless of language standard">;
396def fdollars_in_identifiers : Flag<"-fdollars-in-identifiers">,
397  HelpText<"Allow '$' in identifiers">;
398def fno_dollars_in_identifiers : Flag<"-fno-dollars-in-identifiers">,
399  HelpText<"Disallow '$' in identifiers">;
400def femit_all_decls : Flag<"-femit-all-decls">,
401  HelpText<"Emit all declarations, even if unused">;
402def fblocks : Flag<"-fblocks">,
403  HelpText<"enable the 'blocks' language feature">;
404def fheinous_gnu_extensions : Flag<"-fheinous-gnu-extensions">;  
405def fexceptions : Flag<"-fexceptions">,
406  HelpText<"Enable support for exception handling">;
407def fsjlj_exceptions : Flag<"-fsjlj-exceptions">,
408  HelpText<"Use SjLj style exceptions">;
409def ffreestanding : Flag<"-ffreestanding">,
410  HelpText<"Assert that the compilation takes place in a freestanding environment">;
411def fgnu_runtime : Flag<"-fgnu-runtime">,
412  HelpText<"Generate output compatible with the standard GNU Objective-C runtime">;
413def fhidden_weak_vtables : Flag<"-fhidden-weak-vtables">,
414  HelpText<"Generate weak vtables and RTTI with hidden visibility">;
415def std_EQ : Joined<"-std=">,
416  HelpText<"Language standard to compile for">;
417def fmath_errno : Flag<"-fmath-errno">,
418  HelpText<"Require math functions to indicate errors by setting errno">;
419def fms_extensions : Flag<"-fms-extensions">,
420  HelpText<"Accept some non-standard constructs used in Microsoft header files ">;
421def fborland_extensions : Flag<"-fborland-extensions">,
422  HelpText<"Accept non-standard constructs supported by the Borland compiler">;
423def main_file_name : Separate<"-main-file-name">,
424  HelpText<"Main file name to use for debug info">;
425def fno_elide_constructors : Flag<"-fno-elide-constructors">,
426  HelpText<"Disable C++ copy constructor elision">;
427def fno_lax_vector_conversions : Flag<"-fno-lax-vector-conversions">,
428  HelpText<"Disallow implicit conversions between vectors with a different number of elements or different element types">;
429def fno_operator_names : Flag<"-fno-operator-names">,
430  HelpText<"Do not treat C++ operator name keywords as synonyms for operators">;
431def fno_signed_char : Flag<"-fno-signed-char">,
432  HelpText<"Char is unsigned">;
433def fno_spell_checking : Flag<"-fno-spell-checking">,
434  HelpText<"Disable spell-checking">;  
435def fno_use_cxa_atexit : Flag<"-fno-use-cxa-atexit">,
436  HelpText<"Don't use __cxa_atexit for calling destructors">;
437def fconstant_string_class : Separate<"-fconstant-string-class">,
438  MetaVarName<"<class name>">,
439  HelpText<"Specify the class to use for constant Objective-C string objects.">;
440def fno_constant_cfstrings : Flag<"-fno-constant-cfstrings">,
441  HelpText<"Enable creation of CodeFoundation-type constant strings">;
442def fobjc_gc : Flag<"-fobjc-gc">,
443  HelpText<"Enable Objective-C garbage collection">;
444def fobjc_gc_only : Flag<"-fobjc-gc-only">,
445  HelpText<"Use GC exclusively for Objective-C related memory management">;
446def fobjc_dispatch_method_EQ : Joined<"-fobjc-dispatch-method=">,
447  HelpText<"Objective-C dispatch method to use">;
448def print_ivar_layout : Flag<"-print-ivar-layout">,
449  HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
450def fobjc_nonfragile_abi : Flag<"-fobjc-nonfragile-abi">,
451  HelpText<"enable objective-c's nonfragile abi">;
452def fobjc_nonfragile_abi2 : Flag<"-fobjc-nonfragile-abi2">,
453  HelpText<"enable objective-c's enhanced nonfragile abi">;
454def ftrapv : Flag<"-ftrapv">,
455  HelpText<"Trap on integer overflow">;
456def fwrapv : Flag<"-fwrapv">,
457  HelpText<"Treat signed integer overflow as two's complement">;
458def pic_level : Separate<"-pic-level">,
459  HelpText<"Value for __PIC__">;
460def pthread : Flag<"-pthread">,
461  HelpText<"Support POSIX threads in generated code">;
462def fpascal_strings : Flag<"-fpascal-strings">,
463  HelpText<"Recognize and construct Pascal-style string literals">;
464def fno_rtti : Flag<"-fno-rtti">,
465  HelpText<"Disable generation of rtti information">;
466def fno_validate_pch : Flag<"-fno-validate-pch">,
467  HelpText<"Disable validation of precompiled headers">;
468def fshort_wchar : Flag<"-fshort-wchar">,
469  HelpText<"Force wchar_t to be a short unsigned int">;
470def static_define : Flag<"-static-define">,
471  HelpText<"Should __STATIC__ be defined">;
472def stack_protector : Separate<"-stack-protector">,
473  HelpText<"Enable stack protectors">;
474def fvisibility : Separate<"-fvisibility">,
475  HelpText<"Default symbol visibility">;
476def fvisibility_inlines_hidden : Flag<"-fvisibility-inlines-hidden">,
477  HelpText<"Give inline C++ member functions default visibility by default">;
478def ftemplate_depth : Separate<"-ftemplate-depth">,
479  HelpText<"Maximum depth of recursive template instantiation">;
480def trigraphs : Flag<"-trigraphs">,
481  HelpText<"Process trigraph sequences">;
482def fwritable_strings : Flag<"-fwritable-strings">,
483  HelpText<"Store string literals as writable data">;
484def fno_bitfield_type_align : Flag<"-fno-bitfield-type-align">,
485  HelpText<"Ignore bit-field types when aligning structures">;
486
487//===----------------------------------------------------------------------===//
488// Header Search Options
489//===----------------------------------------------------------------------===//
490
491def nostdinc : Flag<"-nostdinc">,
492  HelpText<"Disable standard #include directories">;
493def nostdincxx : Flag<"-nostdinc++">,
494  HelpText<"Disable standard #include directories for the C++ standard library">;
495def nobuiltininc : Flag<"-nobuiltininc">,
496  HelpText<"Disable builtin #include directories">;
497def F : JoinedOrSeparate<"-F">, MetaVarName<"<directory>">,
498  HelpText<"Add directory to framework include search path">;
499def I : JoinedOrSeparate<"-I">, MetaVarName<"<directory>">,
500  HelpText<"Add directory to include search path">;
501def idirafter : JoinedOrSeparate<"-idirafter">, MetaVarName<"<directory>">,
502  HelpText<"Add directory to AFTER include search path">;
503def iquote : JoinedOrSeparate<"-iquote">, MetaVarName<"<directory>">,
504  HelpText<"Add directory to QUOTE include search path">;
505def isystem : JoinedOrSeparate<"-isystem">, MetaVarName<"<directory>">,
506  HelpText<"Add directory to SYSTEM include search path">;
507def iwithsysroot : JoinedOrSeparate<"-iwithsysroot">,MetaVarName<"<directory>">,
508  HelpText<"Add directory to SYSTEM include search path, "
509           "absolute paths are relative to -isysroot">;
510def iprefix : JoinedOrSeparate<"-iprefix">, MetaVarName<"<prefix>">,
511  HelpText<"Set the -iwithprefix/-iwithprefixbefore prefix">;
512def iwithprefix : JoinedOrSeparate<"-iwithprefix">, MetaVarName<"<dir>">,
513  HelpText<"Set directory to SYSTEM include search path with prefix">;
514def iwithprefixbefore : JoinedOrSeparate<"-iwithprefixbefore">,
515  MetaVarName<"<dir>">,
516  HelpText<"Set directory to include search path with prefix">;
517def isysroot : JoinedOrSeparate<"-isysroot">, MetaVarName<"<dir>">,
518  HelpText<"Set the system root directory (usually /)">;
519def v : Flag<"-v">, HelpText<"Enable verbose output">;
520
521//===----------------------------------------------------------------------===//
522// Preprocessor Options
523//===----------------------------------------------------------------------===//
524
525def D : JoinedOrSeparate<"-D">, MetaVarName<"<macro>">,
526  HelpText<"Predefine the specified macro">;
527def include_ : JoinedOrSeparate<"-include">, MetaVarName<"<file>">, EnumName<"include">,
528  HelpText<"Include file before parsing">;
529def imacros : JoinedOrSeparate<"-imacros">, MetaVarName<"<file>">,
530  HelpText<"Include macros from file before parsing">;
531def include_pch : Separate<"-include-pch">, MetaVarName<"<file>">,
532  HelpText<"Include precompiled header file">;
533def include_pth : Separate<"-include-pth">, MetaVarName<"<file>">,
534  HelpText<"Include file before parsing">;
535def preamble_bytes_EQ : Joined<"-preamble-bytes=">,
536  HelpText<"Assume that the precompiled header is a precompiled preamble "
537           "covering the first N bytes of the main file">;
538def token_cache : Separate<"-token-cache">, MetaVarName<"<path>">,
539  HelpText<"Use specified token cache file">;
540def U : JoinedOrSeparate<"-U">, MetaVarName<"<macro>">,
541  HelpText<"Undefine the specified macro">;
542def undef : Flag<"-undef">, MetaVarName<"<macro>">,
543  HelpText<"undef all system defines">;
544def detailed_preprocessing_record : Flag<"-detailed-preprocessing-record">,
545  HelpText<"include a detailed record of preprocessing actions">;
546  
547//===----------------------------------------------------------------------===//
548// Preprocessed Output Options
549//===----------------------------------------------------------------------===//
550
551def P : Flag<"-P">,
552  HelpText<"Disable linemarker output in -E mode">;
553def C : Flag<"-C">,
554  HelpText<"Enable comment output in -E mode">;
555def CC : Flag<"-CC">,
556  HelpText<"Enable comment output in -E mode, even from macro expansions">;
557def dM : Flag<"-dM">,
558  HelpText<"Print macro definitions in -E mode instead of normal output">;
559def dD : Flag<"-dD">,
560  HelpText<"Print macro definitions in -E mode in addition to normal output">;
561def H : Flag<"-H">,
562  HelpText<"Show header includes and nesting depth">;
563