CC1Options.td revision fae3b2f4743dad616623c4df2fdb0f5128bd36d9
18adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//===--- CC1Options.td - Options for clang -cc1 ---------------------------===//
28adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
38adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//                     The LLVM Compiler Infrastructure
48adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
58adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar// This file is distributed under the University of Illinois Open Source
68adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar// License. See LICENSE.TXT for details.
78adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
88adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//===----------------------------------------------------------------------===//
98adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
108adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//  This file defines the options accepted by clang -cc1.
118adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
128adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//===----------------------------------------------------------------------===//
138adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar
148adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar// Include the common option parsing interfaces.
158adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbarinclude "OptParser.td"
168adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar
1733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
188adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar// Target Options
1933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
208adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar
2198b7c5c496dfccb39287b8f7d8f1444594936d10Charles Davisdef cxx_abi : Separate<"-cxx-abi">,
2298b7c5c496dfccb39287b8f7d8f1444594936d10Charles Davis  HelpText<"Target a particular C++ ABI type">;
238adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbardef target_abi : Separate<"-target-abi">,
248adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar  HelpText<"Target a particular ABI type">;
2538b48afd338d494099697d2611e1f45e558e469eDaniel Dunbardef target_cpu : Separate<"-target-cpu">,
2638b48afd338d494099697d2611e1f45e558e469eDaniel Dunbar  HelpText<"Target a specific cpu type">;
2731db76cb2dde031ab3262808ac233889daf7d720Daniel Dunbardef target_feature : Separate<"-target-feature">,
288adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar  HelpText<"Target specific attributes">;
2931db76cb2dde031ab3262808ac233889daf7d720Daniel Dunbardef triple : Separate<"-triple">,
308adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar  HelpText<"Specify target triple (e.g. i686-apple-darwin9)">;
31ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbardef triple_EQ : Joined<"-triple=">, Alias<triple>;
3250a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar
3333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
34e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar// Analyzer Options
3533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
36e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
37e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_CFGDump : Flag<"-cfg-dump">,
38e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Display Control-Flow Graphs">;
39e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_CFGView : Flag<"-cfg-view">,
40e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"View Control-Flow Graphs using GraphViz">;
41e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_DisplayLiveVariables : Flag<"-dump-live-variables">,
42e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Print results of live variable analysis">;
436dd66ed959b7f60749dd0040507b3f304183a1b6Ted Kremenekdef analysis_LLVMConventionChecker : Flag<"-analyzer-check-llvm-conventions">,
446dd66ed959b7f60749dd0040507b3f304183a1b6Ted Kremenek  HelpText<"Check code for LLVM codebase conventions (domain-specific)">;
45fb3f893bc58071e548c97a3d667c8ab9b0c38cfbTed Kremenekdef analysis_SecuritySyntacticChecks : Flag<"-analyzer-check-security-syntactic">,
46e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Perform quick security checks that require no data flow">;
47cd9902bfb79c5c67559360514951714bdafac36eTed Kremenekdef analysis_WarnDeadStores : Flag<"-analyzer-check-dead-stores">,
48e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Warn about stores to dead variables">;
49e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_WarnUninitVals : Flag<"-warn-uninit-values">,
50e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Warn about uses of uninitialized variables">;
51fa15be4cf95b7ed2d1df583497b16a6f897cf789Ted Kremenekdef analysis_WarnObjCMethSigs : Flag<"-analyzer-check-objc-methodsigs">,
52e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Warn about Objective-C method signatures with type incompatibilities">;
537909fc8833e734aac521d7d6945bd823d75150acTed Kremenekdef analysis_WarnObjCDealloc : Flag<"-analyzer-check-objc-missing-dealloc">,
54e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">;
552ade536f6815bf6ff128333520232c3b0e701146Ted Kremenekdef analysis_WarnObjCUnusedIvars : Flag<"-analyzer-check-objc-unused-ivars">,
56e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Warn about private ivars that are never used">;
57565e465c6d0093f1bf8414b2cabdc842022385a9Ted Kremenekdef analysis_ObjCMemChecker : Flag<"-analyzer-check-objc-mem">,
58e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Run the [Core] Foundation reference count checker">;
59e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_WarnSizeofPointer : Flag<"-warn-sizeof-pointer">,
60e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Warn about unintended use of sizeof() on pointer expressions">;
61e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
62e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_store : Separate<"-analyzer-store">,
63e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Source Code Analysis - Abstract Memory Store Models">;
64e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_store_EQ : Joined<"-analyzer-store=">, Alias<analyzer_store>;
65e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
66e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_constraints : Separate<"-analyzer-constraints">,
67e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Source Code Analysis - Symbolic Constraint Engines">;
68e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_constraints_EQ : Joined<"-analyzer-constraints=">,
69e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  Alias<analyzer_constraints>;
70e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
71e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_output : Separate<"-analyzer-output">,
72e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Source Code Analysis - Output Options">;
73e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_output_EQ : Joined<"-analyzer-output=">,
74e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  Alias<analyzer_output>;
75e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
76e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_opt_analyze_headers : Flag<"-analyzer-opt-analyze-headers">,
77e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Force the static analyzer to analyze functions defined in header files">;
78fc576514d06c46a7cac49500169411d82f38d04bTed Kremenekdef analyzer_opt_analyze_nested_blocks : Flag<"-analyzer-opt-analyze-nested-blocks">,
79fc576514d06c46a7cac49500169411d82f38d04bTed Kremenek  HelpText<"Analyze the definitions of blocks in addition to functions">;  
80e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_display_progress : Flag<"-analyzer-display-progress">,
81e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Emit verbose output about the analyzer's progress">;
82e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_experimental_checks : Flag<"-analyzer-experimental-checks">,
83e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Use experimental path-sensitive checks">;
84e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_experimental_internal_checks :
85e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  Flag<"-analyzer-experimental-internal-checks">,
86e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Use new default path-sensitive checks currently in testing">;
87e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyze_function : Separate<"-analyze-function">,
88e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Run analysis on specific function">;
89e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyze_function_EQ : Joined<"-analyze-function=">, Alias<analyze_function>;
90e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_eagerly_assume : Flag<"-analyzer-eagerly-assume">,
91e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Eagerly assume the truth/falseness of some symbolic constraints">;
92e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_no_purge_dead : Flag<"-analyzer-no-purge-dead">,
93e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Don't remove dead symbols, bindings, and constraints before processing a statement">;
94e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef trim_egraph : Flag<"-trim-egraph">,
95e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Only show error-related paths in the analysis graph">;
96e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_viz_egraph_graphviz : Flag<"-analyzer-viz-egraph-graphviz">,
97e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Display exploded graph using GraphViz">;
98e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_viz_egraph_ubigraph : Flag<"-analyzer-viz-egraph-ubigraph">,
99e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Display exploded graph using Ubigraph">;
1007b99d12b4ca67fccdf5090761ba257732e954e75Zhongxing Xudef analyzer_inline_call : Flag<"-analyzer-inline-call">,
1017b99d12b4ca67fccdf5090761ba257732e954e75Zhongxing Xu  HelpText<"Experimental transfer function inlining callees when its definition is available.">;
102c09289d104b8e01ecd998e3f08b2b0561049e1dcZhongxing Xudef analyzer_max_nodes : Separate<"-analyzer-max-nodes">,
103c09289d104b8e01ecd998e3f08b2b0561049e1dcZhongxing Xu  HelpText<"The maximum number of nodes the analyzer can generate">;
1046362b893731ccf4480a96527db9e55e04b801503Zhongxing Xudef analyzer_max_loop : Separate<"-analyzer-max-loop">,
1056362b893731ccf4480a96527db9e55e04b801503Zhongxing Xu  HelpText<"The maximum number of times the analyzer will go through a loop">;
106e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
10733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
10850a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar// CodeGen Options
10933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
11050a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar
11150a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef disable_llvm_optzns : Flag<"-disable-llvm-optzns">,
11250a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Don't run LLVM optimization passes">;
113824e19ed926d7aa1296a007d0607ac4437e3c4a9John McCalldef disable_llvm_verifier : Flag<"-disable-llvm-verifier">,
114824e19ed926d7aa1296a007d0607ac4437e3c4a9John McCall  HelpText<"Don't run the LLVM IR verifier pass">;
11550a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef disable_red_zone : Flag<"-disable-red-zone">,
11650a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Do not emit code that uses the red zone.">;
117f2d8b9f967a1ab53ee9fdbcc3ac0a4ee0a83a26eDaniel Dunbardef dwarf_debug_flags : Separate<"-dwarf-debug-flags">,
118f2d8b9f967a1ab53ee9fdbcc3ac0a4ee0a83a26eDaniel Dunbar  HelpText<"The string to embed in the Dwarf debug flags record.">;
11950a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef g : Flag<"-g">, HelpText<"Generate source level debug information">;
1209c276ae0f24d4cee8f7954069d4b8eae45d0447dMike Stumpdef fcatch_undefined_behavior : Flag<"-fcatch-undefined-behavior">,
1219c276ae0f24d4cee8f7954069d4b8eae45d0447dMike Stump    HelpText<"Generate runtime checks for undefined behavior.">;
12250a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef fno_common : Flag<"-fno-common">,
12350a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Compile common globals like normal definitions">;
12450a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef no_implicit_float : Flag<"-no-implicit-float">,
12550a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Don't generate implicit floating point instructions (x86-only)">;
1267255a2d997b15beae82e627052fdb1b2474495c2Chris Lattnerdef finstrument_functions : Flag<"-finstrument-functions">,
1277255a2d997b15beae82e627052fdb1b2474495c2Chris Lattner  HelpText<"Generate calls to instrument function entry and exit">;
12850a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef fno_merge_all_constants : Flag<"-fno-merge-all-constants">,
12950a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Disallow merging of constants.">;
130a508b7de6c5246ab04ed69d0ab4e9977ec1fb4d4Anders Carlssondef fno_threadsafe_statics : Flag<"-fno-threadsafe-statics">,
131a508b7de6c5246ab04ed69d0ab4e9977ec1fb4d4Anders Carlsson  HelpText<"Do not emit code to make initialization of local statics thread safe">;
132824d7ea07a4e9208925daa6ae9289fb2b39bce9fAnders Carlssondef fdump_vtable_layouts : Flag<"-fdump-vtable-layouts">,
133824d7ea07a4e9208925daa6ae9289fb2b39bce9fAnders Carlsson  HelpText<"Dump the layouts of all vtables that will be emitted in a translation unit">;
134bbea7168326d810eff18dfb8bc43c7790fd55010Chris Lattnerdef ffunction_sections : Flag<"-ffunction-sections">,
135bbea7168326d810eff18dfb8bc43c7790fd55010Chris Lattner  HelpText<"Place each function in its own section (ELF Only)">;
136bbea7168326d810eff18dfb8bc43c7790fd55010Chris Lattnerdef fdata_sections : Flag<"-fdata-sections">,
137bbea7168326d810eff18dfb8bc43c7790fd55010Chris Lattner  HelpText<"Place each data in its own section (ELF Only)">;
138f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef masm_verbose : Flag<"-masm-verbose">,
139f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Generate verbose assembly output">;
140f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mcode_model : Separate<"-mcode-model">,
141f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"The code model to use">;
142f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mdebug_pass : Separate<"-mdebug-pass">,
143f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Enable additional debug output">;
144f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mdisable_fp_elim : Flag<"-mdisable-fp-elim">,
145f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Disable frame pointer elimination optimization">;
14687667aafe68c366be57f5afb60428237593da0edDaniel Dunbardef mfloat_abi : Separate<"-mfloat-abi">,
1473b315264d1a6fa303e20fe0caec306ccafc090deDaniel Dunbar  HelpText<"The float ABI to use">;
148f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mlimit_float_precision : Separate<"-mlimit-float-precision">,
149f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Limit float precision to the given value">;
150f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mno_zero_initialized_in_bss : Flag<"-mno-zero-initialized-in-bss">,
151f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Do not put zero initialized data in the BSS">;
1521ad6648cce57bd187f1853f58fef26cd9bf4934fDaniel Dunbardef momit_leaf_frame_pointer : Flag<"-momit-leaf-frame-pointer">,
1531ad6648cce57bd187f1853f58fef26cd9bf4934fDaniel Dunbar  HelpText<"Omit frame pointer setup for leaf functions.">;
15487667aafe68c366be57f5afb60428237593da0edDaniel Dunbardef msoft_float : Flag<"-msoft-float">,
1553b315264d1a6fa303e20fe0caec306ccafc090deDaniel Dunbar  HelpText<"Use software floating point">;
1564ecc9b73b3716775ed4e09091e300796a9a72378Daniel Dunbardef mrelax_all : Flag<"-mrelax-all">,
1574ecc9b73b3716775ed4e09091e300796a9a72378Daniel Dunbar  HelpText<"Relax all machine instructions">;
158f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mrelocation_model : Separate<"-mrelocation-model">,
159f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"The relocation model to use">;
160f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef munwind_tables : Flag<"-munwind-tables">,
161f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Generate unwinding tables for all functions">;
162d46f98573ba104eda102dd3224b2dca69f1c6336John McCalldef mconstructor_aliases : Flag<"-mconstructor-aliases">,
163d46f98573ba104eda102dd3224b2dca69f1c6336John McCall  HelpText<"Emit complete constructors and destructors as aliases when possible">;
16450a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef O : Joined<"-O">, HelpText<"Optimization level">;
16550a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef Os : Flag<"-Os">, HelpText<"Optimize for size">;
1661bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar
16733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
1681bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar// Dependency Output Options
16933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
17033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
1711bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef dependency_file : Separate<"-dependency-file">,
1721bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar  HelpText<"Filename (or -) to write dependency output to">;
1731bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef sys_header_deps : Flag<"-sys-header-deps">,
1741bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar  HelpText<"Include system headers in dependency output">;
1753edbeb78fe5ea7fffea7a94575478cde19e830e0Chris Lattnerdef MQ : Separate<"-MQ">, HelpText<"Specify target to quote for dependency">;
1761bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef MT : Separate<"-MT">, HelpText<"Specify target for dependency">;
1771bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef MP : Flag<"-MP">,
1781bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar  HelpText<"Create phony target for each dependency (other than main file)">;
17921affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar
18033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
18121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// Diagnostic Options
18233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
18321affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar
18421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef dump_build_information : Separate<"-dump-build-information">,
185b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  MetaVarName<"<filename>">,
18621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"output a dump of some build information to a file">;
18721affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_show_column : Flag<"-fno-show-column">,
18821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Do not include column number on diagnostics">;
18921affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_show_source_location : Flag<"-fno-show-source-location">,
19021affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Do not include source location information with diagnostics">;
1915edbdcc62098e305cd55654814dcf783a3f3c477Jeffrey Yasskindef fshow_overloads_EQ : Joined<"-fshow-overloads=">,
1925edbdcc62098e305cd55654814dcf783a3f3c477Jeffrey Yasskin  HelpText<"Which overload candidates to show when overload resolution fails: "
1935edbdcc62098e305cd55654814dcf783a3f3c477Jeffrey Yasskin           "best|all; defaults to all">;
19421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_caret_diagnostics : Flag<"-fno-caret-diagnostics">,
19521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Do not include source line and caret with diagnostics">;
19621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_diagnostics_fixit_info : Flag<"-fno-diagnostics-fixit-info">,
19721affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Do not include fixit information in diagnostics">;
198d93256e55673a17d18543397ec462416acb13792Douglas Gregordef fdiagnostics_binary : Flag<"-fdiagnostics-binary">;
19933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef w : Flag<"-w">, HelpText<"Suppress all warnings">;
20021affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef pedantic : Flag<"-pedantic">;
20121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef pedantic_errors : Flag<"-pedantic-errors">;
20221affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar
20321affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// This gets all -W options, including -Werror, -W[no-]system-headers, etc.  The
20421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// driver has stripped off -Wa,foo etc.  The driver has also translated -W to
20521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// -Wextra, so we don't need to worry about it.
20621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef W : Joined<"-W">;
20721affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar
20821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fdiagnostics_print_source_range_info : Flag<"-fdiagnostics-print-source-range-info">,
20921affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Print source range spans in numeric form">;
21021affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fdiagnostics_show_option : Flag<"-fdiagnostics-show-option">,
21121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Print diagnostic name with mappable diagnostics">;
2126fbe8398ba1680ffc5daa7395850ff8765b7905bChris Lattnerdef fdiagnostics_show_category : Separate<"-fdiagnostics-show-category">,
2136fbe8398ba1680ffc5daa7395850ff8765b7905bChris Lattner  HelpText<"Print diagnostic category">;
2146fbe8398ba1680ffc5daa7395850ff8765b7905bChris Lattner  
215124fca533d9fef2e3f6359283909bd342b5f5f26Chris Lattnerdef ftabstop : Separate<"-ftabstop">, MetaVarName<"<N>">,
216124fca533d9fef2e3f6359283909bd342b5f5f26Chris Lattner  HelpText<"Set the tab stop distance.">;
217c100214fdc41a7ea215f75d433eb1cb829fd4330Chris Lattnerdef ferror_limit : Separate<"-ferror-limit">, MetaVarName<"<N>">,
218c100214fdc41a7ea215f75d433eb1cb829fd4330Chris Lattner  HelpText<"Set the maximum number of errors to emit before stopping (0 = no limit).">;
2196c1cb9916e9988dcdd65b9266dbe24afd173427aDouglas Gregordef fmacro_backtrace_limit : Separate<"-fmacro-backtrace-limit">, MetaVarName<"<N>">,
2206c1cb9916e9988dcdd65b9266dbe24afd173427aDouglas Gregor  HelpText<"Set the maximum number of entries to print in a macro instantiation backtrace (0 = no limit).">;
221575cf3791216c33770ba950430493cdd43099f8fDouglas Gregordef ftemplate_backtrace_limit : Separate<"-ftemplate-backtrace-limit">, MetaVarName<"<N>">,
222575cf3791216c33770ba950430493cdd43099f8fDouglas Gregor  HelpText<"Set the maximum number of entries to print in a template instantiation backtrace (0 = no limit).">;
223b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef fmessage_length : Separate<"-fmessage-length">, MetaVarName<"<N>">,
22421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Format message diagnostics so that they fit within N columns or fewer, when possible.">;
22521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fcolor_diagnostics : Flag<"-fcolor-diagnostics">,
22621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Use colors in diagnostics">;
22721affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef Wno_rewrite_macros : Flag<"-Wno-rewrite-macros">,
22821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Silence ObjC rewriting warnings">;
2294b7a834e0fecddd9eaf1f4567867c718e4eebf50John McCalldef Wwrite_strings : Flag<"-Wwrite-strings">,
2304b7a834e0fecddd9eaf1f4567867c718e4eebf50John McCall  HelpText<"Add const qualifier to string literals">;
23121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef verify : Flag<"-verify">,
23221affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Verify emitted diagnostics and warnings">;
23333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
23433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
23533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Frontend Options
23633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
23733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
2388ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbar// This isn't normally used, it is just here so we can parse a
2398ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbar// CompilerInvocation out of a driver-derived argument vector.
2408ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbardef cc1 : Flag<"-cc1">;
2418ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbar
2429bed8798964d9f07599c2c9199701f86fbc70e20Douglas Gregordef ast_merge : Separate<"-ast-merge">,
2439bed8798964d9f07599c2c9199701f86fbc70e20Douglas Gregor  MetaVarName<"<ast file>">,
2449bed8798964d9f07599c2c9199701f86fbc70e20Douglas Gregor  HelpText<"Merge the given AST file into the translation unit being compiled.">;
24533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef code_completion_at : Separate<"-code-completion-at">,
246b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  MetaVarName<"<file>:<line>:<column>">,
24733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Dump code-completion information at a location">;
248e14b5f5237d0740c2b21c50b2eb41a06e778d820Daniel Dunbardef remap_file : Separate<"-remap-file">,
249e14b5f5237d0740c2b21c50b2eb41a06e778d820Daniel Dunbar  MetaVarName<"<from>;<to>">,
250e14b5f5237d0740c2b21c50b2eb41a06e778d820Daniel Dunbar  HelpText<"Replace the contents of the <from> file with the contents of the <to> file">;
251ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbardef code_completion_at_EQ : Joined<"-code-completion-at=">,
252ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbar  Alias<code_completion_at>;
25333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef no_code_completion_debug_printer : Flag<"-no-code-completion-debug-printer">,
254b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  HelpText<"Don't use the \"debug\" code-completion print">;
25533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef code_completion_macros : Flag<"-code-completion-macros">,
25633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include macros in code-completion results">;
257d8e8a58ee35ab334ab9d0c2154dca029c1822e8aDouglas Gregordef code_completion_patterns : Flag<"-code-completion-patterns">,
258d8e8a58ee35ab334ab9d0c2154dca029c1822e8aDouglas Gregor  HelpText<"Include code patterns in code-completion results">;
25933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef disable_free : Flag<"-disable-free">,
26033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable freeing of memory on exit">;
2619b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef help : Flag<"-help">,
2629b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbar  HelpText<"Print this help text">;
2639b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef _help : Flag<"--help">, Alias<help>;
26433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef x : Separate<"-x">, HelpText<"Input language type">;
26533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef cxx_inheritance_view : Separate<"-cxx-inheritance-view">,
266b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  MetaVarName<"<class name>">,
26733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"View C++ inheritance for a specified class">;
268b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef o : Separate<"-o">, MetaVarName<"<path>">, HelpText<"Specify output file">;
269b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef load : Separate<"-load">, MetaVarName<"<dsopath>">,
270efba227cc5459554eca466aafe786b5132dcb68cDaniel Dunbar  HelpText<"Load the named plugin (dynamic shared object)">;
2713177aae51a21f61ab483c52f97124bdb707da7f1Daniel Dunbardef plugin : Separate<"-plugin">, MetaVarName<"<name>">,
27233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Use the named plugin action (use \"help\" to list available options)">;
2733177aae51a21f61ab483c52f97124bdb707da7f1Daniel Dunbardef plugin_arg : JoinedAndSeparate<"-plugin-arg-">, 
2743177aae51a21f61ab483c52f97124bdb707da7f1Daniel Dunbar    MetaVarName<"<name> <arg>">,
2753177aae51a21f61ab483c52f97124bdb707da7f1Daniel Dunbar    HelpText<"Pass <arg> to plugin <name>">;
2768b9adfea5e834eaee0f45d8cc7fb052d68df4a46Daniel Dunbardef resource_dir : Separate<"-resource-dir">,
2778b9adfea5e834eaee0f45d8cc7fb052d68df4a46Daniel Dunbar  HelpText<"The directory which holds the compiler resource files">;
2789b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef version : Flag<"-version">,
2799b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbar  HelpText<"Print the compiler version">;
2809b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef _version : Flag<"--version">, Alias<version>;
28133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
28233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef Action_Group : OptionGroup<"<action group>">;
28333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbarlet Group = Action_Group in {
28433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
28533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef Eonly : Flag<"-Eonly">,
28633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Just run preprocessor, no output (for timings)">;
28733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef E : Flag<"-E">,
28833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Run preprocessor, emit preprocessed file">;
28933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dump_raw_tokens : Flag<"-dump-raw-tokens">,
29033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Lex file in raw mode and dump raw tokens">;
29133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef analyze : Flag<"-analyze">,
29233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Run static analysis engine">;
29333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dump_tokens : Flag<"-dump-tokens">,
29433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Run preprocessor, dump internal rep of tokens">;
2952758595023c5c7c0495f19260089f975022c50dcDaniel Dunbardef init_only : Flag<"-init-only">,
2962758595023c5c7c0495f19260089f975022c50dcDaniel Dunbar  HelpText<"Only execute frontend initialization">;
29733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fsyntax_only : Flag<"-fsyntax-only">,
29833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Run parser and perform semantic analysis">;
29933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fixit : Flag<"-fixit">,
30033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Apply fix-it advice to the input source">;
301ba5f6eced29937e4e4851a2c0980744768413d66Nick Lewyckydef fixit_EQ : Joined<"-fixit=">,
302ba5f6eced29937e4e4851a2c0980744768413d66Nick Lewycky  HelpText<"Apply fix-it advice creating a file with the given suffix">;
303f033f1da4a34f8df6e95e9929dc04ff54bb8fb01Douglas Gregordef print_preamble : Flag<"-print-preamble">,
304f033f1da4a34f8df6e95e9929dc04ff54bb8fb01Douglas Gregor  HelpText<"Print the \"preamble\" of a file, which is a candidate for implicit"
305f033f1da4a34f8df6e95e9929dc04ff54bb8fb01Douglas Gregor           " precompiled headers.">;
30633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_html : Flag<"-emit-html">,
30733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Output input source as HTML">;
30833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_print : Flag<"-ast-print">,
30933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs and then pretty-print them">;
31033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_print_xml : Flag<"-ast-print-xml">,
31133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs and then print them in XML format">;
31233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_dump : Flag<"-ast-dump">,
31333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs and then debug dump them">;
31433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_view : Flag<"-ast-view">,
31533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs and view them with GraphViz">;
316f78cc4360eb4284091d0d38f3055084360f8c753Douglas Gregordef boostcon : Flag<"-boostcon">,
317f78cc4360eb4284091d0d38f3055084360f8c753Douglas Gregor  HelpText<"BoostCon workshop mode">;
31833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef print_decl_contexts : Flag<"-print-decl-contexts">,
31933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print DeclContexts and their Decls">;
32033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_pth : Flag<"-emit-pth">,
32133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Generate pre-tokenized header file">;
32233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_pch : Flag<"-emit-pch">,
32333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Generate pre-compiled header file">;
32433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef S : Flag<"-S">,
32533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Emit native assembly code">;
32633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_llvm : Flag<"-emit-llvm">,
32733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs then convert to LLVM, emit .ll file">;
32833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_llvm_bc : Flag<"-emit-llvm-bc">,
32933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs then convert to LLVM, emit .bc file">;
33033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_llvm_only : Flag<"-emit-llvm-only">,
33133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs and convert to LLVM, discarding output">;
33232148cef25570a4fbe3ad0ec497ce3ae2cf1b774Daniel Dunbardef emit_codegen_only : Flag<"-emit-codegen-only">,
33332148cef25570a4fbe3ad0ec497ce3ae2cf1b774Daniel Dunbar  HelpText<"Generate machine code, but discard output">;
334da1573f95902a42aa4d11e8f45ab98ec7e27bc28Daniel Dunbardef emit_obj : Flag<"-emit-obj">,
335da1573f95902a42aa4d11e8f45ab98ec7e27bc28Daniel Dunbar  HelpText<"Emit native object files">;
33633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_test : Flag<"-rewrite-test">,
33733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Rewriter playground">;
33833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_objc : Flag<"-rewrite-objc">,
33933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Rewrite ObjC into C (code rewriter example)">;
34033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_macros : Flag<"-rewrite-macros">,
34133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Expand macros without full preprocessing">;
34233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
34333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar}
34433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
34533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef relocatable_pch : Flag<"-relocatable-pch">,
34633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Whether to build a relocatable precompiled header">;
347d6ac4524cd441808f152f7e10900a8315ea31c08Sebastian Redldef chained_pch : Flag<"-chained-pch">,
348d6ac4524cd441808f152f7e10900a8315ea31c08Sebastian Redl  HelpText<"Whether to chain the new precompiled header to the old one.">;
34933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef print_stats : Flag<"-print-stats">,
35033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print performance metrics and statistics">;
35133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ftime_report : Flag<"-ftime-report">,
35233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print the amount of time each phase of compilation takes">;
35333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
35446116ce06ae28e3fc3a34c513f2f63ac02d9a194Anders Carlssondef fdump_record_layouts : Flag<"-fdump-record-layouts">,
355b69eca5d2196c06870d3eeb62d689feebaaa8a4dDaniel Dunbar  HelpText<"Dump record layout information">;
356b69eca5d2196c06870d3eeb62d689feebaaa8a4dDaniel Dunbar
3573f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbar// Generic forwarding to LLVM options. This should only be used for debugging
3583f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbar// and experimental features.
3593f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbardef mllvm : Separate<"-mllvm">,
3603f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbar  HelpText<"Additional arguments to forward to LLVM's option processing">;
3613f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbar
36233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
36333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Language Options
36433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
36533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
36633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_builtin : Flag<"-fno-builtin">,
36733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable implicit builtin knowledge of functions">;
36833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef faltivec : Flag<"-faltivec">,
36933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable AltiVec vector initializer syntax">;
370c53e3658e667fed25d428d58204f295209b81d45Benjamin Kramerdef fno_access_control : Flag<"-fno-access-control">,
371380509aa107c550d0e77ee2db4069e127709427cJohn McCall  HelpText<"Disable C++ access control">;
372fc2844846e91398205fddc71196fe9dda04e105fNuno Lopesdef fno_assume_sane_operator_new : Flag<"-fno-assume-sane-operator-new">,
37399860173af0b070f93558c26b78bb7ac07820370Nuno Lopes  HelpText<"Don't assume that C++'s global operator new can't alias any pointer">;
374eb5d7b752651283de5abfcc2f91df7227582a08dChandler Carruthdef fgnu_keywords : Flag<"-fgnu-keywords">,
375eb5d7b752651283de5abfcc2f91df7227582a08dChandler Carruth  HelpText<"Allow GNU-extension keywords regardless of language standard">;
376eb5d7b752651283de5abfcc2f91df7227582a08dChandler Carruthdef fno_gnu_keywords : Flag<"-fno-gnu-keywords">,
377eb5d7b752651283de5abfcc2f91df7227582a08dChandler Carruth  HelpText<"Disallow GNU-extension keywords regardless of language standard">;
37833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fdollars_in_identifiers : Flag<"-fdollars-in-identifiers">,
37933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Allow '$' in identifiers">;
3808663b180085e9bc7a0a87c80cc3f722efef99e79Daniel Dunbardef fno_dollars_in_identifiers : Flag<"-fno-dollars-in-identifiers">,
3818663b180085e9bc7a0a87c80cc3f722efef99e79Daniel Dunbar  HelpText<"Disallow '$' in identifiers">;
38233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef femit_all_decls : Flag<"-femit-all-decls">,
38333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Emit all declarations, even if unused">;
38433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fblocks : Flag<"-fblocks">,
38533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"enable the 'blocks' language feature">;
38633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fheinous_gnu_extensions : Flag<"-fheinous-gnu-extensions">;  
38733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fexceptions : Flag<"-fexceptions">,
38833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable support for exception handling">;
38973482884560be041d86eccbd7dd5a6918677393bDaniel Dunbardef fsjlj_exceptions : Flag<"-fsjlj-exceptions">,
39073482884560be041d86eccbd7dd5a6918677393bDaniel Dunbar  HelpText<"Use SjLj style exceptions">;
39133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ffreestanding : Flag<"-ffreestanding">,
39233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Assert that the compilation takes place in a freestanding environment">;
39333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fgnu_runtime : Flag<"-fgnu-runtime">,
39433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Generate output compatible with the standard GNU Objective-C runtime">;
395ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbardef std_EQ : Joined<"-std=">,
39633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Language standard to compile for">;
397c31176d5ebbcd407aa512bbd5f717e35da629e7dDan Gohmandef fmath_errno : Flag<"-fmath-errno">,
398c31176d5ebbcd407aa512bbd5f717e35da629e7dDan Gohman  HelpText<"Require math functions to indicate errors by setting errno">;
39933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fms_extensions : Flag<"-fms-extensions">,
40033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Accept some non-standard constructs used in Microsoft header files ">;
40133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef main_file_name : Separate<"-main-file-name">,
40233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Main file name to use for debug info">;
40333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_elide_constructors : Flag<"-fno-elide-constructors">,
40433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable C++ copy constructor elision">;
40533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_lax_vector_conversions : Flag<"-fno-lax-vector-conversions">,
40633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disallow implicit conversions between vectors with a different number of elements or different element types">;
40733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_operator_names : Flag<"-fno-operator-names">,
40833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Do not treat C++ operator name keywords as synonyms for operators">;
409efb0fa9e11f75af51744a6159530ef7cc8efa24aDaniel Dunbardef fno_signed_char : Flag<"-fno-signed-char">,
410efb0fa9e11f75af51744a6159530ef7cc8efa24aDaniel Dunbar  HelpText<"Char is unsigned">;
411a0068fc64351db9c47916566e3b85ab733cd8d6dDouglas Gregordef fno_spell_checking : Flag<"-fno-spell-checking">,
412a0068fc64351db9c47916566e3b85ab733cd8d6dDouglas Gregor  HelpText<"Disable spell-checking">;  
413efb0fa9e11f75af51744a6159530ef7cc8efa24aDaniel Dunbardef fno_use_cxa_atexit : Flag<"-fno-use-cxa-atexit">,
414efb0fa9e11f75af51744a6159530ef7cc8efa24aDaniel Dunbar  HelpText<"Don't use __cxa_atexit for calling destructors">;
41533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fconstant_string_class : Separate<"-fconstant-string-class">,
416b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  MetaVarName<"<class name>">,
41733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Specify the class to use for constant Objective-C string objects.">;
41833e982bf782d851bfe5767acb1336fcf3419ac6bFariborz Jahaniandef fno_constant_cfstrings : Flag<"-fno-constant-cfstrings">,
41933e982bf782d851bfe5767acb1336fcf3419ac6bFariborz Jahanian  HelpText<"Enable creation of CodeFoundation-type constant strings">;
42033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fobjc_gc : Flag<"-fobjc-gc">,
42133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable Objective-C garbage collection">;
42233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fobjc_gc_only : Flag<"-fobjc-gc-only">,
42333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Use GC exclusively for Objective-C related memory management">;
424f643b9b338b797a824447207d7eab5f1187f4f34Daniel Dunbardef fobjc_dispatch_method_EQ : Joined<"-fobjc-dispatch-method=">,
425f643b9b338b797a824447207d7eab5f1187f4f34Daniel Dunbar  HelpText<"Objective-C dispatch method to use">;
42633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef print_ivar_layout : Flag<"-print-ivar-layout">,
42733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
42833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fobjc_nonfragile_abi : Flag<"-fobjc-nonfragile-abi">,
42933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"enable objective-c's nonfragile abi">;
430412e798941ca64e2e6b084323915fa9aa5f6bdf3Fariborz Jahaniandef fobjc_nonfragile_abi2 : Flag<"-fobjc-nonfragile-abi2">,
431412e798941ca64e2e6b084323915fa9aa5f6bdf3Fariborz Jahanian  HelpText<"enable objective-c's enhanced nonfragile abi">;
43233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ftrapv : Flag<"-ftrapv">,
43333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Trap on integer overflow">;
434a4d71455f0d418e16cc0c5c5aa55a3bad3494aeeChris Lattnerdef fwrapv : Flag<"-fwrapv">,
435a4d71455f0d418e16cc0c5c5aa55a3bad3494aeeChris Lattner  HelpText<"Treat signed integer overflow as two's complement">;
4367674352cf3e8f699914a2f739f1ae8c8c3480813Daniel Dunbardef pic_level : Separate<"-pic-level">,
437b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  HelpText<"Value for __PIC__">;
43833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef pthread : Flag<"-pthread">,
43933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Support POSIX threads in generated code">;
44033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fpascal_strings : Flag<"-fpascal-strings">,
44133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Recognize and construct Pascal-style string literals">;
44233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_rtti : Flag<"-fno-rtti">,
44333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable generation of rtti information">;
444fae3b2f4743dad616623c4df2fdb0f5128bd36d9Douglas Gregordef fno_validate_pch : Flag<"-fno-validate-pch">,
445fae3b2f4743dad616623c4df2fdb0f5128bd36d9Douglas Gregor  HelpText<"Disable validation of precompiled headers">;
44633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fshort_wchar : Flag<"-fshort-wchar">,
44733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Force wchar_t to be a short unsigned int">;
44833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef static_define : Flag<"-static-define">,
44933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Should __STATIC__ be defined">;
45033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef stack_protector : Separate<"-stack-protector">,
45133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable stack protectors">;
45233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fvisibility : Separate<"-fvisibility">,
45333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Default symbol visibility">;
4547cf84d66965a7706004d8590b5af5fe54b85f525Douglas Gregordef fvisibility_inlines_hidden : Flag<"-fvisibility-inlines-hidden">,
4557cf84d66965a7706004d8590b5af5fe54b85f525Douglas Gregor  HelpText<"Give inline C++ member functions default visibility by default">;
45633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ftemplate_depth : Separate<"-ftemplate-depth">,
45733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Maximum depth of recursive template instantiation">;
45833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef trigraphs : Flag<"-trigraphs">,
45933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Process trigraph sequences">;
46033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fwritable_strings : Flag<"-fwritable-strings">,
46133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Store string literals as writable data">;
462fb937b8c5f1c5dc9cfd4223b5cae230cc42b0287Daniel Dunbardef fno_bitfield_type_align : Flag<"-fno-bitfield-type-align">,
463fb937b8c5f1c5dc9cfd4223b5cae230cc42b0287Daniel Dunbar  HelpText<"Ignore bit-field types when aligning structures">;
46433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
46533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
46633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Header Search Options
46733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
46833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
46933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef nostdinc : Flag<"-nostdinc">,
47033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable standard #include directories">;
4714c2bcad7b843c10fd4a2ffd43da40bfefb4dc8baDouglas Gregordef nostdincxx : Flag<"-nostdinc++">,
4724c2bcad7b843c10fd4a2ffd43da40bfefb4dc8baDouglas Gregor  HelpText<"Disable standard #include directories for the C++ standard library">;
47333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef nobuiltininc : Flag<"-nobuiltininc">,
47433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable builtin #include directories">;
475b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef F : JoinedOrSeparate<"-F">, MetaVarName<"<directory>">,
47633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to framework include search path">;
477b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef I : JoinedOrSeparate<"-I">, MetaVarName<"<directory>">,
47833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to include search path">;
479b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef idirafter : JoinedOrSeparate<"-idirafter">, MetaVarName<"<directory>">,
48033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to AFTER include search path">;
481b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef iquote : JoinedOrSeparate<"-iquote">, MetaVarName<"<directory>">,
48233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to QUOTE include search path">;
483b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef isystem : JoinedOrSeparate<"-isystem">, MetaVarName<"<directory>">,
48433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to SYSTEM include search path">;
485b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef iprefix : JoinedOrSeparate<"-iprefix">, MetaVarName<"<prefix>">,
48633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Set the -iwithprefix/-iwithprefixbefore prefix">;
487b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef iwithprefix : JoinedOrSeparate<"-iwithprefix">, MetaVarName<"<dir>">,
48833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Set directory to SYSTEM include search path with prefix">;
489e4cb2a4b4ad6b9596f9109945a5b3a87949f375bMike Stumpdef iwithprefixbefore : JoinedOrSeparate<"-iwithprefixbefore">,
490e4cb2a4b4ad6b9596f9109945a5b3a87949f375bMike Stump  MetaVarName<"<dir>">,
49133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Set directory to include search path with prefix">;
492b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef isysroot : JoinedOrSeparate<"-isysroot">, MetaVarName<"<dir>">,
49333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Set the system root directory (usually /)">;
49433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef v : Flag<"-v">, HelpText<"Enable verbose output">;
49533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
49633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
49733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Preprocessor Options
49833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
49933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
500b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef D : JoinedOrSeparate<"-D">, MetaVarName<"<macro>">,
50133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Predefine the specified macro">;
502b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef include_ : JoinedOrSeparate<"-include">, MetaVarName<"<file>">, EnumName<"include">,
50333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include file before parsing">;
504b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef imacros : JoinedOrSeparate<"-imacros">, MetaVarName<"<file>">,
50533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include macros from file before parsing">;
506b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef include_pch : Separate<"-include-pch">, MetaVarName<"<file>">,
50733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include precompiled header file">;
508b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef include_pth : Separate<"-include-pth">, MetaVarName<"<file>">,
50933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include file before parsing">;
510f4f6c9db68465b886ec2e596feaa6ecc782395a4Douglas Gregordef preamble_bytes_EQ : Joined<"-preamble-bytes=">,
5113d398aa5c2be8919bbc0144bce611c48119bc861Douglas Gregor  HelpText<"Assume that the precompiled header is a precompiled preamble "
5123d398aa5c2be8919bbc0144bce611c48119bc861Douglas Gregor           "covering the first N bytes of the main file">;
513b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef token_cache : Separate<"-token-cache">, MetaVarName<"<path>">,
51433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Use specified token cache file">;
515b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef U : JoinedOrSeparate<"-U">, MetaVarName<"<macro>">,
51633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Undefine the specified macro">;
517b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef undef : Flag<"-undef">, MetaVarName<"<macro>">,
51833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"undef all system defines">;
51994dc8f640ebea52241412512ed48601626edbc58Douglas Gregordef detailed_preprocessing_record : Flag<"-detailed-preprocessing-record">,
52094dc8f640ebea52241412512ed48601626edbc58Douglas Gregor  HelpText<"include a detailed record of preprocessing actions">;
52194dc8f640ebea52241412512ed48601626edbc58Douglas Gregor  
52233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
52333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Preprocessed Output Options
52433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
52533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
52633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef P : Flag<"-P">,
52733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable linemarker output in -E mode">;
52833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef C : Flag<"-C">,
52933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable comment output in -E mode">;
53033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef CC : Flag<"-CC">,
53133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable comment output in -E mode, even from macro expansions">;
53233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dM : Flag<"-dM">,
53333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print macro definitions in -E mode instead of normal output">;
53433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dD : Flag<"-dD">,
53533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print macro definitions in -E mode in addition to normal output">;
536