CC1Options.td revision 8b9adfea5e834eaee0f45d8cc7fb052d68df4a46
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 218adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbardef target_abi : Separate<"-target-abi">, 228adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar HelpText<"Target a particular ABI type">; 2331db76cb2dde031ab3262808ac233889daf7d720Daniel Dunbardef mcpu : Separate<"-mcpu">, 24a31100e62f83933432df9092a04e48f9e5561a14Daniel Dunbar HelpText<"Target a specific cpu type ('-mcpu help' for details)">; 2531db76cb2dde031ab3262808ac233889daf7d720Daniel Dunbardef target_feature : Separate<"-target-feature">, 268adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar HelpText<"Target specific attributes">; 2731db76cb2dde031ab3262808ac233889daf7d720Daniel Dunbardef triple : Separate<"-triple">, 288adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar HelpText<"Specify target triple (e.g. i686-apple-darwin9)">; 29ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbardef triple_EQ : Joined<"-triple=">, Alias<triple>; 3050a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar 3133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 32e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar// Analyzer Options 3333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 34e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar 35e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_CFGDump : Flag<"-cfg-dump">, 36e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Display Control-Flow Graphs">; 37e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_CFGView : Flag<"-cfg-view">, 38e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"View Control-Flow Graphs using GraphViz">; 39e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_DisplayLiveVariables : Flag<"-dump-live-variables">, 40e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Print results of live variable analysis">; 41e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_SecuritySyntacticChecks : Flag<"-warn-security-syntactic">, 42e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Perform quick security checks that require no data flow">; 43e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_WarnDeadStores : Flag<"-warn-dead-stores">, 44e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Warn about stores to dead variables">; 45e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_WarnUninitVals : Flag<"-warn-uninit-values">, 46e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Warn about uses of uninitialized variables">; 47e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_WarnObjCMethSigs : Flag<"-warn-objc-methodsigs">, 48e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Warn about Objective-C method signatures with type incompatibilities">; 49e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_WarnObjCDealloc : Flag<"-warn-objc-missing-dealloc">, 50e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">; 51e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_WarnObjCUnusedIvars : Flag<"-warn-objc-unused-ivars">, 52e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Warn about private ivars that are never used">; 53e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_CheckerCFRef : Flag<"-checker-cfref">, 54e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Run the [Core] Foundation reference count checker">; 55e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_WarnSizeofPointer : Flag<"-warn-sizeof-pointer">, 56e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Warn about unintended use of sizeof() on pointer expressions">; 57e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analysis_InlineCall : Flag<"-inline-call">, 58fc576514d06c46a7cac49500169411d82f38d04bTed Kremenek HelpText<"Experimental transfer function inlining callees when its definition is available.">; 59e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar 60e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_store : Separate<"-analyzer-store">, 61e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Source Code Analysis - Abstract Memory Store Models">; 62e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_store_EQ : Joined<"-analyzer-store=">, Alias<analyzer_store>; 63e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar 64e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_constraints : Separate<"-analyzer-constraints">, 65e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Source Code Analysis - Symbolic Constraint Engines">; 66e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_constraints_EQ : Joined<"-analyzer-constraints=">, 67e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar Alias<analyzer_constraints>; 68e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar 69e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_output : Separate<"-analyzer-output">, 70e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Source Code Analysis - Output Options">; 71e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_output_EQ : Joined<"-analyzer-output=">, 72e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar Alias<analyzer_output>; 73e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar 74e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_opt_analyze_headers : Flag<"-analyzer-opt-analyze-headers">, 75e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Force the static analyzer to analyze functions defined in header files">; 76fc576514d06c46a7cac49500169411d82f38d04bTed Kremenekdef analyzer_opt_analyze_nested_blocks : Flag<"-analyzer-opt-analyze-nested-blocks">, 77fc576514d06c46a7cac49500169411d82f38d04bTed Kremenek HelpText<"Analyze the definitions of blocks in addition to functions">; 78e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_display_progress : Flag<"-analyzer-display-progress">, 79e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Emit verbose output about the analyzer's progress">; 80e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_experimental_checks : Flag<"-analyzer-experimental-checks">, 81e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Use experimental path-sensitive checks">; 82e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_experimental_internal_checks : 83e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar Flag<"-analyzer-experimental-internal-checks">, 84e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Use new default path-sensitive checks currently in testing">; 85e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyze_function : Separate<"-analyze-function">, 86e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Run analysis on specific function">; 87e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyze_function_EQ : Joined<"-analyze-function=">, Alias<analyze_function>; 88e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_eagerly_assume : Flag<"-analyzer-eagerly-assume">, 89e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Eagerly assume the truth/falseness of some symbolic constraints">; 90e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_no_purge_dead : Flag<"-analyzer-no-purge-dead">, 91e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Don't remove dead symbols, bindings, and constraints before processing a statement">; 92e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef trim_egraph : Flag<"-trim-egraph">, 93e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Only show error-related paths in the analysis graph">; 94e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_viz_egraph_graphviz : Flag<"-analyzer-viz-egraph-graphviz">, 95e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Display exploded graph using GraphViz">; 96e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbardef analyzer_viz_egraph_ubigraph : Flag<"-analyzer-viz-egraph-ubigraph">, 97e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar HelpText<"Display exploded graph using Ubigraph">; 98e2814d89025b847ad7363b21e3e053bbae180b54Daniel Dunbar 9933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 10050a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar// CodeGen Options 10133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 10250a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar 10350a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef disable_llvm_optzns : Flag<"-disable-llvm-optzns">, 10450a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar HelpText<"Don't run LLVM optimization passes">; 10550a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef disable_red_zone : Flag<"-disable-red-zone">, 10650a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar HelpText<"Do not emit code that uses the red zone.">; 10750a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef g : Flag<"-g">, HelpText<"Generate source level debug information">; 1089c276ae0f24d4cee8f7954069d4b8eae45d0447dMike Stumpdef fcatch_undefined_behavior : Flag<"-fcatch-undefined-behavior">, 1099c276ae0f24d4cee8f7954069d4b8eae45d0447dMike Stump HelpText<"Generate runtime checks for undefined behavior.">; 11050a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef fno_common : Flag<"-fno-common">, 11150a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar HelpText<"Compile common globals like normal definitions">; 11250a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef no_implicit_float : Flag<"-no-implicit-float">, 11350a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar HelpText<"Don't generate implicit floating point instructions (x86-only)">; 11450a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef fno_merge_all_constants : Flag<"-fno-merge-all-constants">, 11550a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar HelpText<"Disallow merging of constants.">; 116f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef masm_verbose : Flag<"-masm-verbose">, 117f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar HelpText<"Generate verbose assembly output">; 118f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mcode_model : Separate<"-mcode-model">, 119f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar HelpText<"The code model to use">; 120f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mdebug_pass : Separate<"-mdebug-pass">, 121f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar HelpText<"Enable additional debug output">; 122f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mdisable_fp_elim : Flag<"-mdisable-fp-elim">, 123f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar HelpText<"Disable frame pointer elimination optimization">; 12487667aafe68c366be57f5afb60428237593da0edDaniel Dunbardef mfloat_abi : Separate<"-mfloat-abi">, 1253b315264d1a6fa303e20fe0caec306ccafc090deDaniel Dunbar HelpText<"The float ABI to use">; 126f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mlimit_float_precision : Separate<"-mlimit-float-precision">, 127f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar HelpText<"Limit float precision to the given value">; 128f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mno_zero_initialized_in_bss : Flag<"-mno-zero-initialized-in-bss">, 129f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar HelpText<"Do not put zero initialized data in the BSS">; 13087667aafe68c366be57f5afb60428237593da0edDaniel Dunbardef msoft_float : Flag<"-msoft-float">, 1313b315264d1a6fa303e20fe0caec306ccafc090deDaniel Dunbar HelpText<"Use software floating point">; 132f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef mrelocation_model : Separate<"-mrelocation-model">, 133f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar HelpText<"The relocation model to use">; 134f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbardef munwind_tables : Flag<"-munwind-tables">, 135f219e7c1529fac29e34483667f740b452e5ef9ccDaniel Dunbar HelpText<"Generate unwinding tables for all functions">; 13650a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef O : Joined<"-O">, HelpText<"Optimization level">; 13750a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef Os : Flag<"-Os">, HelpText<"Optimize for size">; 1381bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar 13933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 1401bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar// Dependency Output Options 14133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 14233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 1431bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef dependency_file : Separate<"-dependency-file">, 1441bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar HelpText<"Filename (or -) to write dependency output to">; 1451bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef sys_header_deps : Flag<"-sys-header-deps">, 1461bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar HelpText<"Include system headers in dependency output">; 1471bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef MT : Separate<"-MT">, HelpText<"Specify target for dependency">; 1481bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbardef MP : Flag<"-MP">, 1491bed0c3a555d9e32de9dead55658b4a28a4d6e03Daniel Dunbar HelpText<"Create phony target for each dependency (other than main file)">; 15021affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar 15133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 15221affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// Diagnostic Options 15333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 15421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar 15521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef dump_build_information : Separate<"-dump-build-information">, 156b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar MetaVarName<"<filename>">, 15721affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"output a dump of some build information to a file">; 15821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_show_column : Flag<"-fno-show-column">, 15921affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Do not include column number on diagnostics">; 16021affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_show_source_location : Flag<"-fno-show-source-location">, 16121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Do not include source location information with diagnostics">; 16221affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_caret_diagnostics : Flag<"-fno-caret-diagnostics">, 16321affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Do not include source line and caret with diagnostics">; 16421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fno_diagnostics_fixit_info : Flag<"-fno-diagnostics-fixit-info">, 16521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Do not include fixit information in diagnostics">; 16633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef w : Flag<"-w">, HelpText<"Suppress all warnings">; 16721affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef pedantic : Flag<"-pedantic">; 16821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef pedantic_errors : Flag<"-pedantic-errors">; 16921affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar 17021affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// This gets all -W options, including -Werror, -W[no-]system-headers, etc. The 17121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// driver has stripped off -Wa,foo etc. The driver has also translated -W to 17221affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar// -Wextra, so we don't need to worry about it. 17321affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef W : Joined<"-W">; 17421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar 17521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fdiagnostics_print_source_range_info : Flag<"-fdiagnostics-print-source-range-info">, 17621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Print source range spans in numeric form">; 17721affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fdiagnostics_show_option : Flag<"-fdiagnostics-show-option">, 17821affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Print diagnostic name with mappable diagnostics">; 179b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef fmessage_length : Separate<"-fmessage-length">, MetaVarName<"<N>">, 18021affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Format message diagnostics so that they fit within N columns or fewer, when possible.">; 18121affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef fcolor_diagnostics : Flag<"-fcolor-diagnostics">, 18221affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Use colors in diagnostics">; 18321affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef Wno_rewrite_macros : Flag<"-Wno-rewrite-macros">, 18421affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Silence ObjC rewriting warnings">; 18521affc089773edc30be43ecb0022a48acdac7093Daniel Dunbardef verify : Flag<"-verify">, 18621affc089773edc30be43ecb0022a48acdac7093Daniel Dunbar HelpText<"Verify emitted diagnostics and warnings">; 18733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 18833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 18933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Frontend Options 19033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 19133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 1928ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbar// This isn't normally used, it is just here so we can parse a 1938ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbar// CompilerInvocation out of a driver-derived argument vector. 1948ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbardef cc1 : Flag<"-cc1">; 1958ff5b28d6efcffe2251e77634c7edf83a4763344Daniel Dunbar 19633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef code_completion_at : Separate<"-code-completion-at">, 197b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar MetaVarName<"<file>:<line>:<column>">, 19833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Dump code-completion information at a location">; 199e14b5f5237d0740c2b21c50b2eb41a06e778d820Daniel Dunbardef remap_file : Separate<"-remap-file">, 200e14b5f5237d0740c2b21c50b2eb41a06e778d820Daniel Dunbar MetaVarName<"<from>;<to>">, 201e14b5f5237d0740c2b21c50b2eb41a06e778d820Daniel Dunbar HelpText<"Replace the contents of the <from> file with the contents of the <to> file">; 202ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbardef code_completion_at_EQ : Joined<"-code-completion-at=">, 203ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbar Alias<code_completion_at>; 20433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef no_code_completion_debug_printer : Flag<"-no-code-completion-debug-printer">, 205b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar HelpText<"Don't use the \"debug\" code-completion print">; 20633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef code_completion_macros : Flag<"-code-completion-macros">, 20733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Include macros in code-completion results">; 20833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef disable_free : Flag<"-disable-free">, 20933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Disable freeing of memory on exit">; 21033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef empty_input_only : Flag<"-empty-input-only">, 21133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Force running on an empty input file">; 2129b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef help : Flag<"-help">, 2139b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbar HelpText<"Print this help text">; 2149b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef _help : Flag<"--help">, Alias<help>; 21533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef x : Separate<"-x">, HelpText<"Input language type">; 21633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef cxx_inheritance_view : Separate<"-cxx-inheritance-view">, 217b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar MetaVarName<"<class name>">, 21833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"View C++ inheritance for a specified class">; 219b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef fixit_at : Separate<"-fixit-at">, MetaVarName<"<source location>">, 22033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Perform Fix-It modifications at the given source location">; 221b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef o : Separate<"-o">, MetaVarName<"<path>">, HelpText<"Specify output file">; 222b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef load : Separate<"-load">, MetaVarName<"<dsopath>">, 223efba227cc5459554eca466aafe786b5132dcb68cDaniel Dunbar HelpText<"Load the named plugin (dynamic shared object)">; 22433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef plugin : Separate<"-plugin">, 22533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Use the named plugin action (use \"help\" to list available options)">; 2268b9adfea5e834eaee0f45d8cc7fb052d68df4a46Daniel Dunbardef resource_dir : Separate<"-resource-dir">, 2278b9adfea5e834eaee0f45d8cc7fb052d68df4a46Daniel Dunbar HelpText<"The directory which holds the compiler resource files">; 2289b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef version : Flag<"-version">, 2299b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbar HelpText<"Print the compiler version">; 2309b5e9ae08defd14441acca1d7d4502b933bf6c5aDaniel Dunbardef _version : Flag<"--version">, Alias<version>; 23133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 23233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef Action_Group : OptionGroup<"<action group>">; 23333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbarlet Group = Action_Group in { 23433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 23533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef Eonly : Flag<"-Eonly">, 23633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Just run preprocessor, no output (for timings)">; 23733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef E : Flag<"-E">, 23833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Run preprocessor, emit preprocessed file">; 23933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dump_raw_tokens : Flag<"-dump-raw-tokens">, 24033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Lex file in raw mode and dump raw tokens">; 24133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef analyze : Flag<"-analyze">, 24233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Run static analysis engine">; 24333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dump_tokens : Flag<"-dump-tokens">, 24433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Run preprocessor, dump internal rep of tokens">; 24533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef parse_noop : Flag<"-parse-noop">, 24633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Run parser with noop callbacks (for timings)">; 24733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fsyntax_only : Flag<"-fsyntax-only">, 24833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Run parser and perform semantic analysis">; 24933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fixit : Flag<"-fixit">, 25033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Apply fix-it advice to the input source">; 25133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef parse_print_callbacks : Flag<"-parse-print-callbacks">, 25233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Run parser and print each callback invoked">; 25333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_html : Flag<"-emit-html">, 25433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Output input source as HTML">; 25533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_print : Flag<"-ast-print">, 25633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Build ASTs and then pretty-print them">; 25733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_print_xml : Flag<"-ast-print-xml">, 25833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Build ASTs and then print them in XML format">; 25933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_dump : Flag<"-ast-dump">, 26033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Build ASTs and then debug dump them">; 26133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ast_view : Flag<"-ast-view">, 26233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Build ASTs and view them with GraphViz">; 26333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef print_decl_contexts : Flag<"-print-decl-contexts">, 26433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Print DeclContexts and their Decls">; 26533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dump_record_layouts : Flag<"-dump-record-layouts">, 26633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Dump record layout information">; 26733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_pth : Flag<"-emit-pth">, 26833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Generate pre-tokenized header file">; 26933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_pch : Flag<"-emit-pch">, 27033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Generate pre-compiled header file">; 27133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef S : Flag<"-S">, 27233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Emit native assembly code">; 27333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_llvm : Flag<"-emit-llvm">, 27433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Build ASTs then convert to LLVM, emit .ll file">; 27533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_llvm_bc : Flag<"-emit-llvm-bc">, 27633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Build ASTs then convert to LLVM, emit .bc file">; 27733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef emit_llvm_only : Flag<"-emit-llvm-only">, 27833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Build ASTs and convert to LLVM, discarding output">; 27933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_test : Flag<"-rewrite-test">, 28033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Rewriter playground">; 28133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_objc : Flag<"-rewrite-objc">, 28233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Rewrite ObjC into C (code rewriter example)">; 28333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_macros : Flag<"-rewrite-macros">, 28433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Expand macros without full preprocessing">; 28533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef rewrite_blocks : Flag<"-rewrite-blocks">, 28633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Rewrite Blocks to C">; 28733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 28833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar} 28933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 29033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef relocatable_pch : Flag<"-relocatable-pch">, 29133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Whether to build a relocatable precompiled header">; 29233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef print_stats : Flag<"-print-stats">, 29333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Print performance metrics and statistics">; 29433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ftime_report : Flag<"-ftime-report">, 29533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Print the amount of time each phase of compilation takes">; 29633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 29733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 29833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Language Options 29933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 30033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 30133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_builtin : Flag<"-fno-builtin">, 30233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Disable implicit builtin knowledge of functions">; 30333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef faltivec : Flag<"-faltivec">, 30433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Enable AltiVec vector initializer syntax">; 30533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef faccess_control : Flag<"-faccess-control">, 30633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Enable C++ access control">; 30733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fdollars_in_identifiers : Flag<"-fdollars-in-identifiers">, 30833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Allow '$' in identifiers">; 30933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef femit_all_decls : Flag<"-femit-all-decls">, 31033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Emit all declarations, even if unused">; 31133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fblocks : Flag<"-fblocks">, 31233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"enable the 'blocks' language feature">; 31333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fheinous_gnu_extensions : Flag<"-fheinous-gnu-extensions">; 31433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fexceptions : Flag<"-fexceptions">, 31533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Enable support for exception handling">; 31633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ffreestanding : Flag<"-ffreestanding">, 31733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Assert that the compilation takes place in a freestanding environment">; 31833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fgnu_runtime : Flag<"-fgnu-runtime">, 31933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Generate output compatible with the standard GNU Objective-C runtime">; 320ce6bf1ecdaca15450d8c0424724cc1558b847364Daniel Dunbardef std_EQ : Joined<"-std=">, 32133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Language standard to compile for">; 32233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fms_extensions : Flag<"-fms-extensions">, 32333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Accept some non-standard constructs used in Microsoft header files ">; 32433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef main_file_name : Separate<"-main-file-name">, 32533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Main file name to use for debug info">; 32633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_elide_constructors : Flag<"-fno-elide-constructors">, 32733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Disable C++ copy constructor elision">; 32833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_lax_vector_conversions : Flag<"-fno-lax-vector-conversions">, 32933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Disallow implicit conversions between vectors with a different number of elements or different element types">; 3307674352cf3e8f699914a2f739f1ae8c8c3480813Daniel Dunbardef fno_math_errno : Flag<"-fno-math-errno">, 3317674352cf3e8f699914a2f739f1ae8c8c3480813Daniel Dunbar HelpText<"Don't require math functions to respect errno">; 3327674352cf3e8f699914a2f739f1ae8c8c3480813Daniel Dunbardef fno_signed_char : Flag<"-fno-signed-char">, 3337674352cf3e8f699914a2f739f1ae8c8c3480813Daniel Dunbar HelpText<"Char is unsigned">; 33433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_operator_names : Flag<"-fno-operator-names">, 33533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Do not treat C++ operator name keywords as synonyms for operators">; 33633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fconstant_string_class : Separate<"-fconstant-string-class">, 337b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar MetaVarName<"<class name>">, 33833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Specify the class to use for constant Objective-C string objects.">; 33933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fobjc_gc : Flag<"-fobjc-gc">, 34033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Enable Objective-C garbage collection">; 34133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fobjc_gc_only : Flag<"-fobjc-gc-only">, 34233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Use GC exclusively for Objective-C related memory management">; 34333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef print_ivar_layout : Flag<"-print-ivar-layout">, 34433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Enable Objective-C Ivar layout bitmap print trace">; 34533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fobjc_nonfragile_abi : Flag<"-fobjc-nonfragile-abi">, 34633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"enable objective-c's nonfragile abi">; 34733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ftrapv : Flag<"-ftrapv">, 34833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Trap on integer overflow">; 3497674352cf3e8f699914a2f739f1ae8c8c3480813Daniel Dunbardef pic_level : Separate<"-pic-level">, 350b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbar HelpText<"Value for __PIC__">; 35133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef pthread : Flag<"-pthread">, 35233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Support POSIX threads in generated code">; 35333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fpascal_strings : Flag<"-fpascal-strings">, 35433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Recognize and construct Pascal-style string literals">; 35533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fno_rtti : Flag<"-fno-rtti">, 35633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Disable generation of rtti information">; 35733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fshort_wchar : Flag<"-fshort-wchar">, 35833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Force wchar_t to be a short unsigned int">; 35933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef static_define : Flag<"-static-define">, 36033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Should __STATIC__ be defined">; 36133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef stack_protector : Separate<"-stack-protector">, 36233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Enable stack protectors">; 36333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fvisibility : Separate<"-fvisibility">, 36433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Default symbol visibility">; 36533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef ftemplate_depth : Separate<"-ftemplate-depth">, 36633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Maximum depth of recursive template instantiation">; 36733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef trigraphs : Flag<"-trigraphs">, 36833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Process trigraph sequences">; 36933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef fwritable_strings : Flag<"-fwritable-strings">, 37033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Store string literals as writable data">; 37133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 37233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 37333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Header Search Options 37433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 37533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 37633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef nostdinc : Flag<"-nostdinc">, 37733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Disable standard #include directories">; 37833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef nobuiltininc : Flag<"-nobuiltininc">, 37933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Disable builtin #include directories">; 380b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef F : JoinedOrSeparate<"-F">, MetaVarName<"<directory>">, 38133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Add directory to framework include search path">; 382b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef I : JoinedOrSeparate<"-I">, MetaVarName<"<directory>">, 38333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Add directory to include search path">; 384b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef idirafter : JoinedOrSeparate<"-idirafter">, MetaVarName<"<directory>">, 38533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Add directory to AFTER include search path">; 386b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef iquote : JoinedOrSeparate<"-iquote">, MetaVarName<"<directory>">, 38733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Add directory to QUOTE include search path">; 388b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef isystem : JoinedOrSeparate<"-isystem">, MetaVarName<"<directory>">, 38933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Add directory to SYSTEM include search path">; 390b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef iprefix : JoinedOrSeparate<"-iprefix">, MetaVarName<"<prefix>">, 39133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Set the -iwithprefix/-iwithprefixbefore prefix">; 392b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef iwithprefix : JoinedOrSeparate<"-iwithprefix">, MetaVarName<"<dir>">, 39333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Set directory to SYSTEM include search path with prefix">; 394e4cb2a4b4ad6b9596f9109945a5b3a87949f375bMike Stumpdef iwithprefixbefore : JoinedOrSeparate<"-iwithprefixbefore">, 395e4cb2a4b4ad6b9596f9109945a5b3a87949f375bMike Stump MetaVarName<"<dir>">, 39633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Set directory to include search path with prefix">; 397b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef isysroot : JoinedOrSeparate<"-isysroot">, MetaVarName<"<dir>">, 39833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Set the system root directory (usually /)">; 39933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef v : Flag<"-v">, HelpText<"Enable verbose output">; 40033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 40133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 40233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Preprocessor Options 40333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 40433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 405b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef D : JoinedOrSeparate<"-D">, MetaVarName<"<macro>">, 40633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Predefine the specified macro">; 407b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef include_ : JoinedOrSeparate<"-include">, MetaVarName<"<file>">, EnumName<"include">, 40833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Include file before parsing">; 409b94ffa4a641b71c7c6155cddc7dc384f8a45c9f1Daniel Dunbardef imacros : JoinedOrSeparate<"-imacros">, MetaVarName<"<file>">, 41033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Include macros from file before parsing">; 411b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef include_pch : Separate<"-include-pch">, MetaVarName<"<file>">, 41233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Include precompiled header file">; 413b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef include_pth : Separate<"-include-pth">, MetaVarName<"<file>">, 41433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Include file before parsing">; 415b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef token_cache : Separate<"-token-cache">, MetaVarName<"<path>">, 41633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Use specified token cache file">; 417b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef U : JoinedOrSeparate<"-U">, MetaVarName<"<macro>">, 41833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Undefine the specified macro">; 419b737fb12cbf9617edc5720fba8b6aed118c84771Daniel Dunbardef undef : Flag<"-undef">, MetaVarName<"<macro>">, 42033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"undef all system defines">; 42133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 42233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 42333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar// Preprocessed Output Options 42433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar//===----------------------------------------------------------------------===// 42533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar 42633a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef P : Flag<"-P">, 42733a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Disable linemarker output in -E mode">; 42833a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef C : Flag<"-C">, 42933a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Enable comment output in -E mode">; 43033a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef CC : Flag<"-CC">, 43133a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Enable comment output in -E mode, even from macro expansions">; 43233a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dM : Flag<"-dM">, 43333a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Print macro definitions in -E mode instead of normal output">; 43433a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbardef dD : Flag<"-dD">, 43533a33d8abd7a3d49eacc05e40c00b00634bf1ee9Daniel Dunbar HelpText<"Print macro definitions in -E mode in addition to normal output">; 436