CC1Options.td revision 50a9a12d4f7387bcff3213d4b56e74bab9f4f5d2
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">;
2939065a5494613952b4810d1d6b28348cef155e12Daniel Dunbardef target_linker_version : Separate<"-target-linker-version">,
3039065a5494613952b4810d1d6b28348cef155e12Daniel Dunbar  HelpText<"Target linker version">;
3131db76cb2dde031ab3262808ac233889daf7d720Daniel Dunbardef triple : Separate<"-triple">,
328adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar  HelpText<"Specify target triple (e.g. i686-apple-darwin9)">;
33ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbardef triple_EQ : Joined<"-triple=">, Alias<triple>;
3450a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar
3533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
36e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar// Analyzer Options
3733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
38e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
399b823e8e1ccb8a2cb49923bad22a80ca96f41f92Ted Kremenekdef analysis_UnoptimizedCFG : Flag<"-unoptimized-cfg">,
40c9c6b904f3fb4f515f7f041b7c49f5e3b7c53bd3Ted Kremenek  HelpText<"Generate unoptimized CFGs for all analyses">;
419121ba232903ebe61e7bbe14ca294cf0f07dfa96Marcin Swiderskidef analysis_CFGAddImplicitDtors : Flag<"-cfg-add-implicit-dtors">,
429121ba232903ebe61e7bbe14ca294cf0f07dfa96Marcin Swiderski  HelpText<"Add C++ implicit destructors to CFGs for all analyses">;
439121ba232903ebe61e7bbe14ca294cf0f07dfa96Marcin Swiderskidef analysis_CFGAddInitializers : Flag<"-cfg-add-initializers">,
449121ba232903ebe61e7bbe14ca294cf0f07dfa96Marcin Swiderski  HelpText<"Add C++ initializers to CFGs for all analyses">;
45e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
46e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_store : Separate<"-analyzer-store">,
47e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Source Code Analysis - Abstract Memory Store Models">;
48e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_store_EQ : Joined<"-analyzer-store=">, Alias<analyzer_store>;
49e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
50e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_constraints : Separate<"-analyzer-constraints">,
51e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Source Code Analysis - Symbolic Constraint Engines">;
52e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_constraints_EQ : Joined<"-analyzer-constraints=">,
53e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  Alias<analyzer_constraints>;
54e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
55e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_output : Separate<"-analyzer-output">,
56e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Source Code Analysis - Output Options">;
57e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_output_EQ : Joined<"-analyzer-output=">,
58e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  Alias<analyzer_output>;
59e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
60d30952838421ddfb9f7e346b2ba8213889a5f789Anna Zaksdef analyzer_purge : Separate<"-analyzer-purge">,
61d30952838421ddfb9f7e346b2ba8213889a5f789Anna Zaks  HelpText<"Source Code Analysis - Dead Symbol Removal Frequency">;
62d30952838421ddfb9f7e346b2ba8213889a5f789Anna Zaksdef analyzer_purge_EQ : Joined<"-analyzer-purge=">, Alias<analyzer_purge>;
63d30952838421ddfb9f7e346b2ba8213889a5f789Anna Zaks
64e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_opt_analyze_headers : Flag<"-analyzer-opt-analyze-headers">,
65e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Force the static analyzer to analyze functions defined in header files">;
66fc576514d06c46a7cac49500169411d82f38d04bTed Kremenekdef analyzer_opt_analyze_nested_blocks : Flag<"-analyzer-opt-analyze-nested-blocks">,
6720249a1af2e462dcafdd6a350f1c7967b264ff25Michael J. Spencer  HelpText<"Analyze the definitions of blocks in addition to functions">;
68e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_display_progress : Flag<"-analyzer-display-progress">,
69e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Emit verbose output about the analyzer's progress">;
70e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyze_function : Separate<"-analyze-function">,
71e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Run analysis on specific function">;
72e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyze_function_EQ : Joined<"-analyze-function=">, Alias<analyze_function>;
73e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_eagerly_assume : Flag<"-analyzer-eagerly-assume">,
74e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Eagerly assume the truth/falseness of some symbolic constraints">;
75d767d81290288c030f3be0be1d3e62b9c8df51dcTed Kremenekdef analyzer_no_eagerly_trim_egraph : Flag<"-analyzer-no-eagerly-trim-egraph">,
76d767d81290288c030f3be0be1d3e62b9c8df51dcTed Kremenek  HelpText<"Don't eagerly remove uninteresting ExplodedNodes from the ExplodedGraph">;
77e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef trim_egraph : Flag<"-trim-egraph">,
78e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Only show error-related paths in the analysis graph">;
79e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_viz_egraph_graphviz : Flag<"-analyzer-viz-egraph-graphviz">,
80e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Display exploded graph using GraphViz">;
81e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_viz_egraph_ubigraph : Flag<"-analyzer-viz-egraph-ubigraph">,
82e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar  HelpText<"Display exploded graph using Ubigraph">;
837b99d12b4ca67fccdf5090761ba257732e954e75Zhongxing Xudef analyzer_inline_call : Flag<"-analyzer-inline-call">,
847b99d12b4ca67fccdf5090761ba257732e954e75Zhongxing Xu  HelpText<"Experimental transfer function inlining callees when its definition is available.">;
85c09289d104b8e01ecd998e3f08b2b0561049e1dcZhongxing Xudef analyzer_max_nodes : Separate<"-analyzer-max-nodes">,
86cf9ce13774dad86f780d84cd41e6bd64c039324aTom Care  HelpText<"The maximum number of nodes the analyzer can generate (150000 default, 0 = no limit)">;
876362b893731ccf4480a96527db9e55e04b801503Zhongxing Xudef analyzer_max_loop : Separate<"-analyzer-max-loop">,
886362b893731ccf4480a96527db9e55e04b801503Zhongxing Xu  HelpText<"The maximum number of times the analyzer will go through a loop">;
89e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar
9043dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidisdef analyzer_checker : Separate<"-analyzer-checker">,
9143dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidis  HelpText<"Choose analyzer checkers to enable">;
9243dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidisdef analyzer_checker_EQ : Joined<"-analyzer-checker=">,
9343dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidis  Alias<analyzer_checker>;
9443dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidis
9543dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidisdef analyzer_disable_checker : Separate<"-analyzer-disable-checker">,
9643dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidis  HelpText<"Choose analyzer checkers to disable">;
9743dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidisdef analyzer_disable_checker_EQ : Joined<"-analyzer-disable-checker=">,
9843dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidis  Alias<analyzer_disable_checker>;
9943dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidis
100116f3640daee424dfcdbe55e80be5a67476be4b0Argyrios Kyrtzidisdef analyzer_checker_help : Flag<"-analyzer-checker-help">,
101116f3640daee424dfcdbe55e80be5a67476be4b0Argyrios Kyrtzidis  HelpText<"Display the list of analyzer checkers that are available">;
102116f3640daee424dfcdbe55e80be5a67476be4b0Argyrios Kyrtzidis
10333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
104b5c6babd3d8e0233b8ea5a4eb1e2700e30c0d396Fariborz Jahanian// Migrator Options
105b5c6babd3d8e0233b8ea5a4eb1e2700e30c0d396Fariborz Jahanian//===----------------------------------------------------------------------===//
106b5c6babd3d8e0233b8ea5a4eb1e2700e30c0d396Fariborz Jahaniandef migrator_no_nsalloc_error : Flag<"-no-ns-alloc-error">,
107b5c6babd3d8e0233b8ea5a4eb1e2700e30c0d396Fariborz Jahanian  HelpText<"Do not error on use of NSAllocateCollectable/NSReallocateCollectable">;
108b5c6babd3d8e0233b8ea5a4eb1e2700e30c0d396Fariborz Jahanian
10926f0e4e7ab534fb42485c930f20a424ecc8c9830Fariborz Jahaniandef migrator_no_finalize_removal : Flag<"-no-finalize-removal">,
11026f0e4e7ab534fb42485c930f20a424ecc8c9830Fariborz Jahanian  HelpText<"Do not remove finalize method in gc mode">;
11126f0e4e7ab534fb42485c930f20a424ecc8c9830Fariborz Jahanian
112b5c6babd3d8e0233b8ea5a4eb1e2700e30c0d396Fariborz Jahanian//===----------------------------------------------------------------------===//
11350a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar// CodeGen Options
11433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
11550a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar
11650a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef disable_llvm_optzns : Flag<"-disable-llvm-optzns">,
11750a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Don't run LLVM optimization passes">;
118824e19ed926d7aa1296a007d0607ac4437e3c4a9John McCalldef disable_llvm_verifier : Flag<"-disable-llvm-verifier">,
119824e19ed926d7aa1296a007d0607ac4437e3c4a9John McCall  HelpText<"Don't run the LLVM IR verifier pass">;
12050a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef disable_red_zone : Flag<"-disable-red-zone">,
12150a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Do not emit code that uses the red zone.">;
1227c4fd9121f5885096fd3258d20a984e3f08f8603Nick Lewyckydef fdebug_compilation_dir : Separate<"-fdebug-compilation-dir">,
1237c4fd9121f5885096fd3258d20a984e3f08f8603Nick Lewycky  HelpText<"The compilation directory to embed in the debug info.">;
124f2d8b9f967a1ab53ee9fdbcc3ac0a4ee0a83a26eDaniel Dunbardef dwarf_debug_flags : Separate<"-dwarf-debug-flags">,
125f2d8b9f967a1ab53ee9fdbcc3ac0a4ee0a83a26eDaniel Dunbar  HelpText<"The string to embed in the Dwarf debug flags record.">;
1261b4eca67e073f0beefb9924cbe6c65427869f1faKostya Serebryanydef faddress_sanitizer: Flag<"-faddress-sanitizer">,
1271b4eca67e073f0beefb9924cbe6c65427869f1faKostya Serebryany  HelpText<"Enable AddressSanitizer instrumentation (memory error detection)">;
12832096695c76033a6b0b1747c439f7378a11e8312John McCalldef fforbid_guard_variables : Flag<"-fforbid-guard-variables">,
12932096695c76033a6b0b1747c439f7378a11e8312John McCall  HelpText<"Emit an error if a C++ static local initializer would need a guard variable">;
13050a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef g : Flag<"-g">, HelpText<"Generate source level debug information">;
131af6fbe42e4e0bbc42e9bf824ae2a24417ae1665fChad Rosierdef fno_dwarf2_cfi_asm : Flag<"-fno-dwarf2-cfi-asm">,
132af6fbe42e4e0bbc42e9bf824ae2a24417ae1665fChad Rosier  HelpText<"Don't use the cfi directives">;
133ea523d73a6de06f828952a02f5ff86e4cc631695Nick Lewyckydef fno_dwarf_directory_asm : Flag<"-fno-dwarf-directory-asm">,
134ea523d73a6de06f828952a02f5ff86e4cc631695Nick Lewycky  HelpText<"Don't separate directory and filename in .file directives">;
1359c276ae0f24d4cee8f7954069d4b8eae45d0447dMike Stumpdef fcatch_undefined_behavior : Flag<"-fcatch-undefined-behavior">,
136af6fbe42e4e0bbc42e9bf824ae2a24417ae1665fChad Rosier  HelpText<"Generate runtime checks for undefined behavior.">;
137c69e1cf04323f2e786d40e8a5ba84e77ee1c6827Devang Pateldef flimit_debug_info : Flag<"-flimit-debug-info">,
138c69e1cf04323f2e786d40e8a5ba84e77ee1c6827Devang Patel  HelpText<"Limit debug information produced to reduce size of debug binary">;
13950a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef fno_common : Flag<"-fno-common">,
14050a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Compile common globals like normal definitions">;
14150a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef no_implicit_float : Flag<"-no-implicit-float">,
14250a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Don't generate implicit floating point instructions (x86-only)">;
1437255a2d997b15beae82e627052fdb1b2474495c2Chris Lattnerdef finstrument_functions : Flag<"-finstrument-functions">,
1447255a2d997b15beae82e627052fdb1b2474495c2Chris Lattner  HelpText<"Generate calls to instrument function entry and exit">;
145033be8bd33e0f84db8158771e13528e071563b73Devang Pateldef fno_limit_debug_info : Flag<"-fno-limit-debug-info">,
146033be8bd33e0f84db8158771e13528e071563b73Devang Patel  HelpText<"Do not limit debug information produced to reduce size of debug binary">;
14750a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef fno_merge_all_constants : Flag<"-fno-merge-all-constants">,
14850a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Disallow merging of constants.">;
149a508b7de6c5246ab04ed69d0ab4e9977ec1fb4d4Anders Carlssondef fno_threadsafe_statics : Flag<"-fno-threadsafe-statics">,
150a508b7de6c5246ab04ed69d0ab4e9977ec1fb4d4Anders Carlsson  HelpText<"Do not emit code to make initialization of local statics thread safe">;
151824d7ea07a4e9208925daa6ae9289fb2b39bce9fAnders Carlssondef fdump_vtable_layouts : Flag<"-fdump-vtable-layouts">,
152824d7ea07a4e9208925daa6ae9289fb2b39bce9fAnders Carlsson  HelpText<"Dump the layouts of all vtables that will be emitted in a translation unit">;
153bbea7168326d810eff18dfb8bc43c7790fd55010Chris Lattnerdef ffunction_sections : Flag<"-ffunction-sections">,
154bbea7168326d810eff18dfb8bc43c7790fd55010Chris Lattner  HelpText<"Place each function in its own section (ELF Only)">;
155bbea7168326d810eff18dfb8bc43c7790fd55010Chris Lattnerdef fdata_sections : Flag<"-fdata-sections">,
156bbea7168326d810eff18dfb8bc43c7790fd55010Chris Lattner  HelpText<"Place each data in its own section (ELF Only)">;
15771fd6cc843719cab528a5df0899ad3d15cb9297fBob Wilsondef ftrap_function_EQ : Joined<"-ftrap-function=">,
15871fd6cc843719cab528a5df0899ad3d15cb9297fBob Wilson  HelpText<"Issue call to specified function rather than a trap instruction">;
159f84d409903dd4107c8cef5a08fcfce6e5c21d4deEric Christopherdef funroll_loops : Flag<"-funroll-loops">,
160f84d409903dd4107c8cef5a08fcfce6e5c21d4deEric Christopher  HelpText<"Turn on loop unroller">;
161e8ba8d78a258ec992d3521eebdae8324db777b14Nick Lewyckydef femit_coverage_notes : Flag<"-femit-coverage-notes">,
162e8ba8d78a258ec992d3521eebdae8324db777b14Nick Lewycky  HelpText<"Emit a gcov coverage notes file when compiling.">;
163e8ba8d78a258ec992d3521eebdae8324db777b14Nick Lewyckydef femit_coverage_data: Flag<"-femit-coverage-data">,
164e8ba8d78a258ec992d3521eebdae8324db777b14Nick Lewycky  HelpText<"Instrument the program to emit gcov coverage data when run.">;
1653dc05418538c719fea48b906bfa4febe5296e126Nick Lewyckydef coverage_file : Separate<"-coverage-file">,
1663dc05418538c719fea48b906bfa4febe5296e126Nick Lewycky  HelpText<"Emit coverage data to this filename. The extension will be replaced.">;
1673dc05418538c719fea48b906bfa4febe5296e126Nick Lewyckydef coverage_file_EQ : Joined<"-coverage-file=">, Alias<coverage_file>;
168e26bdb91b7e3912ffe895b78a446db94471a59ddDaniel Dunbardef fuse_register_sized_bitfield_access: Flag<"-fuse-register-sized-bitfield-access">,
169e26bdb91b7e3912ffe895b78a446db94471a59ddDaniel Dunbar  HelpText<"Use register sized accesses to bit-fields, when possible.">;
1704d5625e15bb215c2241c022df8dc7b04438970c6Dan Gohmandef relaxed_aliasing : Flag<"-relaxed-aliasing">,
171be570121a6da523020c3b11eb15aba97becb5d2fDevang Patel  HelpText<"Turn off Type Based Alias Analysis">;
172f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef masm_verbose : Flag<"-masm-verbose">,
173f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Generate verbose assembly output">;
174f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mcode_model : Separate<"-mcode-model">,
175f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"The code model to use">;
176f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mdebug_pass : Separate<"-mdebug-pass">,
177f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Enable additional debug output">;
178f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mdisable_fp_elim : Flag<"-mdisable-fp-elim">,
179f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Disable frame pointer elimination optimization">;
1801db772bd68502e0dabbd8efeb7f7c64a4ab2e37aNick Lewyckydef mdisable_tail_calls : Flag<"-mdisable-tail-calls">,
1811db772bd68502e0dabbd8efeb7f7c64a4ab2e37aNick Lewycky  HelpText<"Disable tail call optimization, keeping the call stack accurate">;
182001f628a693960380e37c2b58a1009da77d7e425Daniel Dunbardef menable_no_infinities : Flag<"-menable-no-infs">,
183001f628a693960380e37c2b58a1009da77d7e425Daniel Dunbar  HelpText<"Allow optimization to assume there are no infinities.">;
184001f628a693960380e37c2b58a1009da77d7e425Daniel Dunbardef menable_no_nans : Flag<"-menable-no-nans">,
185001f628a693960380e37c2b58a1009da77d7e425Daniel Dunbar  HelpText<"Allow optimization to assume there are no NaNs.">;
186abf07a7fb669dcb74040eef948d61dfe3c59ff17Chandler Carruthdef menable_unsafe_fp_math : Flag<"-menable-unsafe-fp-math">,
187abf07a7fb669dcb74040eef948d61dfe3c59ff17Chandler Carruth  HelpText<"Allow unsafe floating-point math optimizations which may decrease "
188abf07a7fb669dcb74040eef948d61dfe3c59ff17Chandler Carruth           "precision">;
18987667aafe68c366be57f5afb60428237593da0edDaniel Dunbardef mfloat_abi : Separate<"-mfloat-abi">,
1903b315264d1a6fa303e20fe0caec306ccafc090deDaniel Dunbar  HelpText<"The float ABI to use">;
1911b9060553221720152e12981109549e0a1d8e3a1Chad Rosierdef mno_global_merge : Flag<"-mno-global-merge">,
1921b9060553221720152e12981109549e0a1d8e3a1Chad Rosier  HelpText<"Disable merging of globals">;
193f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mlimit_float_precision : Separate<"-mlimit-float-precision">,
194f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Limit float precision to the given value">;
195c3b9014c7236a15cf467662264b243a22c420312Nick Lewyckydef mno_exec_stack : Flag<"-mnoexecstack">,
196c3b9014c7236a15cf467662264b243a22c420312Nick Lewycky  HelpText<"Mark the file as not needing an executable stack">;
197f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mno_zero_initialized_in_bss : Flag<"-mno-zero-initialized-in-bss">,
198f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Do not put zero initialized data in the BSS">;
1991ad6648cce57bd187f1853f58fef26cd9bf4934fDaniel Dunbardef momit_leaf_frame_pointer : Flag<"-momit-leaf-frame-pointer">,
2001ad6648cce57bd187f1853f58fef26cd9bf4934fDaniel Dunbar  HelpText<"Omit frame pointer setup for leaf functions.">;
20187667aafe68c366be57f5afb60428237593da0edDaniel Dunbardef msoft_float : Flag<"-msoft-float">,
2023b315264d1a6fa303e20fe0caec306ccafc090deDaniel Dunbar  HelpText<"Use software floating point">;
2033c66d30d513106bb794990c5e4ba36a31ac19f15Daniel Dunbardef backend_option : Separate<"-backend-option">,
2043c66d30d513106bb794990c5e4ba36a31ac19f15Daniel Dunbar  HelpText<"Additional arguments to forward to LLVM backend (during code gen)">;
20517d3fea677753e6e3e82ffe2cbdeccbf5f2e7497Daniel Dunbardef mregparm : Separate<"-mregparm">,
20617d3fea677753e6e3e82ffe2cbdeccbf5f2e7497Daniel Dunbar  HelpText<"Limit the number of registers available for integer arguments">;
2074ecc9b73b3716775ed4e09091e300796a9a72378Daniel Dunbardef mrelax_all : Flag<"-mrelax-all">,
208969323239f16589329d091a2b8ef200fcfe7c9e9Daniel Dunbar  HelpText<"(integrated-as) Relax all machine instructions">;
209969323239f16589329d091a2b8ef200fcfe7c9e9Daniel Dunbardef msave_temp_labels : Flag<"-msave-temp-labels">,
210969323239f16589329d091a2b8ef200fcfe7c9e9Daniel Dunbar  HelpText<"(integrated-as) Save temporary labels">;
211cfe9af250f466e7e38becea4428990448ae07737Roman Divackydef mrtd: Flag<"-mrtd">,
212cfe9af250f466e7e38becea4428990448ae07737Roman Divacky  HelpText<"Make StdCall calling convention the default">;
213f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mrelocation_model : Separate<"-mrelocation-model">,
214f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"The relocation model to use">;
215f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef munwind_tables : Flag<"-munwind-tables">,
216f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar  HelpText<"Generate unwinding tables for all functions">;
217d46f98573ba104eda102dd3224b2dca69f1c6336John McCalldef mconstructor_aliases : Flag<"-mconstructor-aliases">,
218d46f98573ba104eda102dd3224b2dca69f1c6336John McCall  HelpText<"Emit complete constructors and destructors as aliases when possible">;
2196f75550e40a9177db9979fc130ce3ece026b137dDouglas Gregordef mms_bitfields : Flag<"-mms-bitfields">,
2206f75550e40a9177db9979fc130ce3ece026b137dDouglas Gregor  HelpText<"Set the default structure layout to be compatible with the Microsoft compiler standard.">;
2211a584022c86bd0778cf7ad1fbea08c78869cf216Eric Christopherdef mstackrealign : Flag<"-mstackrealign">,
2221a584022c86bd0778cf7ad1fbea08c78869cf216Eric Christopher  HelpText<"Force realign the stack at entry to every function.">;
223e9d11dbfe1f3286c5f8a2f2fc8ac759f63890655Joerg Sonnenbergerdef mstack_alignment : Joined<"-mstack-alignment=">,
224e9d11dbfe1f3286c5f8a2f2fc8ac759f63890655Joerg Sonnenberger  HelpText<"Set the stack alignment">;
22522a7dfea585703d6755db69b83e29a0e6ee10369Peter Collingbournedef mlink_bitcode_file : Separate<"-mlink-bitcode-file">,
22622a7dfea585703d6755db69b83e29a0e6ee10369Peter Collingbourne  HelpText<"Link the given bitcode file before performing optimizations.">;
22750a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef O : Joined<"-O">, HelpText<"Optimization level">;
22850a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef Os : Flag<"-Os">, HelpText<"Optimize for size">;
229a0fa203f04235cb6d05eeb8cea3392a01aa7571bBob Wilsondef Oz : Flag<"-Oz">, HelpText<"Optimize for size, regardless of performance">;
230be4c8705e499b55548467eb7adaa23cbc6edfef9Roman Divackydef pg : Flag<"-pg">, HelpText<"Enable mcount instrumentation">;
2311bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar
23233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
2331bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar// Dependency Output Options
23433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
23533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
2361bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef dependency_file : Separate<"-dependency-file">,
2371bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar  HelpText<"Filename (or -) to write dependency output to">;
238773303a505c23d73da624f1e6abcf41a393dad2bDouglas Gregordef dependency_dot : Separate<"-dependency-dot">,
239773303a505c23d73da624f1e6abcf41a393dad2bDouglas Gregor  HelpText<"Filename to write DOT-formatted header dependencies to">;
2401bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef sys_header_deps : Flag<"-sys-header-deps">,
2411bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar  HelpText<"Include system headers in dependency output">;
242b34d69b9292534c1c574f168f0ac10aea652adcaDaniel Dunbardef header_include_file : Separate<"-header-include-file">,
243b34d69b9292534c1c574f168f0ac10aea652adcaDaniel Dunbar  HelpText<"Filename (or -) to write header include output to">;
244b34d69b9292534c1c574f168f0ac10aea652adcaDaniel Dunbardef H : Flag<"-H">,
245b34d69b9292534c1c574f168f0ac10aea652adcaDaniel Dunbar  HelpText<"Show header includes and nesting depth">;
2463edbeb78fe5ea7fffea7a94575478cde19e830e0Chris Lattnerdef MQ : Separate<"-MQ">, HelpText<"Specify target to quote for dependency">;
2471bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef MT : Separate<"-MT">, HelpText<"Specify target for dependency">;
2481bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef MP : Flag<"-MP">,
2491bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar  HelpText<"Create phony target for each dependency (other than main file)">;
250bb52786da8d055568eef6e5694288c1258bc8c2aPeter Collingbournedef MG : Flag<"-MG">, HelpText<"Add missing headers to dependency list">;
25121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar
25233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
25321affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// Diagnostic Options
25433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
25521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar
25621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef dump_build_information : Separate<"-dump-build-information">,
257b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  MetaVarName<"<filename>">,
25821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"output a dump of some build information to a file">;
25908c6695f6018fb6cb1a7c7d311a851aa5c233bc0Daniel Dunbardef diagnostic_log_file : Separate<"-diagnostic-log-file">,
26008c6695f6018fb6cb1a7c7d311a851aa5c233bc0Daniel Dunbar  HelpText<"Filename (or -) to log diagnostics to">;
26136f6e30d5c21a693abf2612ef086e83e9696f0e0Ted Kremenekdef diagnostic_serialized_file : Separate<"-serialize-diagnostic-file">,
2627800212ef29be314d55814e8dcc568ff8beed106Ted Kremenek  MetaVarName<"<filename>">,
2637800212ef29be314d55814e8dcc568ff8beed106Ted Kremenek  HelpText<"File for serializing diagnostics in a binary format">;
26421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_show_column : Flag<"-fno-show-column">,
26521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Do not include column number on diagnostics">;
266c9471b0ff1815ed0149dbfcad0f385ed8648eeb0Douglas Gregordef fshow_column : Flag<"-fshow-column">,
267c9471b0ff1815ed0149dbfcad0f385ed8648eeb0Douglas Gregor  HelpText<"Include column number on diagnostics">;
26821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_show_source_location : Flag<"-fno-show-source-location">,
26921affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Do not include source location information with diagnostics">;
2705edbdcc62098e305cd55654814dcf783a3f3c477Jeffrey Yasskindef fshow_overloads_EQ : Joined<"-fshow-overloads=">,
2715edbdcc62098e305cd55654814dcf783a3f3c477Jeffrey Yasskin  HelpText<"Which overload candidates to show when overload resolution fails: "
2725edbdcc62098e305cd55654814dcf783a3f3c477Jeffrey Yasskin           "best|all; defaults to all">;
27321affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_caret_diagnostics : Flag<"-fno-caret-diagnostics">,
27421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Do not include source line and caret with diagnostics">;
27521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_diagnostics_fixit_info : Flag<"-fno-diagnostics-fixit-info">,
27621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Do not include fixit information in diagnostics">;
277abaca7a8be8e79cc01354676e3bcb26575640311Chandler Carruthdef fno_diagnostics_show_note_include_stack :
278abaca7a8be8e79cc01354676e3bcb26575640311Chandler Carruth  Flag<"-fno-diagnostics-show-note-include-stack">,
279abaca7a8be8e79cc01354676e3bcb26575640311Chandler Carruth  HelpText<"Display include stacks for diagnostic notes">;
28033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef w : Flag<"-w">, HelpText<"Suppress all warnings">;
28121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef pedantic : Flag<"-pedantic">;
28221affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef pedantic_errors : Flag<"-pedantic-errors">;
28321affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar
28421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// This gets all -W options, including -Werror, -W[no-]system-headers, etc.  The
28521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// driver has stripped off -Wa,foo etc.  The driver has also translated -W to
28621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// -Wextra, so we don't need to worry about it.
28721affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef W : Joined<"-W">;
28821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar
28921affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fdiagnostics_print_source_range_info : Flag<"-fdiagnostics-print-source-range-info">,
29021affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Print source range spans in numeric form">;
2914786c15f4977c7cee98fde3ebdee213dba23848bDouglas Gregordef fdiagnostics_parseable_fixits : Flag<"-fdiagnostics-parseable-fixits">,
2924786c15f4977c7cee98fde3ebdee213dba23848bDouglas Gregor  HelpText<"Print fix-its in machine parseable form">;
2937d2b8c1fcc2b707be78b09930a7767477822462fDouglas Gregordef fdiagnostics_show_name : Flag<"-fdiagnostics-show-name">,
2947d2b8c1fcc2b707be78b09930a7767477822462fDouglas Gregor  HelpText<"Print diagnostic name">;
29521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fdiagnostics_show_option : Flag<"-fdiagnostics-show-option">,
2967d2b8c1fcc2b707be78b09930a7767477822462fDouglas Gregor  HelpText<"Print option name with mappable diagnostics">;
297c9471b0ff1815ed0149dbfcad0f385ed8648eeb0Douglas Gregordef fdiagnostics_format : Separate<"-fdiagnostics-format">,
298c9471b0ff1815ed0149dbfcad0f385ed8648eeb0Douglas Gregor  HelpText<"Change diagnostic formatting to match IDE and command line tools">;
2996fbe8398ba1680ffc5daa7395850ff8765b7905bChris Lattnerdef fdiagnostics_show_category : Separate<"-fdiagnostics-show-category">,
3006fbe8398ba1680ffc5daa7395850ff8765b7905bChris Lattner  HelpText<"Print diagnostic category">;
301abaca7a8be8e79cc01354676e3bcb26575640311Chandler Carruthdef fdiagnostics_show_note_include_stack :
302abaca7a8be8e79cc01354676e3bcb26575640311Chandler Carruth  Flag<"-fdiagnostics-show-note-include-stack">,
303abaca7a8be8e79cc01354676e3bcb26575640311Chandler Carruth  HelpText<"Display include stacks for diagnostic notes">;
304124fca533d9fef2e3f6359283909bd342b5f5f26Chris Lattnerdef ftabstop : Separate<"-ftabstop">, MetaVarName<"<N>">,
305124fca533d9fef2e3f6359283909bd342b5f5f26Chris Lattner  HelpText<"Set the tab stop distance.">;
306c100214fdc41a7ea215f75d433eb1cb829fd4330Chris Lattnerdef ferror_limit : Separate<"-ferror-limit">, MetaVarName<"<N>">,
307c100214fdc41a7ea215f75d433eb1cb829fd4330Chris Lattner  HelpText<"Set the maximum number of errors to emit before stopping (0 = no limit).">;
3086c1cb9916e9988dcdd65b9266dbe24afd173427aDouglas Gregordef fmacro_backtrace_limit : Separate<"-fmacro-backtrace-limit">, MetaVarName<"<N>">,
309b29a6108b164b183d32d8c14bf5b7492a483c7c9Chandler Carruth  HelpText<"Set the maximum number of entries to print in a macro expansion backtrace (0 = no limit).">;
310575cf3791216c33770ba950430493cdd43099f8fDouglas Gregordef ftemplate_backtrace_limit : Separate<"-ftemplate-backtrace-limit">, MetaVarName<"<N>">,
311575cf3791216c33770ba950430493cdd43099f8fDouglas Gregor  HelpText<"Set the maximum number of entries to print in a template instantiation backtrace (0 = no limit).">;
31208d6e032a2a0a8656d12b3b7b93942987bb12eb7Richard Smithdef fconstexpr_backtrace_limit : Separate<"-fconstexpr-backtrace-limit">, MetaVarName<"<N>">,
31308d6e032a2a0a8656d12b3b7b93942987bb12eb7Richard Smith  HelpText<"Set the maximum number of entries to print in a constexpr evaluation backtrace (0 = no limit).">;
314b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef fmessage_length : Separate<"-fmessage-length">, MetaVarName<"<N>">,
31521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Format message diagnostics so that they fit within N columns or fewer, when possible.">;
31621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fcolor_diagnostics : Flag<"-fcolor-diagnostics">,
31721affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Use colors in diagnostics">;
31821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef Wno_rewrite_macros : Flag<"-Wno-rewrite-macros">,
31921affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Silence ObjC rewriting warnings">;
32021affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef verify : Flag<"-verify">,
32121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar  HelpText<"Verify emitted diagnostics and warnings">;
32233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
32333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
32433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Frontend Options
32533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
32633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
3278ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbar// This isn't normally used, it is just here so we can parse a
3288ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbar// CompilerInvocation out of a driver-derived argument vector.
3298ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbardef cc1 : Flag<"-cc1">;
3308ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbar
3319bed8798964d9f07599c2c9199701f86fbc70e20Douglas Gregordef ast_merge : Separate<"-ast-merge">,
3329bed8798964d9f07599c2c9199701f86fbc70e20Douglas Gregor  MetaVarName<"<ast file>">,
3339bed8798964d9f07599c2c9199701f86fbc70e20Douglas Gregor  HelpText<"Merge the given AST file into the translation unit being compiled.">;
33433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef code_completion_at : Separate<"-code-completion-at">,
335b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  MetaVarName<"<file>:<line>:<column>">,
33633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Dump code-completion information at a location">;
337e14b5f5237d0740c2b21c50b2eb41a06e778d820Daniel Dunbardef remap_file : Separate<"-remap-file">,
338e14b5f5237d0740c2b21c50b2eb41a06e778d820Daniel Dunbar  MetaVarName<"<from>;<to>">,
339e14b5f5237d0740c2b21c50b2eb41a06e778d820Daniel Dunbar  HelpText<"Replace the contents of the <from> file with the contents of the <to> file">;
340ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbardef code_completion_at_EQ : Joined<"-code-completion-at=">,
341ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbar  Alias<code_completion_at>;
34233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef code_completion_macros : Flag<"-code-completion-macros">,
34333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include macros in code-completion results">;
344d8e8a58ee35ab334ab9d0c2154dca029c1822e8aDouglas Gregordef code_completion_patterns : Flag<"-code-completion-patterns">,
345d8e8a58ee35ab334ab9d0c2154dca029c1822e8aDouglas Gregor  HelpText<"Include code patterns in code-completion results">;
3468071e4212ae08f8014e0c3ae6d18b7388003a5ccDouglas Gregordef no_code_completion_globals : Flag<"-no-code-completion-globals">,
3478071e4212ae08f8014e0c3ae6d18b7388003a5ccDouglas Gregor  HelpText<"Do not include global declarations in code-completion results.">;
34833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef disable_free : Flag<"-disable-free">,
34933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable freeing of memory on exit">;
3509b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef help : Flag<"-help">,
3519b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbar  HelpText<"Print this help text">;
3529b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef _help : Flag<"--help">, Alias<help>;
35333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef x : Separate<"-x">, HelpText<"Input language type">;
354b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef o : Separate<"-o">, MetaVarName<"<path>">, HelpText<"Specify output file">;
355b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef load : Separate<"-load">, MetaVarName<"<dsopath>">,
356efba227cc5459554eca466aafe786b5132dcb68cDaniel Dunbar  HelpText<"Load the named plugin (dynamic shared object)">;
3573177aae51a21f61ab483c52f97124bdb707da7f1Daniel Dunbardef plugin : Separate<"-plugin">, MetaVarName<"<name>">,
3585aa74affa5d61d04c4b034b3722ca41aec0cba6eNico Weber  HelpText<"Use the named plugin action instead of the default action (use \"help\" to list available options)">;
35920249a1af2e462dcafdd6a350f1c7967b264ff25Michael J. Spencerdef plugin_arg : JoinedAndSeparate<"-plugin-arg-">,
3603177aae51a21f61ab483c52f97124bdb707da7f1Daniel Dunbar    MetaVarName<"<name> <arg>">,
3613177aae51a21f61ab483c52f97124bdb707da7f1Daniel Dunbar    HelpText<"Pass <arg> to plugin <name>">;
3625aa74affa5d61d04c4b034b3722ca41aec0cba6eNico Weberdef add_plugin : Separate<"-add-plugin">, MetaVarName<"<name>">,
3635aa74affa5d61d04c4b034b3722ca41aec0cba6eNico Weber  HelpText<"Use the named plugin action in addition to the default action">;
3648b9adfea5e834eaee0f45d8cc7fb052d68df4a46Daniel Dunbardef resource_dir : Separate<"-resource-dir">,
3658b9adfea5e834eaee0f45d8cc7fb052d68df4a46Daniel Dunbar  HelpText<"The directory which holds the compiler resource files">;
3669b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef version : Flag<"-version">,
3679b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbar  HelpText<"Print the compiler version">;
3689b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef _version : Flag<"--version">, Alias<version>;
36933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
37033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef Action_Group : OptionGroup<"<action group>">;
37133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbarlet Group = Action_Group in {
37233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
37333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef Eonly : Flag<"-Eonly">,
37433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Just run preprocessor, no output (for timings)">;
37533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef E : Flag<"-E">,
37633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Run preprocessor, emit preprocessed file">;
37733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dump_raw_tokens : Flag<"-dump-raw-tokens">,
37833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Lex file in raw mode and dump raw tokens">;
37933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef analyze : Flag<"-analyze">,
38033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Run static analysis engine">;
38133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dump_tokens : Flag<"-dump-tokens">,
38233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Run preprocessor, dump internal rep of tokens">;
3832758595023c5c7c0495f19260089f975022c50dcDaniel Dunbardef init_only : Flag<"-init-only">,
3842758595023c5c7c0495f19260089f975022c50dcDaniel Dunbar  HelpText<"Only execute frontend initialization">;
38533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fsyntax_only : Flag<"-fsyntax-only">,
38633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Run parser and perform semantic analysis">;
38733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fixit : Flag<"-fixit">,
38833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Apply fix-it advice to the input source">;
389ba5f6eced29937e4e4851a2c0980744768413d66Nick Lewyckydef fixit_EQ : Joined<"-fixit=">,
390ba5f6eced29937e4e4851a2c0980744768413d66Nick Lewycky  HelpText<"Apply fix-it advice creating a file with the given suffix">;
391f033f1da4a34f8df6e95e9929dc04ff54bb8fb01Douglas Gregordef print_preamble : Flag<"-print-preamble">,
392f033f1da4a34f8df6e95e9929dc04ff54bb8fb01Douglas Gregor  HelpText<"Print the \"preamble\" of a file, which is a candidate for implicit"
393f033f1da4a34f8df6e95e9929dc04ff54bb8fb01Douglas Gregor           " precompiled headers.">;
39433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_html : Flag<"-emit-html">,
39533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Output input source as HTML">;
39633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_print : Flag<"-ast-print">,
39733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs and then pretty-print them">;
39833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_dump : Flag<"-ast-dump">,
39933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs and then debug dump them">;
400f35142413974e9dfe2c5f202084db4bd1c2073e9John McCalldef ast_dump_xml : Flag<"-ast-dump-xml">,
401f35142413974e9dfe2c5f202084db4bd1c2073e9John McCall  HelpText<"Build ASTs and then debug dump them in a verbose XML format">;
40233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_view : Flag<"-ast-view">,
40333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs and view them with GraphViz">;
40433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef print_decl_contexts : Flag<"-print-decl-contexts">,
40533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print DeclContexts and their Decls">;
406467dc88512b4ba4bb16e274ea3771dc1415d31daDouglas Gregordef emit_module : Flag<"-emit-module">,
4076649014b792f8a4b1bc1e8be8f844a72220af508Douglas Gregor  HelpText<"Generate pre-compiled module file from a module map">;
40833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_pth : Flag<"-emit-pth">,
40933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Generate pre-tokenized header file">;
41033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_pch : Flag<"-emit-pch">,
41133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Generate pre-compiled header file">;
41233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef S : Flag<"-S">,
41333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Emit native assembly code">;
41433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_llvm : Flag<"-emit-llvm">,
41533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs then convert to LLVM, emit .ll file">;
41633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_llvm_bc : Flag<"-emit-llvm-bc">,
41733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs then convert to LLVM, emit .bc file">;
41833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_llvm_only : Flag<"-emit-llvm-only">,
41933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Build ASTs and convert to LLVM, discarding output">;
42032148cef25570a4fbe3ad0ec497ce3ae2cf1b774Daniel Dunbardef emit_codegen_only : Flag<"-emit-codegen-only">,
42132148cef25570a4fbe3ad0ec497ce3ae2cf1b774Daniel Dunbar  HelpText<"Generate machine code, but discard output">;
422da1573f95902a42aa4d11e8f45ab98ec7e27bc28Daniel Dunbardef emit_obj : Flag<"-emit-obj">,
423da1573f95902a42aa4d11e8f45ab98ec7e27bc28Daniel Dunbar  HelpText<"Emit native object files">;
42433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_test : Flag<"-rewrite-test">,
42533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Rewriter playground">;
42633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_objc : Flag<"-rewrite-objc">,
42733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Rewrite ObjC into C (code rewriter example)">;
42833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_macros : Flag<"-rewrite-macros">,
42933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Expand macros without full preprocessing">;
43033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar}
43133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
432f85e193739c953358c865005855253af4f68a497John McCalldef arcmt_check : Flag<"-arcmt-check">,
433f85e193739c953358c865005855253af4f68a497John McCall  HelpText<"Check for ARC migration issues that need manual handling">;
434f85e193739c953358c865005855253af4f68a497John McCalldef arcmt_modify : Flag<"-arcmt-modify">,
435f85e193739c953358c865005855253af4f68a497John McCall  HelpText<"Apply modifications to files to conform to ARC">;
43669325d5b7cfecf1b3128745efc33612aedf1b8b4Argyrios Kyrtzidisdef arcmt_migrate : Flag<"-arcmt-migrate">,
43769325d5b7cfecf1b3128745efc33612aedf1b8b4Argyrios Kyrtzidis  HelpText<"Apply modifications and produces temporary files that conform to ARC">;
43869325d5b7cfecf1b3128745efc33612aedf1b8b4Argyrios Kyrtzidisdef arcmt_migrate_directory : Separate<"-arcmt-migrate-directory">,
43969325d5b7cfecf1b3128745efc33612aedf1b8b4Argyrios Kyrtzidis  HelpText<"Directory for temporary files produced during ARC migration">;
4407ee2049278b98d42709380054eb83f4952af1200Argyrios Kyrtzidisdef arcmt_migrate_report_output : Separate<"-arcmt-migrate-report-output">,
4417ee2049278b98d42709380054eb83f4952af1200Argyrios Kyrtzidis  HelpText<"Output path for the plist report">;
4427ee2049278b98d42709380054eb83f4952af1200Argyrios Kyrtzidisdef arcmt_migrate_emit_arc_errors : Flag<"-arcmt-migrate-emit-errors">,
4437ee2049278b98d42709380054eb83f4952af1200Argyrios Kyrtzidis  HelpText<"Emit ARC errors even if the migrator can fix them">;
444f85e193739c953358c865005855253af4f68a497John McCall
445389db16c63eec6ecfa9b235155252d8da766e94eArgyrios Kyrtzidisdef working_directory : JoinedOrSeparate<"-working-directory">,
446389db16c63eec6ecfa9b235155252d8da766e94eArgyrios Kyrtzidis  HelpText<"Resolve file paths relative to the specified directory">;
447389db16c63eec6ecfa9b235155252d8da766e94eArgyrios Kyrtzidisdef working_directory_EQ : Joined<"-working-directory=">,
448389db16c63eec6ecfa9b235155252d8da766e94eArgyrios Kyrtzidis  Alias<working_directory>;
449389db16c63eec6ecfa9b235155252d8da766e94eArgyrios Kyrtzidis
45033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef relocatable_pch : Flag<"-relocatable-pch">,
45133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Whether to build a relocatable precompiled header">;
45233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef print_stats : Flag<"-print-stats">,
45333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print performance metrics and statistics">;
45433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ftime_report : Flag<"-ftime-report">,
45533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print the amount of time each phase of compilation takes">;
45646116ce06ae28e3fc3a34c513f2f63ac02d9a194Anders Carlssondef fdump_record_layouts : Flag<"-fdump-record-layouts">,
457b69eca5d2196c06870d3eeb62d689feebaaa8a4dDaniel Dunbar  HelpText<"Dump record layout information">;
458453dbcbe30093fbf947a0bec2fbd46e9694eafe9Douglas Gregordef fdump_record_layouts_simple : Flag<"-fdump-record-layouts-simple">,
459453dbcbe30093fbf947a0bec2fbd46e9694eafe9Douglas Gregor  HelpText<"Dump record layout information in a simple form used for testing">;
4601450f265fcc84a7ca64dd9f3b8d4492c5bd55e23Nick Lewyckydef fix_what_you_can : Flag<"-fix-what-you-can">,
4611450f265fcc84a7ca64dd9f3b8d4492c5bd55e23Nick Lewycky  HelpText<"Apply fix-it advice even in the presence of unfixable errors">;
46261d679ab2831b161c857cf3f974312fbd4ef1efdArgyrios Kyrtzidisdef fix_only_warnings : Flag<"-fix-only-warnings">,
46361d679ab2831b161c857cf3f974312fbd4ef1efdArgyrios Kyrtzidis  HelpText<"Apply fix-it advice only for warnings, not errors">;
46461d679ab2831b161c857cf3f974312fbd4ef1efdArgyrios Kyrtzidisdef fixit_recompile : Flag<"-fixit-recompile">,
46561d679ab2831b161c857cf3f974312fbd4ef1efdArgyrios Kyrtzidis  HelpText<"Apply fix-it changes and recompile">;
46661d679ab2831b161c857cf3f974312fbd4ef1efdArgyrios Kyrtzidisdef fixit_to_temp : Flag<"-fixit-to-temporary">,
46761d679ab2831b161c857cf3f974312fbd4ef1efdArgyrios Kyrtzidis  HelpText<"Apply fix-it changes to temporary files">;
468b69eca5d2196c06870d3eeb62d689feebaaa8a4dDaniel Dunbar
4693f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbar// Generic forwarding to LLVM options. This should only be used for debugging
4703f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbar// and experimental features.
4713f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbardef mllvm : Separate<"-mllvm">,
4723f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbar  HelpText<"Additional arguments to forward to LLVM's option processing">;
4733f87fb08dd502309960646db01099fb4c1be9a7cDaniel Dunbar
474453dbcbe30093fbf947a0bec2fbd46e9694eafe9Douglas Gregordef foverride_record_layout_EQ : Joined<"-foverride-record-layout=">,
475453dbcbe30093fbf947a0bec2fbd46e9694eafe9Douglas Gregor  HelpText<"Override record layouts with those in the given file">;
476453dbcbe30093fbf947a0bec2fbd46e9694eafe9Douglas Gregor  
47733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
47833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Language Options
47933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
48033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
48133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_builtin : Flag<"-fno-builtin">,
48233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable implicit builtin knowledge of functions">;
48333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef faltivec : Flag<"-faltivec">,
48433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable AltiVec vector initializer syntax">;
485c53e3658e667fed25d428d58204f295209b81d45Benjamin Kramerdef fno_access_control : Flag<"-fno-access-control">,
486380509aa107c550d0e77ee2db4069e127709427cJohn McCall  HelpText<"Disable C++ access control">;
487fc2844846e91398205fddc71196fe9dda04e105fNuno Lopesdef fno_assume_sane_operator_new : Flag<"-fno-assume-sane-operator-new">,
48899860173af0b070f93558c26b78bb7ac07820370Nuno Lopes  HelpText<"Don't assume that C++'s global operator new can't alias any pointer">;
489eb5d7b752651283de5abfcc2f91df7227582a08dChandler Carruthdef fgnu_keywords : Flag<"-fgnu-keywords">,
490eb5d7b752651283de5abfcc2f91df7227582a08dChandler Carruth  HelpText<"Allow GNU-extension keywords regardless of language standard">;
491fb3f4aad0436a9c40e9130598162150890c405b5Rafael Espindoladef fgnu89_inline : Flag<"-fgnu89-inline">,
492fb3f4aad0436a9c40e9130598162150890c405b5Rafael Espindola  HelpText<"Use the gnu89 inline semantics">;
493eb5d7b752651283de5abfcc2f91df7227582a08dChandler Carruthdef fno_gnu_keywords : Flag<"-fno-gnu-keywords">,
494eb5d7b752651283de5abfcc2f91df7227582a08dChandler Carruth  HelpText<"Disallow GNU-extension keywords regardless of language standard">;
49533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fdollars_in_identifiers : Flag<"-fdollars-in-identifiers">,
49633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Allow '$' in identifiers">;
4978663b180085e9bc7a0a87c80cc3f722efef99e79Daniel Dunbardef fno_dollars_in_identifiers : Flag<"-fno-dollars-in-identifiers">,
4988663b180085e9bc7a0a87c80cc3f722efef99e79Daniel Dunbar  HelpText<"Disallow '$' in identifiers">;
49933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef femit_all_decls : Flag<"-femit-all-decls">,
50033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Emit all declarations, even if unused">;
50133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fblocks : Flag<"-fblocks">,
50213db5cfc4e5f03eb70efe0d227b53b8280f16161John McCall  HelpText<"Enable the 'blocks' language feature">;
50313db5cfc4e5f03eb70efe0d227b53b8280f16161John McCalldef fblocks_runtime_optional : Flag<"-fblocks-runtime-optional">,
50413db5cfc4e5f03eb70efe0d227b53b8280f16161John McCall  HelpText<"Weakly link in the blocks runtime">;
50520249a1af2e462dcafdd6a350f1c7967b264ff25Michael J. Spencerdef fheinous_gnu_extensions : Flag<"-fheinous-gnu-extensions">;
50633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fexceptions : Flag<"-fexceptions">,
50733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable support for exception handling">;
5080761e44550f094633bbe7fd4ae1d79ec456fca69Anders Carlssondef fobjc_exceptions : Flag<"-fobjc-exceptions">,
5090761e44550f094633bbe7fd4ae1d79ec456fca69Anders Carlsson  HelpText<"Enable Objective-C exceptions">;
5100761e44550f094633bbe7fd4ae1d79ec456fca69Anders Carlssondef fcxx_exceptions : Flag<"-fcxx-exceptions">,
5110761e44550f094633bbe7fd4ae1d79ec456fca69Anders Carlsson  HelpText<"Enable C++ exceptions">;
51273482884560be041d86eccbd7dd5a6918677393bDaniel Dunbardef fsjlj_exceptions : Flag<"-fsjlj-exceptions">,
51373482884560be041d86eccbd7dd5a6918677393bDaniel Dunbar  HelpText<"Use SjLj style exceptions">;
514abf07a7fb669dcb74040eef948d61dfe3c59ff17Chandler Carruthdef ffast_math : Flag<"-ffast-math">,
515abf07a7fb669dcb74040eef948d61dfe3c59ff17Chandler Carruth  HelpText<"Enable the *frontend*'s 'fast-math' mode. This has no effect on "
516abf07a7fb669dcb74040eef948d61dfe3c59ff17Chandler Carruth           "optimizations, but provides a preprocessor macro __FAST_MATH__ the "
517abf07a7fb669dcb74040eef948d61dfe3c59ff17Chandler Carruth           "same as GCC's -ffast-math flag.">;
51833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ffreestanding : Flag<"-ffreestanding">,
51933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Assert that the compilation takes place in a freestanding environment">;
52033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fgnu_runtime : Flag<"-fgnu-runtime">,
52133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Generate output compatible with the standard GNU Objective-C runtime">;
522279b5eb6910d64a293e9c0e2887a05c65d8737d7John McCalldef fhidden_weak_vtables : Flag<"-fhidden-weak-vtables">,
523279b5eb6910d64a293e9c0e2887a05c65d8737d7John McCall  HelpText<"Generate weak vtables and RTTI with hidden visibility">;
524ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbardef std_EQ : Joined<"-std=">,
52533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Language standard to compile for">;
52613c4f2144b35bda21746eb60ad90e52a9bd8dcdaBob Wilsondef stdlib_EQ : Joined<"-stdlib=">,
52713c4f2144b35bda21746eb60ad90e52a9bd8dcdaBob Wilson  HelpText<"C++ standard library to use">;
528c31176d5ebbcd407aa512bbd5f717e35da629e7dDan Gohmandef fmath_errno : Flag<"-fmath-errno">,
529c31176d5ebbcd407aa512bbd5f717e35da629e7dDan Gohman  HelpText<"Require math functions to indicate errors by setting errno">;
53033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fms_extensions : Flag<"-fms-extensions">,
531ae55608a29d61737b7c5390e2d1bb30ab8d5febbFrancois Pichet  HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;
532ae55608a29d61737b7c5390e2d1bb30ab8d5febbFrancois Pichetdef fms_compatibility : Flag<"-fms-compatibility">,
533ae55608a29d61737b7c5390e2d1bb30ab8d5febbFrancois Pichet  HelpText<"Enable Microsoft compatibility mode">;
534dae4ac4fe56ec60fc93b3e3c9f51e79e682084b9Michael J. Spencerdef fmsc_version : Joined<"-fmsc-version=">,
535dae4ac4fe56ec60fc93b3e3c9f51e79e682084b9Michael J. Spencer  HelpText<"Version of the Microsoft C/C++ compiler to report in _MSC_VER (0 = don't define it (default))">;
536400b607546a8dbfcee3b690f3d0a2fee0ea6480bDawn Perchikdef fborland_extensions : Flag<"-fborland-extensions">,
537400b607546a8dbfcee3b690f3d0a2fee0ea6480bDawn Perchik  HelpText<"Accept non-standard constructs supported by the Borland compiler">;
53833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef main_file_name : Separate<"-main-file-name">,
53933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Main file name to use for debug info">;
54033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_elide_constructors : Flag<"-fno-elide-constructors">,
54133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable C++ copy constructor elision">;
54233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_lax_vector_conversions : Flag<"-fno-lax-vector-conversions">,
54333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disallow implicit conversions between vectors with a different number of elements or different element types">;
54433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_operator_names : Flag<"-fno-operator-names">,
54533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Do not treat C++ operator name keywords as synonyms for operators">;
546efb0fa9e11f75af51744a6159530ef7cc8efa24aDaniel Dunbardef fno_signed_char : Flag<"-fno-signed-char">,
547efb0fa9e11f75af51744a6159530ef7cc8efa24aDaniel Dunbar  HelpText<"Char is unsigned">;
548a0068fc64351db9c47916566e3b85ab733cd8d6dDouglas Gregordef fno_spell_checking : Flag<"-fno-spell-checking">,
54920249a1af2e462dcafdd6a350f1c7967b264ff25Michael J. Spencer  HelpText<"Disable spell-checking">;
550efb0fa9e11f75af51744a6159530ef7cc8efa24aDaniel Dunbardef fno_use_cxa_atexit : Flag<"-fno-use-cxa-atexit">,
551efb0fa9e11f75af51744a6159530ef7cc8efa24aDaniel Dunbar  HelpText<"Don't use __cxa_atexit for calling destructors">;
55233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fconstant_string_class : Separate<"-fconstant-string-class">,
553b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  MetaVarName<"<class name>">,
55433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Specify the class to use for constant Objective-C string objects.">;
55533e982bf782d851bfe5767acb1336fcf3419ac6bFariborz Jahaniandef fno_constant_cfstrings : Flag<"-fno-constant-cfstrings">,
55633e982bf782d851bfe5767acb1336fcf3419ac6bFariborz Jahanian  HelpText<"Enable creation of CodeFoundation-type constant strings">;
557f85e193739c953358c865005855253af4f68a497John McCalldef fobjc_arc : Flag<"-fobjc-arc">,
558f85e193739c953358c865005855253af4f68a497John McCall  HelpText<"Synthesize retain and release calls for Objective-C pointers">;
559f85e193739c953358c865005855253af4f68a497John McCalldef fobjc_arc_cxxlib_EQ : Joined<"-fobjc-arc-cxxlib=">,
560f85e193739c953358c865005855253af4f68a497John McCall  HelpText<"Objective-C++ Automatic Reference Counting standard library kind">;
561f85e193739c953358c865005855253af4f68a497John McCalldef fobjc_arc_exceptions : Flag<"-fobjc-arc-exceptions">,
562f85e193739c953358c865005855253af4f68a497John McCall  HelpText<"Use EH-safe code when synthesizing retains and releases in -fobjc-arc">;
5639f084a3166b684573ba49df28fc5792bc37d92e1John McCalldef fobjc_runtime_has_arc : Flag<"-fobjc-runtime-has-arc">,
5649f084a3166b684573ba49df28fc5792bc37d92e1John McCall  HelpText<"The target Objective-C runtime provides ARC entrypoints">;
5659f084a3166b684573ba49df28fc5792bc37d92e1John McCalldef fobjc_runtime_has_weak : Flag<"-fobjc-runtime-has-weak">,
5669f084a3166b684573ba49df28fc5792bc37d92e1John McCall  HelpText<"The target Objective-C runtime supports ARC weak operations">;
567256a76e0b0e0c9e65a3122917d553ef10bc84d29John McCalldef fobjc_runtime_has_terminate : Flag<"-fobjc-runtime-has-terminate">,
568256a76e0b0e0c9e65a3122917d553ef10bc84d29John McCall  HelpText<"The target Objective-C runtime provides an objc_terminate entrypoint">;
56933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fobjc_gc : Flag<"-fobjc-gc">,
57033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable Objective-C garbage collection">;
57133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fobjc_gc_only : Flag<"-fobjc-gc-only">,
57233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Use GC exclusively for Objective-C related memory management">;
573b466d01e464b21832c23eeed90112bc5c26c0236Fariborz Jahaniandef fapple_kext : Flag<"-fapple-kext">,
574f84109ee6aeffb09366bd70c8593ce1b7818b1adFariborz Jahanian  HelpText<"Use Apple's kernel extensions ABI">;
575f643b9b338b797a824447207d7eab5f1187f4f34Daniel Dunbardef fobjc_dispatch_method_EQ : Joined<"-fobjc-dispatch-method=">,
576f643b9b338b797a824447207d7eab5f1187f4f34Daniel Dunbar  HelpText<"Objective-C dispatch method to use">;
577c32647d111e516593b9ba242cad7b8ff4016c155Ted Kremenekdef fobjc_default_synthesize_properties : Flag<"-fobjc-default-synthesize-properties">,
578c32647d111e516593b9ba242cad7b8ff4016c155Ted Kremenek  HelpText<"enable the default synthesis of Objective-C properties">;
57933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef print_ivar_layout : Flag<"-print-ivar-layout">,
58033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
581d1e40d5389a4382cbebc97d54792f41ee0414af4John McCalldef fobjc_fragile_abi : Flag<"-fobjc-fragile-abi">,
582d1e40d5389a4382cbebc97d54792f41ee0414af4John McCall  HelpText<"Use Objective-C's fragile ABI">;
58374da19fc3a52d7e3005eeb7a7833859da84fd12aDouglas Gregordef fno_objc_infer_related_result_type : Flag<
58474da19fc3a52d7e3005eeb7a7833859da84fd12aDouglas Gregor    "-fno-objc-infer-related-result-type">,
58574da19fc3a52d7e3005eeb7a7833859da84fd12aDouglas Gregor  HelpText<
58674da19fc3a52d7e3005eeb7a7833859da84fd12aDouglas Gregor    "do not infer Objective-C related result type based on method family">;
58733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ftrapv : Flag<"-ftrapv">,
58833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Trap on integer overflow">;
5897f18e67e1b577a50402e8b43508ab2311a5c45b5David Chisnalldef ftrapv_handler : Separate<"-ftrapv-handler">,
5907f18e67e1b577a50402e8b43508ab2311a5c45b5David Chisnall  MetaVarName<"<function name>">,
5917f18e67e1b577a50402e8b43508ab2311a5c45b5David Chisnall  HelpText<"Specify the function to be called on overflow.">;
592a4d71455f0d418e16cc0c5c5aa55a3bad3494aeeChris Lattnerdef fwrapv : Flag<"-fwrapv">,
593a4d71455f0d418e16cc0c5c5aa55a3bad3494aeeChris Lattner  HelpText<"Treat signed integer overflow as two's complement">;
5947674352cf3e8f699914a2f739f1ae8c8c3480813Daniel Dunbardef pic_level : Separate<"-pic-level">,
595b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar  HelpText<"Value for __PIC__">;
59633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef pthread : Flag<"-pthread">,
59733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Support POSIX threads in generated code">;
59888934e85f81abdc4fb5202325252be3bcab5ebf0Daniel Dunbardef fpack_struct : Separate<"-fpack-struct">,
59988934e85f81abdc4fb5202325252be3bcab5ebf0Daniel Dunbar  HelpText<"Specify the default maximum struct packing alignment">;
60033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fpascal_strings : Flag<"-fpascal-strings">,
60133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Recognize and construct Pascal-style string literals">;
60233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_rtti : Flag<"-fno-rtti">,
60333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable generation of rtti information">;
604fae3b2f4743dad616623c4df2fdb0f5128bd36d9Douglas Gregordef fno_validate_pch : Flag<"-fno-validate-pch">,
605fae3b2f4743dad616623c4df2fdb0f5128bd36d9Douglas Gregor  HelpText<"Disable validation of precompiled headers">;
606b972858068d2ea77f72a1e7b1812b196afd6be2eArgyrios Kyrtzidisdef dump_deserialized_pch_decls : Flag<"-dump-deserialized-decls">,
607b972858068d2ea77f72a1e7b1812b196afd6be2eArgyrios Kyrtzidis  HelpText<"Dump declarations that are deserialized from PCH, for testing">;
6083e78593b1ced32b7e0a97da044213014ee0f6f7cArgyrios Kyrtzidisdef error_on_deserialized_pch_decl : Separate<"-error-on-deserialized-decl">,
6093e78593b1ced32b7e0a97da044213014ee0f6f7cArgyrios Kyrtzidis  HelpText<"Emit error if a specific declaration is deserialized from PCH, for testing">;
6109a8cbc75052d641105e45d0eca2592743fa01e54Argyrios Kyrtzidisdef error_on_deserialized_pch_decl_EQ : Joined<"-error-on-deserialized-decl=">,
6119a8cbc75052d641105e45d0eca2592743fa01e54Argyrios Kyrtzidis  Alias<error_on_deserialized_pch_decl>;
61233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fshort_wchar : Flag<"-fshort-wchar">,
61333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Force wchar_t to be a short unsigned int">;
6149a2b9d794bdf349b517ff799170f4409f45d147cArgyrios Kyrtzidisdef fshort_enums : Flag<"-fshort-enums">,
6159a2b9d794bdf349b517ff799170f4409f45d147cArgyrios Kyrtzidis  HelpText<"Allocate to an enum type only as many bytes as it needs for the declared range of possible values">;
61633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef static_define : Flag<"-static-define">,
61733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Should __STATIC__ be defined">;
61833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef stack_protector : Separate<"-stack-protector">,
61933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable stack protectors">;
62033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fvisibility : Separate<"-fvisibility">,
62133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Default symbol visibility">;
6227cf84d66965a7706004d8590b5af5fe54b85f525Douglas Gregordef fvisibility_inlines_hidden : Flag<"-fvisibility-inlines-hidden">,
6237cf84d66965a7706004d8590b5af5fe54b85f525Douglas Gregor  HelpText<"Give inline C++ member functions default visibility by default">;
62433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ftemplate_depth : Separate<"-ftemplate-depth">,
62533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Maximum depth of recursive template instantiation">;
626c18c42345636e2866fed75c7e434fb659d747672Richard Smithdef fconstexpr_depth : Separate<"-fconstexpr-depth">,
627c18c42345636e2866fed75c7e434fb659d747672Richard Smith  HelpText<"Maximum depth of recursive constexpr function calls">;
6281380a147d4578b619c215b23aa79ce17036d3c46Argyrios Kyrtzidisdef Wlarge_by_value_copy : Separate<"-Wlarge-by-value-copy">,
6293532fdd1db8ff6f353f2a5b215cebe3e0e2ff3c2Argyrios Kyrtzidis  HelpText<"Warn if a function definition returns or accepts an object larger "
6303532fdd1db8ff6f353f2a5b215cebe3e0e2ff3c2Argyrios Kyrtzidis           "in bytes that a given value">;
6311380a147d4578b619c215b23aa79ce17036d3c46Argyrios Kyrtzidisdef Wlarge_by_value_copy_EQ : Joined<"-Wlarge-by-value-copy=">,
6321380a147d4578b619c215b23aa79ce17036d3c46Argyrios Kyrtzidis  Alias<Wlarge_by_value_copy>;
63333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef trigraphs : Flag<"-trigraphs">,
63433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Process trigraph sequences">;
63533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fwritable_strings : Flag<"-fwritable-strings">,
63633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Store string literals as writable data">;
63750465d1d2f5f6dd3d8e18e2cf7bad4691e5ca6a8Chandler Carruthdef fconst_strings : Flag<"-fconst-strings">,
63850465d1d2f5f6dd3d8e18e2cf7bad4691e5ca6a8Chandler Carruth  HelpText<"Use a const qualified type for string literals in C and ObjC">;
63950465d1d2f5f6dd3d8e18e2cf7bad4691e5ca6a8Chandler Carruthdef fno_const_strings : Flag<"-fno-const-strings">,
64050465d1d2f5f6dd3d8e18e2cf7bad4691e5ca6a8Chandler Carruth  HelpText<"Don't use a const qualified type for string literals in C and ObjC">;
641fb937b8c5f1c5dc9cfd4223b5cae230cc42b0287Daniel Dunbardef fno_bitfield_type_align : Flag<"-fno-bitfield-type-align">,
642fb937b8c5f1c5dc9cfd4223b5cae230cc42b0287Daniel Dunbar  HelpText<"Ignore bit-field types when aligning structures">;
6432ed42287b9b88a0bb08ab10e95e306da3f294ba9Daniel Dunbardef traditional_cpp : Flag<"-traditional-cpp">,
6442ed42287b9b88a0bb08ab10e95e306da3f294ba9Daniel Dunbar  HelpText<"Enable some traditional CPP emulation">;
645207f4d8543529221932af82836016a2ef066c917Peter Collingbournedef ffake_address_space_map : Flag<"-ffake-address-space-map">,
646207f4d8543529221932af82836016a2ef066c917Peter Collingbourne  HelpText<"Use a fake address space map; OpenCL testing purposes only">;
6478387e2a41eef6fa17fb140a18c29b6eee9dd2b8aFrancois Pichetdef fdelayed_template_parsing : Flag<"-fdelayed-template-parsing">,
6488387e2a41eef6fa17fb140a18c29b6eee9dd2b8aFrancois Pichet  HelpText<"Parse templated function definitions at the end of the "
6498387e2a41eef6fa17fb140a18c29b6eee9dd2b8aFrancois Pichet           "translation unit ">;
650a5fc472b353b88be3b4981da946fb01f5a5cc0c6John McCalldef funknown_anytype : Flag<"-funknown-anytype">,
651a5fc472b353b88be3b4981da946fb01f5a5cc0c6John McCall  HelpText<"Enable parser support for the __unknown_anytype type; for testing purposes only">;
65248218c60d6b53b7880917d1366ee716dec2145caJohn McCalldef fdebugger_support : Flag<"-fdebugger-support">,
65348218c60d6b53b7880917d1366ee716dec2145caJohn McCall  HelpText<"Enable special debugger support behavior">;
65450a9a12d4f7387bcff3213d4b56e74bab9f4f5d2Sean Callanandef fdebugger_cast_result_to_id : Flag<"-fdebugger-cast-result-to-id">,
65550a9a12d4f7387bcff3213d4b56e74bab9f4f5d2Sean Callanan  HelpText<"Enable casting unknown expression results to id">;
6561cfe3c305c0d5393fd94167808b8f5d96cd65227Chandler Carruthdef fdeprecated_macro : Flag<"-fdeprecated-macro">,
657f8c247d247f9f7ab2bf4965677e6d056711c99d5Chandler Carruth  HelpText<"Defines the __DEPRECATED macro">;
6581cfe3c305c0d5393fd94167808b8f5d96cd65227Chandler Carruthdef fno_deprecated_macro : Flag<"-fno-deprecated-macro">,
659f8c247d247f9f7ab2bf4965677e6d056711c99d5Chandler Carruth  HelpText<"Undefines the __DEPRECATED macro">;
66019bda3ad8b5d37e505214e82fab1d0a0bf00f0fdEli Friedmandef fapple_pragma_pack : Flag<"-fapple-pragma-pack">,
66119bda3ad8b5d37e505214e82fab1d0a0bf00f0fdEli Friedman  HelpText<"Enable Apple gcc-compatible #pragma pack handling">;
66233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
66333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
66433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Header Search Options
66533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
66633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
667a268fc0f2229eb132ebc8501b140093aeb5516bfDaniel Dunbardef nostdsysteminc : Flag<"-nostdsysteminc">,
668a268fc0f2229eb132ebc8501b140093aeb5516bfDaniel Dunbar  HelpText<"Disable standard system #include directories">;
6694c2bcad7b843c10fd4a2ffd43da40bfefb4dc8baDouglas Gregordef nostdincxx : Flag<"-nostdinc++">,
6704c2bcad7b843c10fd4a2ffd43da40bfefb4dc8baDouglas Gregor  HelpText<"Disable standard #include directories for the C++ standard library">;
67133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef nobuiltininc : Flag<"-nobuiltininc">,
67233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable builtin #include directories">;
6738ee51ef211bfed9ce04bc93835e19aee014f2faeDouglas Gregordef fmodule_cache_path : Separate<"-fmodule-cache-path">, 
6749a6da6930644b4f2dbe4885b0eb4fc1274ff56a4Douglas Gregor  MetaVarName<"<directory>">,
6759a6da6930644b4f2dbe4885b0eb4fc1274ff56a4Douglas Gregor  HelpText<"Specify the module cache path">;           
676b86b8dc7ef89405205f94635c1073cdb1a7093ebDouglas Gregordef fmodule_name : Joined<"-fmodule-name=">, 
677b86b8dc7ef89405205f94635c1073cdb1a7093ebDouglas Gregor  MetaVarName<"<name>">,
678b86b8dc7ef89405205f94635c1073cdb1a7093ebDouglas Gregor  HelpText<"Specify the name of the module to build">;           
6796e975c4517958bcc11c834336d340797356058dbDouglas Gregordef fdisable_module_hash : Flag<"-fdisable-module-hash">,
6806e975c4517958bcc11c834336d340797356058dbDouglas Gregor  HelpText<"Disable the module hash">;
681c514a8a0eaa575cf46b038cc27fa1e4e8c22f89aDouglas Gregordef fmodules : Flag<"-fmodules">,
682c514a8a0eaa575cf46b038cc27fa1e4e8c22f89aDouglas Gregor  HelpText<"Enable the 'modules' language feature">;
683fba18aa8f2cd1994dc65e8cb9f4be201c560dc0bDouglas Gregor           
684b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef F : JoinedOrSeparate<"-F">, MetaVarName<"<directory>">,
68533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to framework include search path">;
686b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef I : JoinedOrSeparate<"-I">, MetaVarName<"<directory>">,
68733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to include search path">;
688b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef idirafter : JoinedOrSeparate<"-idirafter">, MetaVarName<"<directory>">,
68933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to AFTER include search path">;
69065e02fa80e1c185f18e5f81cefc30d75383a7301Douglas Gregordef index_header_map : Flag<"-index-header-map">, 
69165e02fa80e1c185f18e5f81cefc30d75383a7301Douglas Gregor  HelpText<"Make the next included directory (-I or -F) an indexer header map">;
692b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef iquote : JoinedOrSeparate<"-iquote">, MetaVarName<"<directory>">,
69333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to QUOTE include search path">;
69447adebef0df6dce752fe9a45e9190e8005b5d07cBenjamin Kramerdef c_isystem : JoinedOrSeparate<"-c-isystem">, MetaVarName<"<directory>">,
69547adebef0df6dce752fe9a45e9190e8005b5d07cBenjamin Kramer  HelpText<"Add directory to the C SYSTEM include search path">;
6962df6647847af283302834dadae5d9dcefa7e0ad4Joerg Sonnenbergerdef cxx_isystem : JoinedOrSeparate<"-cxx-isystem">, MetaVarName<"<directory>">,
6972df6647847af283302834dadae5d9dcefa7e0ad4Joerg Sonnenberger  HelpText<"Add directory to the C++ SYSTEM include search path">;
69847adebef0df6dce752fe9a45e9190e8005b5d07cBenjamin Kramerdef objc_isystem : JoinedOrSeparate<"-objc-isystem">,
69947adebef0df6dce752fe9a45e9190e8005b5d07cBenjamin Kramer  MetaVarName<"<directory>">,
70047adebef0df6dce752fe9a45e9190e8005b5d07cBenjamin Kramer  HelpText<"Add directory to the ObjC SYSTEM include search path">;
70147adebef0df6dce752fe9a45e9190e8005b5d07cBenjamin Kramerdef objcxx_isystem : JoinedOrSeparate<"-objcxx-isystem">,
70247adebef0df6dce752fe9a45e9190e8005b5d07cBenjamin Kramer  MetaVarName<"<directory>">,
70347adebef0df6dce752fe9a45e9190e8005b5d07cBenjamin Kramer  HelpText<"Add directory to the ObjC++ SYSTEM include search path">;
704024f4be866d13dd2b0ec062e694a62ca84c37191Daniel Dunbardef iframework : JoinedOrSeparate<"-iframework">, MetaVarName<"<directory>">,
705024f4be866d13dd2b0ec062e694a62ca84c37191Daniel Dunbar  HelpText<"Add directory to SYSTEM framework search path">;
706b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef isystem : JoinedOrSeparate<"-isystem">, MetaVarName<"<directory>">,
70733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Add directory to SYSTEM include search path">;
7089db9ad3f084d3c70cff01a10d4fd90901982b37bChris Lattnerdef iwithsysroot : JoinedOrSeparate<"-iwithsysroot">,MetaVarName<"<directory>">,
7099db9ad3f084d3c70cff01a10d4fd90901982b37bChris Lattner  HelpText<"Add directory to SYSTEM include search path, "
7109db9ad3f084d3c70cff01a10d4fd90901982b37bChris Lattner           "absolute paths are relative to -isysroot">;
711ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruthdef internal_isystem : JoinedOrSeparate<"-internal-isystem">,
712ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruth  MetaVarName<"<directory>">,
713ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruth  HelpText<"Add directory to the internal system include search path; these "
714ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruth           "are assumed to not be user-provided and are used to model system "
715ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruth           "and standard headers' paths.">;
716ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruthdef internal_externc_isystem : JoinedOrSeparate<"-internal-externc-isystem">,
717ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruth  MetaVarName<"<directory>">,
718ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruth  HelpText<"Add directory to the internal system include search path with "
719ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruth           "implicit extern \"C\" semantics; these are assumed to not be "
720ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruth           "user-provided and are used to model system and standard headers' "
721ac2bc4d220a6263be96b943e9162f4a11149e26dChandler Carruth           "paths.">;
722b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef iprefix : JoinedOrSeparate<"-iprefix">, MetaVarName<"<prefix>">,
72333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Set the -iwithprefix/-iwithprefixbefore prefix">;
724b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef iwithprefix : JoinedOrSeparate<"-iwithprefix">, MetaVarName<"<dir>">,
72533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Set directory to SYSTEM include search path with prefix">;
726e4cb2a4b4ad6b9596f9109945a5b3a87949f375bMike Stumpdef iwithprefixbefore : JoinedOrSeparate<"-iwithprefixbefore">,
727e4cb2a4b4ad6b9596f9109945a5b3a87949f375bMike Stump  MetaVarName<"<dir>">,
72833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Set directory to include search path with prefix">;
729b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef isysroot : JoinedOrSeparate<"-isysroot">, MetaVarName<"<dir>">,
73033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Set the system root directory (usually /)">;
73133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef v : Flag<"-v">, HelpText<"Enable verbose output">;
73233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
73333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
73433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Preprocessor Options
73533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
73633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
737b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef D : JoinedOrSeparate<"-D">, MetaVarName<"<macro>">,
73833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Predefine the specified macro">;
739b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef include_ : JoinedOrSeparate<"-include">, MetaVarName<"<file>">, EnumName<"include">,
74033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include file before parsing">;
741b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef imacros : JoinedOrSeparate<"-imacros">, MetaVarName<"<file>">,
74233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include macros from file before parsing">;
743b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef include_pch : Separate<"-include-pch">, MetaVarName<"<file>">,
74433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include precompiled header file">;
745b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef include_pth : Separate<"-include-pth">, MetaVarName<"<file>">,
74633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Include file before parsing">;
747b0f4b9a558933b307073f7cd7753602f94354ae9Argyrios Kyrtzidisdef chain_include : Separate<"-chain-include">, MetaVarName<"<file>">,
748b0f4b9a558933b307073f7cd7753602f94354ae9Argyrios Kyrtzidis  HelpText<"Include and chain a header file after turning it into PCH">;
749f4f6c9db68465b886ec2e596feaa6ecc782395a4Douglas Gregordef preamble_bytes_EQ : Joined<"-preamble-bytes=">,
7503d398aa5c2be8919bbc0144bce611c48119bc861Douglas Gregor  HelpText<"Assume that the precompiled header is a precompiled preamble "
7513d398aa5c2be8919bbc0144bce611c48119bc861Douglas Gregor           "covering the first N bytes of the main file">;
752b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef token_cache : Separate<"-token-cache">, MetaVarName<"<path>">,
75333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Use specified token cache file">;
754b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef U : JoinedOrSeparate<"-U">, MetaVarName<"<macro>">,
75533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Undefine the specified macro">;
756b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef undef : Flag<"-undef">, MetaVarName<"<macro>">,
75733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"undef all system defines">;
75894dc8f640ebea52241412512ed48601626edbc58Douglas Gregordef detailed_preprocessing_record : Flag<"-detailed-preprocessing-record">,
75994dc8f640ebea52241412512ed48601626edbc58Douglas Gregor  HelpText<"include a detailed record of preprocessing actions">;
7609631939f82c0eaa6fb3936a0ce58a41adfbc9011Tony Linthicumdef mqdsp6_compat : Flag<"-mqdsp6-compat">,
7619631939f82c0eaa6fb3936a0ce58a41adfbc9011Tony Linthicum  HelpText<"Enable hexagon-qdsp6 backward compatibility">;
76220249a1af2e462dcafdd6a350f1c7967b264ff25Michael J. Spencer
76333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
76433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Preprocessed Output Options
76533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===//
76633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar
76733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef P : Flag<"-P">,
76833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Disable linemarker output in -E mode">;
76933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef C : Flag<"-C">,
77033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable comment output in -E mode">;
77133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef CC : Flag<"-CC">,
77233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Enable comment output in -E mode, even from macro expansions">;
77333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dM : Flag<"-dM">,
77433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print macro definitions in -E mode instead of normal output">;
77533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dD : Flag<"-dD">,
77633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar  HelpText<"Print macro definitions in -E mode in addition to normal output">;
77761e07861dd3a70c31f658bad8c4b911994e4933bPeter Collingbourne
77861e07861dd3a70c31f658bad8c4b911994e4933bPeter Collingbourne//===----------------------------------------------------------------------===//
77961e07861dd3a70c31f658bad8c4b911994e4933bPeter Collingbourne// OpenCL Options
78061e07861dd3a70c31f658bad8c4b911994e4933bPeter Collingbourne//===----------------------------------------------------------------------===//
78161e07861dd3a70c31f658bad8c4b911994e4933bPeter Collingbourne
78261e07861dd3a70c31f658bad8c4b911994e4933bPeter Collingbournedef cl_opt_disable : Flag<"-cl-opt-disable">,
78361e07861dd3a70c31f658bad8c4b911994e4933bPeter Collingbourne  HelpText<"OpenCL only. This option disables all optimizations. The default is optimizations are enabled.">;
7840982136cb748f4a842141bf199d133126d6be882Peter Collingbournedef cl_single_precision_constant : Flag<"-cl-single-precision-constant">,
7850982136cb748f4a842141bf199d133126d6be882Peter Collingbourne  HelpText<"OpenCL only. Treat double precision floating-point constant as single precision constant.">;
7865d729a3d8eeba59ed97119998f2135ad6d45e876Peter Collingbournedef cl_finite_math_only : Flag<"-cl-finite-math-only">,
7875d729a3d8eeba59ed97119998f2135ad6d45e876Peter Collingbourne  HelpText<"OpenCL only. Allow floating-point optimizations that assume arguments and results are not NaNs or +-Inf.">;
7885f67e13fcdc3c33e9cd5d027bfbb677b726c6f6aPeter Collingbournedef cl_unsafe_math_optimizations : Flag<"-cl-unsafe-math-optimizations">,
7895f67e13fcdc3c33e9cd5d027bfbb677b726c6f6aPeter Collingbourne  HelpText<"OpenCL only. Allow unsafe floating-point optimizations.  Also implies -cl-no-signed-zeros and -cl-mad-enable">;
790f0840820b4e28fd0cc04d737382811d7372cb832Peter Collingbournedef cl_fast_relaxed_math : Flag<"-cl-fast-relaxed-math">,
791f0840820b4e28fd0cc04d737382811d7372cb832Peter Collingbourne  HelpText<"OpenCL only. Sets -cl-finite-math-only and -cl-unsafe-math-optimizations, and defines __FAST_RELAXED_MATH__">;
7924400cb8c548a90c472444b57690117563f4be195Peter Collingbournedef cl_mad_enable : Flag<"-cl-mad-enable">,
7934400cb8c548a90c472444b57690117563f4be195Peter Collingbourne  HelpText<"OpenCL only. Enable less precise MAD instructions to be generated.">;
79491252d115bdb6f937192a8dbc86c5abe00101436Peter Collingbournedef cl_std_EQ : Joined<"-cl-std=">,
79591252d115bdb6f937192a8dbc86c5abe00101436Peter Collingbourne  HelpText<"OpenCL language standard to compile for">;
796d51e43af0b3a6897b971f316c4de2035ec82d1f2Peter Collingbourne
797d51e43af0b3a6897b971f316c4de2035ec82d1f2Peter Collingbourne//===----------------------------------------------------------------------===//
798d51e43af0b3a6897b971f316c4de2035ec82d1f2Peter Collingbourne// CUDA Options
799d51e43af0b3a6897b971f316c4de2035ec82d1f2Peter Collingbourne//===----------------------------------------------------------------------===//
800d51e43af0b3a6897b971f316c4de2035ec82d1f2Peter Collingbourne
801d51e43af0b3a6897b971f316c4de2035ec82d1f2Peter Collingbournedef fcuda_is_device : Flag<"-fcuda-is-device">,
802d51e43af0b3a6897b971f316c4de2035ec82d1f2Peter Collingbourne  HelpText<"Generate code for CUDA device">;
803