<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><div>On Oct 22, 2012, at 3:13 PM, Michael J. Spencer <<a href="mailto:bigcheesegs@gmail.com">bigcheesegs@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Author: mspencer<br>Date: Mon Oct 22 17:13:48 2012<br>New Revision: 166444<br><br>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=166444&view=rev">http://llvm.org/viewvc/llvm-project?rev=166444&view=rev</a><br>Log:<br>[Options] Add prefixes to options.<br><br>Each option has a set of prefixes. When matching an argument such as<br>-funroll-loops. First the leading - is removed as it is a prefix. Then<br>a lower_bound search for "funroll-loops" is done against the option table by<br>option name. From there each option prefix + option name combination is tested<br>against the argument.<br><br>This allows us to support Microsoft style options where both / and - are valid<br>prefixes. It also simplifies the cases we already have where options come in<br>both - and -- forms. Almost every option for gnu-ld happens to have this form.<br><br>Modified:<br>    cfe/trunk/include/clang/Driver/Arg.h<br>    cfe/trunk/include/clang/Driver/CC1AsOptions.h<br>    cfe/trunk/include/clang/Driver/CC1AsOptions.td<br>    cfe/trunk/include/clang/Driver/CC1Options.td<br>    cfe/trunk/include/clang/Driver/OptParser.td<br>    cfe/trunk/include/clang/Driver/OptTable.h<br>    cfe/trunk/include/clang/Driver/Option.h<br>    cfe/trunk/include/clang/Driver/Options.h<br>    cfe/trunk/include/clang/Driver/Options.td<br>    cfe/trunk/lib/Driver/Arg.cpp<br>    cfe/trunk/lib/Driver/ArgList.cpp<br>    cfe/trunk/lib/Driver/CC1AsOptions.cpp<br>    cfe/trunk/lib/Driver/Driver.cpp<br>    cfe/trunk/lib/Driver/DriverOptions.cpp<br>    cfe/trunk/lib/Driver/OptTable.cpp<br>    cfe/trunk/lib/Driver/Option.cpp<br>    cfe/trunk/lib/Driver/Tools.cpp<br>    cfe/trunk/lib/Frontend/CompilerInvocation.cpp<br>    cfe/trunk/utils/TableGen/OptParserEmitter.cpp<br><br>Modified: cfe/trunk/include/clang/Driver/Arg.h<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Arg.h?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Arg.h?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/include/clang/Driver/Arg.h (original)<br>+++ cfe/trunk/include/clang/Driver/Arg.h Mon Oct 22 17:13:48 2012<br>@@ -45,6 +45,9 @@<br>     /// argument translation), if any.<br>     const Arg *BaseArg;<br><br>+    /// \brief How this instance of the option was spelled.<br>+    StringRef Spelling;<br>+<br>     /// \brief The index at which this argument appears in the containing<br>     /// ArgList.<br>     unsigned Index;<br>@@ -61,14 +64,16 @@<br>     SmallVector<const char *, 2> Values;<br><br>   public:<br>-    Arg(const Option Opt, unsigned Index, const Arg *BaseArg = 0);<br>-    Arg(const Option Opt, unsigned Index,<br>+    Arg(const Option Opt, StringRef Spelling, unsigned Index,<br>+        const Arg *BaseArg = 0);<br>+    Arg(const Option Opt, StringRef Spelling, unsigned Index,<br>         const char *Value0, const Arg *BaseArg = 0);<br>-    Arg(const Option Opt, unsigned Index,<br>+    Arg(const Option Opt, StringRef Spelling, unsigned Index,<br>         const char *Value0, const char *Value1, const Arg *BaseArg = 0);<br>     ~Arg();<br><br>     const Option getOption() const { return Opt; }<br>+    StringRef getSpelling() const { return Spelling; }<br>     unsigned getIndex() const { return Index; }<br><br>     /// \brief Return the base argument which generated this arg.<br><br>Modified: cfe/trunk/include/clang/Driver/CC1AsOptions.h<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1AsOptions.h?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1AsOptions.h?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/include/clang/Driver/CC1AsOptions.h (original)<br>+++ cfe/trunk/include/clang/Driver/CC1AsOptions.h Mon Oct 22 17:13:48 2012<br>@@ -17,11 +17,13 @@<br> namespace cc1asoptions {<br>   enum ID {<br>     OPT_INVALID = 0, // This is not an option ID.<br>-#define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>+#define PREFIX(NAME, VALUE)<br>+#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>                HELPTEXT, METAVAR) OPT_##ID,<br> #include "clang/Driver/CC1AsOptions.inc"<br>     LastOption<br> #undef OPTION<br>+#undef PREFIX<br>   };<br> }<br><br><br>Modified: cfe/trunk/include/clang/Driver/CC1AsOptions.td<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1AsOptions.td?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1AsOptions.td?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/include/clang/Driver/CC1AsOptions.td (original)<br>+++ cfe/trunk/include/clang/Driver/CC1AsOptions.td Mon Oct 22 17:13:48 2012<br>@@ -18,22 +18,22 @@<br> // Target Options<br> //===----------------------------------------------------------------------===//<br><br>-def triple : Separate<"-triple">,<br>+def triple : Separate<["-"], "triple">,<br>   HelpText<"Specify target triple (e.g. x86_64-pc-linux-gnu)">;<br>-def target_cpu : Separate<"-target-cpu">,<br>+def target_cpu : Separate<["-"], "target-cpu">,<br>   HelpText<"Target a specific cpu type">;<br>-def target_feature : Separate<"-target-feature">,<br>+def target_feature : Separate<["-"], "target-feature">,<br>   HelpText<"Target specific attributes">;<br><br> //===----------------------------------------------------------------------===//<br> // Language Options<br> //===----------------------------------------------------------------------===//<br><br>-def I : JoinedOrSeparate<"-I">, MetaVarName<"<directory>">,<br>+def I : JoinedOrSeparate<["-"], "I">, MetaVarName<"<directory>">,<br>   HelpText<"Add directory to include search path">;<br>-def n : Flag<"-n">,<br>+def n : Flag<["-"], "n">,<br>   HelpText<"Don't automatically start assembly file with a text section">;<br>-def L : Flag<"-L">,<br>+def L : Flag<["-"], "L">,<br>   HelpText<"Save temporary labels in the symbol table. "<br>            "Note this may change .s semantics, it should almost never be used "<br>            "on compiler generated code!">;<br>@@ -42,50 +42,49 @@<br> // Frontend Options<br> //===----------------------------------------------------------------------===//<br><br>-def o : Separate<"-o">, MetaVarName<"<path>">, HelpText<"Specify output file">;<br>+def o : Separate<["-"], "o">, MetaVarName<"<path>">,<br>+  HelpText<"Specify output file">;<br><br>-def filetype : Separate<"-filetype">,<br>+def filetype : Separate<["-"], "filetype">,<br>     HelpText<"Specify the output file type ('asm', 'null', or 'obj')">;<br><br>-def help : Flag<"-help">,<br>+def help : Flag<["-", "--"], "-help">,<br>   HelpText<"Print this help text">;<br>-def _help : Flag<"--help">, Alias<help>;<br><br>-def version : Flag<"-version">,<br>+def version : Flag<["-", "--"], "version">,<br>   HelpText<"Print the assembler version">;<br>-def _version : Flag<"--version">, Alias<version>;<br>-def v : Flag<"-v">, Alias<version>;<br>+def v : Flag<["-"], "v">, Alias<version>;<br><br> // Generic forwarding to LLVM options. This should only be used for debugging<br> // and experimental features.<br>-def mllvm : Separate<"-mllvm">,<br>+def mllvm : Separate<["-"], "mllvm">,<br>   HelpText<"Additional arguments to forward to LLVM's option processing">;<br><br> //===----------------------------------------------------------------------===//<br> // Transliterate Options<br> //===----------------------------------------------------------------------===//<br><br>-def output_asm_variant : Separate<"-output-asm-variant">,<br>+def output_asm_variant : Separate<["-"], "output-asm-variant">,<br>     HelpText<"Select the asm variant index to use for output">;<br>-def show_encoding : Flag<"-show-encoding">,<br>+def show_encoding : Flag<["-"], "show-encoding">,<br>     HelpText<"Show instruction encoding information in transliterate mode">;<br>-def show_inst : Flag<"-show-inst">,<br>+def show_inst : Flag<["-"], "show-inst">,<br>     HelpText<"Show internal instruction representation in transliterate mode">;<br><br> //===----------------------------------------------------------------------===//<br> // Assemble Options<br> //===----------------------------------------------------------------------===//<br><br>-def relax_all : Flag<"-relax-all">,<br>+def relax_all : Flag<["-"], "relax-all">,<br>     HelpText<"Relax all fixups (for performance testing)">;<br><br>-def no_exec_stack : Flag<"--noexecstack">,<br>+def no_exec_stack : Flag<["-"], "-noexecstack">,<br>     HelpText<"Mark the file as not needing an executable stack">;<br><br>-def fatal_warnings : Flag<"--fatal-warnings">,<br>+def fatal_warnings : Flag<["--"], "fatal-warnings">,<br>     HelpText<"Consider warnings as errors">;<br><br>-def g : Flag<"-g">, HelpText<"Generate source level debug information">;<br>+def g : Flag<["-"], "g">, HelpText<"Generate source level debug information">;<br><br>-def dwarf_debug_flags : Separate<"-dwarf-debug-flags">,<br>+def dwarf_debug_flags : Separate<["-"], "dwarf-debug-flags">,<br>   HelpText<"The string to embed in the Dwarf debug flags record.">;<br><br>Modified: cfe/trunk/include/clang/Driver/CC1Options.td<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1Options.td?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1Options.td?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/include/clang/Driver/CC1Options.td (original)<br>+++ cfe/trunk/include/clang/Driver/CC1Options.td Mon Oct 22 17:13:48 2012<br>@@ -17,232 +17,234 @@<br> // Target Options<br> //===----------------------------------------------------------------------===//<br><br>-def cxx_abi : Separate<"-cxx-abi">,<br>+def cxx_abi : Separate<["-"], "cxx-abi">,<br>   HelpText<"Target a particular C++ ABI type">;<br>-def target_abi : Separate<"-target-abi">,<br>+def target_abi : Separate<["-"], "target-abi">,<br>   HelpText<"Target a particular ABI type">;<br>-def target_cpu : Separate<"-target-cpu">,<br>+def target_cpu : Separate<["-"], "target-cpu">,<br>   HelpText<"Target a specific cpu type">;<br>-def target_feature : Separate<"-target-feature">,<br>+def target_feature : Separate<["-"], "target-feature">,<br>   HelpText<"Target specific attributes">;<br>-def target_linker_version : Separate<"-target-linker-version">,<br>+def target_linker_version : Separate<["-"], "target-linker-version">,<br>   HelpText<"Target linker version">;<br>-def triple : Separate<"-triple">,<br>+def triple : Separate<["-"], "triple">,<br>   HelpText<"Specify target triple (e.g. i686-apple-darwin9)">;<br>-def triple_EQ : Joined<"-triple=">, Alias<triple>;<br>+def triple_EQ : Joined<["-"], "triple=">, Alias<triple>;<br><br> //===----------------------------------------------------------------------===//<br> // Analyzer Options<br> //===----------------------------------------------------------------------===//<br><br>-def analysis_UnoptimizedCFG : Flag<"-unoptimized-cfg">,<br>+def analysis_UnoptimizedCFG : Flag<["-"], "unoptimized-cfg">,<br>   HelpText<"Generate unoptimized CFGs for all analyses">;<br>+def analysis_CFGAddImplicitDtors : Flag<["-"], "cfg-add-implicit-dtors">,<br>+  HelpText<"Add C++ implicit destructors to CFGs for all analyses">;<br><br>-def analyzer_store : Separate<"-analyzer-store">,<br>+def analyzer_store : Separate<["-"], "analyzer-store">,<br>   HelpText<"Source Code Analysis - Abstract Memory Store Models">;<br>-def analyzer_store_EQ : Joined<"-analyzer-store=">, Alias<analyzer_store>;<br>+def analyzer_store_EQ : Joined<["-"], "analyzer-store=">, Alias<analyzer_store>;<br><br>-def analyzer_constraints : Separate<"-analyzer-constraints">,<br>+def analyzer_constraints : Separate<["-"], "analyzer-constraints">,<br>   HelpText<"Source Code Analysis - Symbolic Constraint Engines">;<br>-def analyzer_constraints_EQ : Joined<"-analyzer-constraints=">,<br>+def analyzer_constraints_EQ : Joined<["-"], "analyzer-constraints=">,<br>   Alias<analyzer_constraints>;<br><br>-def analyzer_output : Separate<"-analyzer-output">,<br>+def analyzer_output : Separate<["-"], "analyzer-output">,<br>   HelpText<"Source Code Analysis - Output Options">;<br>-def analyzer_output_EQ : Joined<"-analyzer-output=">,<br>+def analyzer_output_EQ : Joined<["-"], "analyzer-output=">,<br>   Alias<analyzer_output>;<br><br>-def analyzer_purge : Separate<"-analyzer-purge">,<br>+def analyzer_purge : Separate<["-"], "analyzer-purge">,<br>   HelpText<"Source Code Analysis - Dead Symbol Removal Frequency">;<br>-def analyzer_purge_EQ : Joined<"-analyzer-purge=">, Alias<analyzer_purge>;<br>+def analyzer_purge_EQ : Joined<["-"], "analyzer-purge=">, Alias<analyzer_purge>;<br><br>-def analyzer_opt_analyze_headers : Flag<"-analyzer-opt-analyze-headers">,<br>+def analyzer_opt_analyze_headers : Flag<["-"], "analyzer-opt-analyze-headers">,<br>   HelpText<"Force the static analyzer to analyze functions defined in header files">;<br>-def analyzer_opt_analyze_nested_blocks : Flag<"-analyzer-opt-analyze-nested-blocks">,<br>+def analyzer_opt_analyze_nested_blocks : Flag<["-"], "analyzer-opt-analyze-nested-blocks">,<br>   HelpText<"Analyze the definitions of blocks in addition to functions">;<br>-def analyzer_display_progress : Flag<"-analyzer-display-progress">,<br>+def analyzer_display_progress : Flag<["-"], "analyzer-display-progress">,<br>   HelpText<"Emit verbose output about the analyzer's progress">;<br>-def analyze_function : Separate<"-analyze-function">,<br>+def analyze_function : Separate<["-"], "analyze-function">,<br>   HelpText<"Run analysis on specific function">;<br>-def analyze_function_EQ : Joined<"-analyze-function=">, Alias<analyze_function>;<br>-def analyzer_eagerly_assume : Flag<"-analyzer-eagerly-assume">,<br>+def analyze_function_EQ : Joined<["-"], "analyze-function=">, Alias<analyze_function>;<br>+def analyzer_eagerly_assume : Flag<["-"], "analyzer-eagerly-assume">,<br>   HelpText<"Eagerly assume the truth/falseness of some symbolic constraints">;<br>-def analyzer_no_eagerly_trim_egraph : Flag<"-analyzer-no-eagerly-trim-egraph">,<br>+def analyzer_no_eagerly_trim_egraph : Flag<["-"], "analyzer-no-eagerly-trim-egraph">,<br>   HelpText<"Don't eagerly remove uninteresting ExplodedNodes from the ExplodedGraph">;<br>-def trim_egraph : Flag<"-trim-egraph">,<br>+def trim_egraph : Flag<["-"], "trim-egraph">,<br>   HelpText<"Only show error-related paths in the analysis graph">;<br>-def analyzer_viz_egraph_graphviz : Flag<"-analyzer-viz-egraph-graphviz">,<br>+def analyzer_viz_egraph_graphviz : Flag<["-"], "analyzer-viz-egraph-graphviz">,<br>   HelpText<"Display exploded graph using GraphViz">;<br>-def analyzer_viz_egraph_ubigraph : Flag<"-analyzer-viz-egraph-ubigraph">,<br>+def analyzer_viz_egraph_ubigraph : Flag<["-"], "analyzer-viz-egraph-ubigraph">,<br>   HelpText<"Display exploded graph using Ubigraph">;<br><br>-def analyzer_inline_max_stack_depth : Separate<"-analyzer-inline-max-stack-depth">,<br>+def analyzer_inline_max_stack_depth : Separate<["-"], "analyzer-inline-max-stack-depth">,<br>   HelpText<"Bound on stack depth while inlining (4 by default)">;<br>-def analyzer_inline_max_stack_depth_EQ : Joined<"-analyzer-inline-max-stack-depth=">, <br>+def analyzer_inline_max_stack_depth_EQ : Joined<["-"], "analyzer-inline-max-stack-depth=">, <br>   Alias<analyzer_inline_max_stack_depth>;<br><br>-def analyzer_inline_max_function_size : Separate<"-analyzer-inline-max-function-size">,<br>+def analyzer_inline_max_function_size : Separate<["-"], "analyzer-inline-max-function-size">,<br>   HelpText<"Bound on the number of basic blocks in an inlined function (200 by default)">;<br>-def analyzer_inline_max_function_size_EQ : Joined<"-analyzer-inline-max-function-size=">, <br>+def analyzer_inline_max_function_size_EQ : Joined<["-"], "analyzer-inline-max-function-size=">, <br>   Alias<analyzer_inline_max_function_size>;<br><br>-def analyzer_ipa : Separate<"-analyzer-ipa">,<br>+def analyzer_ipa : Separate<["-"], "analyzer-ipa">,<br>   HelpText<"Specify the inter-procedural analysis mode">;<br>-def analyzer_ipa_EQ : Joined<"-analyzer-ipa=">, Alias<analyzer_ipa>;<br>+def analyzer_ipa_EQ : Joined<["-"], "analyzer-ipa=">, Alias<analyzer_ipa>;<br><br>-def analyzer_inlining_mode : Separate<"-analyzer-inlining-mode">,<br>+def analyzer_inlining_mode : Separate<["-"], "analyzer-inlining-mode">,<br>   HelpText<"Specify the function selection heuristic used during inlining">;<br>-def analyzer_inlining_mode_EQ : Joined<"-analyzer-inlining-mode=">, Alias<analyzer_inlining_mode>;<br>+def analyzer_inlining_mode_EQ : Joined<["-"], "analyzer-inlining-mode=">, Alias<analyzer_inlining_mode>;<br><br>-def analyzer_disable_retry_exhausted : Flag<"-analyzer-disable-retry-exhausted">,<br>+def analyzer_disable_retry_exhausted : Flag<["-"], "analyzer-disable-retry-exhausted">,<br>   HelpText<"Do not re-analyze paths leading to exhausted nodes with a different strategy (may decrease code coverage)">;<br><br>-def analyzer_max_nodes : Separate<"-analyzer-max-nodes">,<br>+def analyzer_max_nodes : Separate<["-"], "analyzer-max-nodes">,<br>   HelpText<"The maximum number of nodes the analyzer can generate (150000 default, 0 = no limit)">;<br>-def analyzer_max_loop : Separate<"-analyzer-max-loop">,<br>+def analyzer_max_loop : Separate<["-"], "analyzer-max-loop">,<br>   HelpText<"The maximum number of times the analyzer will go through a loop">;<br>-def analyzer_stats : Flag<"-analyzer-stats">,<br>+def analyzer_stats : Flag<["-"], "analyzer-stats">,<br>   HelpText<"Print internal analyzer statistics.">;<br><br>-def analyzer_checker : Separate<"-analyzer-checker">,<br>+def analyzer_checker : Separate<["-"], "analyzer-checker">,<br>   HelpText<"Choose analyzer checkers to enable">;<br>-def analyzer_checker_EQ : Joined<"-analyzer-checker=">,<br>+def analyzer_checker_EQ : Joined<["-"], "analyzer-checker=">,<br>   Alias<analyzer_checker>;<br><br>-def analyzer_disable_checker : Separate<"-analyzer-disable-checker">,<br>+def analyzer_disable_checker : Separate<["-"], "analyzer-disable-checker">,<br>   HelpText<"Choose analyzer checkers to disable">;<br>-def analyzer_disable_checker_EQ : Joined<"-analyzer-disable-checker=">,<br>+def analyzer_disable_checker_EQ : Joined<["-"], "analyzer-disable-checker=">,<br>   Alias<analyzer_disable_checker>;<br><br>-def analyzer_checker_help : Flag<"-analyzer-checker-help">,<br>+def analyzer_checker_help : Flag<["-"], "analyzer-checker-help">,<br>   HelpText<"Display the list of analyzer checkers that are available">;<br><br>-def analyzer_config : Separate<"-analyzer-config">,<br>+def analyzer_config : Separate<["-"], "analyzer-config">,<br>   HelpText<"Choose analyzer options to enable">;<br><br> //===----------------------------------------------------------------------===//<br> // Migrator Options<br> //===----------------------------------------------------------------------===//<br>-def migrator_no_nsalloc_error : Flag<"-no-ns-alloc-error">,<br>+def migrator_no_nsalloc_error : Flag<["-"], "no-ns-alloc-error">,<br>   HelpText<"Do not error on use of NSAllocateCollectable/NSReallocateCollectable">;<br><br>-def migrator_no_finalize_removal : Flag<"-no-finalize-removal">,<br>+def migrator_no_finalize_removal : Flag<["-"], "no-finalize-removal">,<br>   HelpText<"Do not remove finalize method in gc mode">;<br><br> //===----------------------------------------------------------------------===//<br> // CodeGen Options<br> //===----------------------------------------------------------------------===//<br><br>-def disable_llvm_optzns : Flag<"-disable-llvm-optzns">,<br>+def disable_llvm_optzns : Flag<["-"], "disable-llvm-optzns">,<br>   HelpText<"Don't run LLVM optimization passes">;<br>-def disable_llvm_verifier : Flag<"-disable-llvm-verifier">,<br>+def disable_llvm_verifier : Flag<["-"], "disable-llvm-verifier">,<br>   HelpText<"Don't run the LLVM IR verifier pass">;<br>-def disable_red_zone : Flag<"-disable-red-zone">,<br>+def disable_red_zone : Flag<["-"], "disable-red-zone">,<br>   HelpText<"Do not emit code that uses the red zone.">;<br>-def fdebug_compilation_dir : Separate<"-fdebug-compilation-dir">,<br>+def fdebug_compilation_dir : Separate<["-"], "fdebug-compilation-dir">,<br>   HelpText<"The compilation directory to embed in the debug info.">;<br>-def dwarf_debug_flags : Separate<"-dwarf-debug-flags">,<br>+def dwarf_debug_flags : Separate<["-"], "dwarf-debug-flags">,<br>   HelpText<"The string to embed in the Dwarf debug flags record.">;<br>-def dwarf_column_info : Flag<"-dwarf-column-info">,<br>+def dwarf_column_info : Flag<["-"], "dwarf-column-info">,<br>   HelpText<"Turn on column location information.">;<br>-def fforbid_guard_variables : Flag<"-fforbid-guard-variables">,<br>+def fforbid_guard_variables : Flag<["-"], "fforbid-guard-variables">,<br>   HelpText<"Emit an error if a C++ static local initializer would need a guard variable">;<br>-def no_implicit_float : Flag<"-no-implicit-float">,<br>+def no_implicit_float : Flag<["-"], "no-implicit-float">,<br>   HelpText<"Don't generate implicit floating point instructions">;<br>-def fdump_vtable_layouts : Flag<"-fdump-vtable-layouts">,<br>+def fdump_vtable_layouts : Flag<["-"], "fdump-vtable-layouts">,<br>   HelpText<"Dump the layouts of all vtables that will be emitted in a translation unit">;<br>-def femit_coverage_notes : Flag<"-femit-coverage-notes">,<br>+def femit_coverage_notes : Flag<["-"], "femit-coverage-notes">,<br>   HelpText<"Emit a gcov coverage notes file when compiling.">;<br>-def femit_coverage_data: Flag<"-femit-coverage-data">,<br>+def femit_coverage_data: Flag<["-"], "femit-coverage-data">,<br>   HelpText<"Instrument the program to emit gcov coverage data when run.">;<br>-def coverage_file : Separate<"-coverage-file">,<br>+def coverage_file : Separate<["-"], "coverage-file">,<br>   HelpText<"Emit coverage data to this filename. The extension will be replaced.">;<br>-def coverage_file_EQ : Joined<"-coverage-file=">, Alias<coverage_file>;<br>-def fuse_register_sized_bitfield_access: Flag<"-fuse-register-sized-bitfield-access">,<br>+def coverage_file_EQ : Joined<["-"], "coverage-file=">, Alias<coverage_file>;<br>+def fuse_register_sized_bitfield_access: Flag<["-"], "fuse-register-sized-bitfield-access">,<br>   HelpText<"Use register sized accesses to bit-fields, when possible.">;<br>-def relaxed_aliasing : Flag<"-relaxed-aliasing">,<br>+def relaxed_aliasing : Flag<["-"], "relaxed-aliasing">,<br>   HelpText<"Turn off Type Based Alias Analysis">;<br>-def masm_verbose : Flag<"-masm-verbose">,<br>+def masm_verbose : Flag<["-"], "masm-verbose">,<br>   HelpText<"Generate verbose assembly output">;<br>-def mcode_model : Separate<"-mcode-model">,<br>+def mcode_model : Separate<["-"], "mcode-model">,<br>   HelpText<"The code model to use">;<br>-def mdebug_pass : Separate<"-mdebug-pass">,<br>+def mdebug_pass : Separate<["-"], "mdebug-pass">,<br>   HelpText<"Enable additional debug output">;<br>-def mdisable_fp_elim : Flag<"-mdisable-fp-elim">,<br>+def mdisable_fp_elim : Flag<["-"], "mdisable-fp-elim">,<br>   HelpText<"Disable frame pointer elimination optimization">;<br>-def mdisable_tail_calls : Flag<"-mdisable-tail-calls">,<br>+def mdisable_tail_calls : Flag<["-"], "mdisable-tail-calls">,<br>   HelpText<"Disable tail call optimization, keeping the call stack accurate">;<br>-def menable_no_infinities : Flag<"-menable-no-infs">,<br>+def menable_no_infinities : Flag<["-"], "menable-no-infs">,<br>   HelpText<"Allow optimization to assume there are no infinities.">;<br>-def menable_no_nans : Flag<"-menable-no-nans">,<br>+def menable_no_nans : Flag<["-"], "menable-no-nans">,<br>   HelpText<"Allow optimization to assume there are no NaNs.">;<br>-def menable_unsafe_fp_math : Flag<"-menable-unsafe-fp-math">,<br>+def menable_unsafe_fp_math : Flag<["-"], "menable-unsafe-fp-math">,<br>   HelpText<"Allow unsafe floating-point math optimizations which may decrease "<br>            "precision">;<br>-def mfloat_abi : Separate<"-mfloat-abi">,<br>+def mfloat_abi : Separate<["-"], "mfloat-abi">,<br>   HelpText<"The float ABI to use">;<br>-def mlimit_float_precision : Separate<"-mlimit-float-precision">,<br>+def mlimit_float_precision : Separate<["-"], "mlimit-float-precision">,<br>   HelpText<"Limit float precision to the given value">;<br>-def mno_exec_stack : Flag<"-mnoexecstack">,<br>+def mno_exec_stack : Flag<["-"], "mnoexecstack">,<br>   HelpText<"Mark the file as not needing an executable stack">;<br>-def mno_zero_initialized_in_bss : Flag<"-mno-zero-initialized-in-bss">,<br>+def mno_zero_initialized_in_bss : Flag<["-"], "mno-zero-initialized-in-bss">,<br>   HelpText<"Do not put zero initialized data in the BSS">;<br>-def backend_option : Separate<"-backend-option">,<br>+def backend_option : Separate<["-"], "backend-option">,<br>   HelpText<"Additional arguments to forward to LLVM backend (during code gen)">;<br>-def mregparm : Separate<"-mregparm">,<br>+def mregparm : Separate<["-"], "mregparm">,<br>   HelpText<"Limit the number of registers available for integer arguments">;<br>-def msave_temp_labels : Flag<"-msave-temp-labels">,<br>+def msave_temp_labels : Flag<["-"], "msave-temp-labels">,<br>   HelpText<"(integrated-as) Save temporary labels">;<br>-def mrelocation_model : Separate<"-mrelocation-model">,<br>+def mrelocation_model : Separate<["-"], "mrelocation-model">,<br>   HelpText<"The relocation model to use">;<br>-def munwind_tables : Flag<"-munwind-tables">,<br>+def munwind_tables : Flag<["-"], "munwind-tables">,<br>   HelpText<"Generate unwinding tables for all functions">;<br>-def fuse_init_array : Flag<"-fuse-init-array">,<br>+def fuse_init_array : Flag<["-"], "fuse-init-array">,<br>   HelpText<"Use .init_array instead of .ctors">;<br>-def mconstructor_aliases : Flag<"-mconstructor-aliases">,<br>+def mconstructor_aliases : Flag<["-"], "mconstructor-aliases">,<br>   HelpText<"Emit complete constructors and destructors as aliases when possible">;<br>-def mlink_bitcode_file : Separate<"-mlink-bitcode-file">,<br>+def mlink_bitcode_file : Separate<["-"], "mlink-bitcode-file">,<br>   HelpText<"Link the given bitcode file before performing optimizations.">;<br><br> //===----------------------------------------------------------------------===//<br> // Dependency Output Options<br> //===----------------------------------------------------------------------===//<br><br>-def sys_header_deps : Flag<"-sys-header-deps">,<br>+def sys_header_deps : Flag<["-"], "sys-header-deps">,<br>   HelpText<"Include system headers in dependency output">;<br>-def header_include_file : Separate<"-header-include-file">,<br>+def header_include_file : Separate<["-"], "header-include-file">,<br>   HelpText<"Filename (or -) to write header include output to">;<br><br> //===----------------------------------------------------------------------===//<br> // Diagnostic Options<br> //===----------------------------------------------------------------------===//<br><br>-def dump_build_information : Separate<"-dump-build-information">,<br>+def dump_build_information : Separate<["-"], "dump-build-information">,<br>   MetaVarName<"<filename>">,<br>   HelpText<"output a dump of some build information to a file">;<br>-def diagnostic_log_file : Separate<"-diagnostic-log-file">,<br>+def diagnostic_log_file : Separate<["-"], "diagnostic-log-file">,<br>   HelpText<"Filename (or -) to log diagnostics to">;<br>-def diagnostic_serialized_file : Separate<"-serialize-diagnostic-file">,<br>+def diagnostic_serialized_file : Separate<["-"], "serialize-diagnostic-file">,<br>   MetaVarName<"<filename>">,<br>   HelpText<"File for serializing diagnostics in a binary format">;<br><br>-def fdiagnostics_format : Separate<"-fdiagnostics-format">,<br>+def fdiagnostics_format : Separate<["-"], "fdiagnostics-format">,<br>   HelpText<"Change diagnostic formatting to match IDE and command line tools">;<br>-def fdiagnostics_show_category : Separate<"-fdiagnostics-show-category">,<br>+def fdiagnostics_show_category : Separate<["-"], "fdiagnostics-show-category">,<br>   HelpText<"Print diagnostic category">;<br>-def ftabstop : Separate<"-ftabstop">, MetaVarName<"<N>">,<br>+def ftabstop : Separate<["-"], "ftabstop">, MetaVarName<"<N>">,<br>   HelpText<"Set the tab stop distance.">;<br>-def ferror_limit : Separate<"-ferror-limit">, MetaVarName<"<N>">,<br>+def ferror_limit : Separate<["-"], "ferror-limit">, MetaVarName<"<N>">,<br>   HelpText<"Set the maximum number of errors to emit before stopping (0 = no limit).">;<br>-def fmacro_backtrace_limit : Separate<"-fmacro-backtrace-limit">, MetaVarName<"<N>">,<br>+def fmacro_backtrace_limit : Separate<["-"], "fmacro-backtrace-limit">, MetaVarName<"<N>">,<br>   HelpText<"Set the maximum number of entries to print in a macro expansion backtrace (0 = no limit).">;<br>-def ftemplate_backtrace_limit : Separate<"-ftemplate-backtrace-limit">, MetaVarName<"<N>">,<br>+def ftemplate_backtrace_limit : Separate<["-"], "ftemplate-backtrace-limit">, MetaVarName<"<N>">,<br>   HelpText<"Set the maximum number of entries to print in a template instantiation backtrace (0 = no limit).">;<br>-def fconstexpr_backtrace_limit : Separate<"-fconstexpr-backtrace-limit">, MetaVarName<"<N>">,<br>+def fconstexpr_backtrace_limit : Separate<["-"], "fconstexpr-backtrace-limit">, MetaVarName<"<N>">,<br>   HelpText<"Set the maximum number of entries to print in a constexpr evaluation backtrace (0 = no limit).">;<br>-def fmessage_length : Separate<"-fmessage-length">, MetaVarName<"<N>">,<br>+def fmessage_length : Separate<["-"], "fmessage-length">, MetaVarName<"<N>">,<br>   HelpText<"Format message diagnostics so that they fit within N columns or fewer, when possible.">;<br>-def Wno_rewrite_macros : Flag<"-Wno-rewrite-macros">,<br>+def Wno_rewrite_macros : Flag<["-"], "Wno-rewrite-macros">,<br>   HelpText<"Silence ObjC rewriting warnings">;<br><br> //===----------------------------------------------------------------------===//<br>@@ -251,43 +253,43 @@<br><br> // This isn't normally used, it is just here so we can parse a<br> // CompilerInvocation out of a driver-derived argument vector.<br>-def cc1 : Flag<"-cc1">;<br>+def cc1 : Flag<["-"], "cc1">;<br><br>-def ast_merge : Separate<"-ast-merge">,<br>+def ast_merge : Separate<["-"], "ast-merge">,<br>   MetaVarName<"<ast file>">,<br>   HelpText<"Merge the given AST file into the translation unit being compiled.">;<br>-def code_completion_at : Separate<"-code-completion-at">,<br>+def code_completion_at : Separate<["-"], "code-completion-at">,<br>   MetaVarName<"<file>:<line>:<column>">,<br>   HelpText<"Dump code-completion information at a location">;<br>-def remap_file : Separate<"-remap-file">,<br>+def remap_file : Separate<["-"], "remap-file">,<br>   MetaVarName<"<from>;<to>">,<br>   HelpText<"Replace the contents of the <from> file with the contents of the <to> file">;<br>-def code_completion_at_EQ : Joined<"-code-completion-at=">,<br>+def code_completion_at_EQ : Joined<["-"], "code-completion-at=">,<br>   Alias<code_completion_at>;<br>-def code_completion_macros : Flag<"-code-completion-macros">,<br>+def code_completion_macros : Flag<["-"], "code-completion-macros">,<br>   HelpText<"Include macros in code-completion results">;<br>-def code_completion_patterns : Flag<"-code-completion-patterns">,<br>+def code_completion_patterns : Flag<["-"], "code-completion-patterns">,<br>   HelpText<"Include code patterns in code-completion results">;<br>-def no_code_completion_globals : Flag<"-no-code-completion-globals">,<br>+def no_code_completion_globals : Flag<["-"], "no-code-completion-globals">,<br>   HelpText<"Do not include global declarations in code-completion results.">;<br>-def code_completion_brief_comments : Flag<"-code-completion-brief-comments">,<br>+def code_completion_brief_comments : Flag<["-"], "code-completion-brief-comments">,<br>   HelpText<"Include brief documentation comments in code-completion results.">;<br>-def disable_free : Flag<"-disable-free">,<br>+def disable_free : Flag<["-"], "disable-free">,<br>   HelpText<"Disable freeing of memory on exit">;<br>-def load : Separate<"-load">, MetaVarName<"<dsopath>">,<br>+def load : Separate<["-"], "load">, MetaVarName<"<dsopath>">,<br>   HelpText<"Load the named plugin (dynamic shared object)">;<br>-def plugin : Separate<"-plugin">, MetaVarName<"<name>">,<br>+def plugin : Separate<["-"], "plugin">, MetaVarName<"<name>">,<br>   HelpText<"Use the named plugin action instead of the default action (use \"help\" to list available options)">;<br>-def plugin_arg : JoinedAndSeparate<"-plugin-arg-">,<br>+def plugin_arg : JoinedAndSeparate<["-"], "plugin-arg-">,<br>     MetaVarName<"<name> <arg>">,<br>     HelpText<"Pass <arg> to plugin <name>">;<br>-def add_plugin : Separate<"-add-plugin">, MetaVarName<"<name>">,<br>+def add_plugin : Separate<["-"], "add-plugin">, MetaVarName<"<name>">,<br>   HelpText<"Use the named plugin action in addition to the default action">;<br>-def resource_dir : Separate<"-resource-dir">,<br>+def resource_dir : Separate<["-"], "resource-dir">,<br>   HelpText<"The directory which holds the compiler resource files">;<br>-def version : Flag<"-version">,<br>+def version : Flag<["-"], "version">,<br>   HelpText<"Print the compiler version">;<br>-def ast_dump_filter : Separate<"-ast-dump-filter">,<br>+def ast_dump_filter : Separate<["-"], "ast-dump-filter">,<br>   MetaVarName<"<dump_filter>">,<br>   HelpText<"Use with -ast-dump or -ast-print to dump/print only AST declaration"<br>            " nodes having a certain substring in a qualified name. Use"<br>@@ -295,195 +297,195 @@<br><br> let Group = Action_Group in {<br><br>-def Eonly : Flag<"-Eonly">,<br>+def Eonly : Flag<["-"], "Eonly">,<br>   HelpText<"Just run preprocessor, no output (for timings)">;<br>-def dump_raw_tokens : Flag<"-dump-raw-tokens">,<br>+def dump_raw_tokens : Flag<["-"], "dump-raw-tokens">,<br>   HelpText<"Lex file in raw mode and dump raw tokens">;<br>-def analyze : Flag<"-analyze">,<br>+def analyze : Flag<["-"], "analyze">,<br>   HelpText<"Run static analysis engine">;<br>-def dump_tokens : Flag<"-dump-tokens">,<br>+def dump_tokens : Flag<["-"], "dump-tokens">,<br>   HelpText<"Run preprocessor, dump internal rep of tokens">;<br>-def init_only : Flag<"-init-only">,<br>+def init_only : Flag<["-"], "init-only">,<br>   HelpText<"Only execute frontend initialization">;<br>-def fixit : Flag<"-fixit">,<br>+def fixit : Flag<["-"], "fixit">,<br>   HelpText<"Apply fix-it advice to the input source">;<br>-def fixit_EQ : Joined<"-fixit=">,<br>+def fixit_EQ : Joined<["-"], "fixit=">,<br>   HelpText<"Apply fix-it advice creating a file with the given suffix">;<br>-def print_preamble : Flag<"-print-preamble">,<br>+def print_preamble : Flag<["-"], "print-preamble">,<br>   HelpText<"Print the \"preamble\" of a file, which is a candidate for implicit"<br>            " precompiled headers.">;<br>-def emit_html : Flag<"-emit-html">,<br>+def emit_html : Flag<["-"], "emit-html">,<br>   HelpText<"Output input source as HTML">;<br>-def ast_print : Flag<"-ast-print">,<br>+def ast_print : Flag<["-"], "ast-print">,<br>   HelpText<"Build ASTs and then pretty-print them">;<br>-def ast_list : Flag<"-ast-list">,<br>+def ast_list : Flag<["-"], "ast-list">,<br>   HelpText<"Build ASTs and print the list of declaration node qualified names">;<br>-def ast_dump : Flag<"-ast-dump">,<br>+def ast_dump : Flag<["-"], "ast-dump">,<br>   HelpText<"Build ASTs and then debug dump them">;<br>-def ast_dump_xml : Flag<"-ast-dump-xml">,<br>+def ast_dump_xml : Flag<["-"], "ast-dump-xml">,<br>   HelpText<"Build ASTs and then debug dump them in a verbose XML format">;<br>-def ast_view : Flag<"-ast-view">,<br>+def ast_view : Flag<["-"], "ast-view">,<br>   HelpText<"Build ASTs and view them with GraphViz">;<br>-def print_decl_contexts : Flag<"-print-decl-contexts">,<br>+def print_decl_contexts : Flag<["-"], "print-decl-contexts">,<br>   HelpText<"Print DeclContexts and their Decls">;<br>-def emit_module : Flag<"-emit-module">,<br>+def emit_module : Flag<["-"], "emit-module">,<br>   HelpText<"Generate pre-compiled module file from a module map">;<br>-def emit_pth : Flag<"-emit-pth">,<br>+def emit_pth : Flag<["-"], "emit-pth">,<br>   HelpText<"Generate pre-tokenized header file">;<br>-def emit_pch : Flag<"-emit-pch">,<br>+def emit_pch : Flag<["-"], "emit-pch">,<br>   HelpText<"Generate pre-compiled header file">;<br>-def emit_llvm_bc : Flag<"-emit-llvm-bc">,<br>+def emit_llvm_bc : Flag<["-"], "emit-llvm-bc">,<br>   HelpText<"Build ASTs then convert to LLVM, emit .bc file">;<br>-def emit_llvm_only : Flag<"-emit-llvm-only">,<br>+def emit_llvm_only : Flag<["-"], "emit-llvm-only">,<br>   HelpText<"Build ASTs and convert to LLVM, discarding output">;<br>-def emit_codegen_only : Flag<"-emit-codegen-only">,<br>+def emit_codegen_only : Flag<["-"], "emit-codegen-only">,<br>   HelpText<"Generate machine code, but discard output">;<br>-def emit_obj : Flag<"-emit-obj">,<br>+def emit_obj : Flag<["-"], "emit-obj">,<br>   HelpText<"Emit native object files">;<br>-def rewrite_test : Flag<"-rewrite-test">,<br>+def rewrite_test : Flag<["-"], "rewrite-test">,<br>   HelpText<"Rewriter playground">;<br>-def rewrite_macros : Flag<"-rewrite-macros">,<br>+def rewrite_macros : Flag<["-"], "rewrite-macros">,<br>   HelpText<"Expand macros without full preprocessing">;<br>-def migrate : Flag<"-migrate">,<br>+def migrate : Flag<["-"], "migrate">,<br>   HelpText<"Migrate source code">;<br> }<br><br>-def mt_migrate_directory : Separate<"-mt-migrate-directory">,<br>+def mt_migrate_directory : Separate<["-"], "mt-migrate-directory">,<br>   HelpText<"Directory for temporary files produced during ARC or ObjC migration">;<br>-def arcmt_check : Flag<"-arcmt-check">,<br>+def arcmt_check : Flag<["-"], "arcmt-check">,<br>   HelpText<"Check for ARC migration issues that need manual handling">;<br>-def arcmt_modify : Flag<"-arcmt-modify">,<br>+def arcmt_modify : Flag<["-"], "arcmt-modify">,<br>   HelpText<"Apply modifications to files to conform to ARC">;<br>-def arcmt_migrate : Flag<"-arcmt-migrate">,<br>+def arcmt_migrate : Flag<["-"], "arcmt-migrate">,<br>   HelpText<"Apply modifications and produces temporary files that conform to ARC">;<br><br>-def relocatable_pch : Flag<"-relocatable-pch">,<br>+def relocatable_pch : Flag<["-", "--"], "relocatable-pch">,<br>   HelpText<"Whether to build a relocatable precompiled header">;<br>-def print_stats : Flag<"-print-stats">,<br>+def print_stats : Flag<["-"], "print-stats">,<br>   HelpText<"Print performance metrics and statistics">;<br>-def fdump_record_layouts : Flag<"-fdump-record-layouts">,<br>+def fdump_record_layouts : Flag<["-"], "fdump-record-layouts">,<br>   HelpText<"Dump record layout information">;<br>-def fdump_record_layouts_simple : Flag<"-fdump-record-layouts-simple">,<br>+def fdump_record_layouts_simple : Flag<["-"], "fdump-record-layouts-simple">,<br>   HelpText<"Dump record layout information in a simple form used for testing">;<br>-def fix_what_you_can : Flag<"-fix-what-you-can">,<br>+def fix_what_you_can : Flag<["-"], "fix-what-you-can">,<br>   HelpText<"Apply fix-it advice even in the presence of unfixable errors">;<br>-def fix_only_warnings : Flag<"-fix-only-warnings">,<br>+def fix_only_warnings : Flag<["-"], "fix-only-warnings">,<br>   HelpText<"Apply fix-it advice only for warnings, not errors">;<br>-def fixit_recompile : Flag<"-fixit-recompile">,<br>+def fixit_recompile : Flag<["-"], "fixit-recompile">,<br>   HelpText<"Apply fix-it changes and recompile">;<br>-def fixit_to_temp : Flag<"-fixit-to-temporary">,<br>+def fixit_to_temp : Flag<["-"], "fixit-to-temporary">,<br>   HelpText<"Apply fix-it changes to temporary files">;<br><br>-def foverride_record_layout_EQ : Joined<"-foverride-record-layout=">,<br>+def foverride_record_layout_EQ : Joined<["-"], "foverride-record-layout=">,<br>   HelpText<"Override record layouts with those in the given file">;<br><br> //===----------------------------------------------------------------------===//<br> // Language Options<br> //===----------------------------------------------------------------------===//<br><br>-def fblocks_runtime_optional : Flag<"-fblocks-runtime-optional">,<br>+def fblocks_runtime_optional : Flag<["-"], "fblocks-runtime-optional">,<br>   HelpText<"Weakly link in the blocks runtime">;<br>-def fsjlj_exceptions : Flag<"-fsjlj-exceptions">,<br>+def fsjlj_exceptions : Flag<["-"], "fsjlj-exceptions">,<br>   HelpText<"Use SjLj style exceptions">;<br>-def fhidden_weak_vtables : Flag<"-fhidden-weak-vtables">,<br>+def fhidden_weak_vtables : Flag<["-"], "fhidden-weak-vtables">,<br>   HelpText<"Generate weak vtables and RTTI with hidden visibility">;<br>-def main_file_name : Separate<"-main-file-name">,<br>+def main_file_name : Separate<["-"], "main-file-name">,<br>   HelpText<"Main file name to use for debug info">;<br>-def fno_signed_char : Flag<"-fno-signed-char">,<br>+def fno_signed_char : Flag<["-"], "fno-signed-char">,<br>   HelpText<"Char is unsigned">;<br>-def fno_wchar : Flag<"-fno-wchar">,<br>+def fno_wchar : Flag<["-"], "fno-wchar">,<br>   HelpText<"Disable C++ builtin type wchar_t">;<br>-def fconstant_string_class : Separate<"-fconstant-string-class">,<br>+def fconstant_string_class : Separate<["-"], "fconstant-string-class">,<br>   MetaVarName<"<class name>">,<br>   HelpText<"Specify the class to use for constant Objective-C string objects.">;<br>-def fobjc_arc_cxxlib_EQ : Joined<"-fobjc-arc-cxxlib=">,<br>+def fobjc_arc_cxxlib_EQ : Joined<["-"], "fobjc-arc-cxxlib=">,<br>   HelpText<"Objective-C++ Automatic Reference Counting standard library kind">;<br>-def fobjc_runtime_has_weak : Flag<"-fobjc-runtime-has-weak">,<br>+def fobjc_runtime_has_weak : Flag<["-"], "fobjc-runtime-has-weak">,<br>   HelpText<"The target Objective-C runtime supports ARC weak operations">;<br>-def fobjc_dispatch_method_EQ : Joined<"-fobjc-dispatch-method=">,<br>+def fobjc_dispatch_method_EQ : Joined<["-"], "fobjc-dispatch-method=">,<br>   HelpText<"Objective-C dispatch method to use">;<br>-def fobjc_default_synthesize_properties : Flag<"-fobjc-default-synthesize-properties">,<br>+def fobjc_default_synthesize_properties : Flag<["-"], "fobjc-default-synthesize-properties">,<br>   HelpText<"enable the default synthesis of Objective-C properties">;<br>-def pic_level : Separate<"-pic-level">,<br>+def pic_level : Separate<["-"], "pic-level">,<br>   HelpText<"Value for __PIC__">;<br>-def pie_level : Separate<"-pie-level">,<br>+def pie_level : Separate<["-"], "pie-level">,<br>   HelpText<"Value for __PIE__">;<br>-def fno_validate_pch : Flag<"-fno-validate-pch">,<br>+def fno_validate_pch : Flag<["-"], "fno-validate-pch">,<br>   HelpText<"Disable validation of precompiled headers">;<br>-def dump_deserialized_pch_decls : Flag<"-dump-deserialized-decls">,<br>+def dump_deserialized_pch_decls : Flag<["-"], "dump-deserialized-decls">,<br>   HelpText<"Dump declarations that are deserialized from PCH, for testing">;<br>-def error_on_deserialized_pch_decl : Separate<"-error-on-deserialized-decl">,<br>+def error_on_deserialized_pch_decl : Separate<["-"], "error-on-deserialized-decl">,<br>   HelpText<"Emit error if a specific declaration is deserialized from PCH, for testing">;<br>-def error_on_deserialized_pch_decl_EQ : Joined<"-error-on-deserialized-decl=">,<br>+def error_on_deserialized_pch_decl_EQ : Joined<["-"], "error-on-deserialized-decl=">,<br>   Alias<error_on_deserialized_pch_decl>;<br>-def static_define : Flag<"-static-define">,<br>+def static_define : Flag<["-"], "static-define">,<br>   HelpText<"Should __STATIC__ be defined">;<br>-def stack_protector : Separate<"-stack-protector">,<br>+def stack_protector : Separate<["-"], "stack-protector">,<br>   HelpText<"Enable stack protectors">;<br>-def stack_protector_buffer_size : Separate<"-stack-protector-buffer-size">,<br>+def stack_protector_buffer_size : Separate<["-"], "stack-protector-buffer-size">,<br>   HelpText<"Lower bound for a buffer to be considered for stack protection">;<br>-def fvisibility : Separate<"-fvisibility">,<br>+def fvisibility : Separate<["-"], "fvisibility">,<br>   HelpText<"Default symbol visibility">;<br>-def ftemplate_depth : Separate<"-ftemplate-depth">,<br>+def ftemplate_depth : Separate<["-"], "ftemplate-depth">,<br>   HelpText<"Maximum depth of recursive template instantiation">;<br>-def fconstexpr_depth : Separate<"-fconstexpr-depth">,<br>+def fconstexpr_depth : Separate<["-"], "fconstexpr-depth">,<br>   HelpText<"Maximum depth of recursive constexpr function calls">;<br>-def fconst_strings : Flag<"-fconst-strings">,<br>+def fconst_strings : Flag<["-"], "fconst-strings">,<br>   HelpText<"Use a const qualified type for string literals in C and ObjC">;<br>-def fno_const_strings : Flag<"-fno-const-strings">,<br>+def fno_const_strings : Flag<["-"], "fno-const-strings">,<br>   HelpText<"Don't use a const qualified type for string literals in C and ObjC">;<br>-def fno_bitfield_type_align : Flag<"-fno-bitfield-type-align">,<br>+def fno_bitfield_type_align : Flag<["-"], "fno-bitfield-type-align">,<br>   HelpText<"Ignore bit-field types when aligning structures">;<br>-def ffake_address_space_map : Flag<"-ffake-address-space-map">,<br>+def ffake_address_space_map : Flag<["-"], "ffake-address-space-map">,<br>   HelpText<"Use a fake address space map; OpenCL testing purposes only">;<br>-def funknown_anytype : Flag<"-funknown-anytype">,<br>+def funknown_anytype : Flag<["-"], "funknown-anytype">,<br>   HelpText<"Enable parser support for the __unknown_anytype type; for testing purposes only">;<br>-def fdebugger_support : Flag<"-fdebugger-support">,<br>+def fdebugger_support : Flag<["-"], "fdebugger-support">,<br>   HelpText<"Enable special debugger support behavior">;<br>-def fdebugger_cast_result_to_id : Flag<"-fdebugger-cast-result-to-id">,<br>+def fdebugger_cast_result_to_id : Flag<["-"], "fdebugger-cast-result-to-id">,<br>   HelpText<"Enable casting unknown expression results to id">;<br>-def fdebugger_objc_literal : Flag<"-fdebugger-objc-literal">,<br>+def fdebugger_objc_literal : Flag<["-"], "fdebugger-objc-literal">,<br>   HelpText<"Enable special debugger support for Objective-C subscripting and literals">;<br>-def fdeprecated_macro : Flag<"-fdeprecated-macro">,<br>+def fdeprecated_macro : Flag<["-"], "fdeprecated-macro">,<br>   HelpText<"Defines the __DEPRECATED macro">;<br>-def fno_deprecated_macro : Flag<"-fno-deprecated-macro">,<br>+def fno_deprecated_macro : Flag<["-"], "fno-deprecated-macro">,<br>   HelpText<"Undefines the __DEPRECATED macro">;<br><br> //===----------------------------------------------------------------------===//<br> // Header Search Options<br> //===----------------------------------------------------------------------===//<br><br>-def nostdsysteminc : Flag<"-nostdsysteminc">,<br>+def nostdsysteminc : Flag<["-"], "nostdsysteminc">,<br>   HelpText<"Disable standard system #include directories">;<br>-def fmodule_name : Joined<"-fmodule-name=">, <br>+def fmodule_name : Joined<["-"], "fmodule-name=">, <br>   MetaVarName<"<name>">,<br>   HelpText<"Specify the name of the module to build">;           <br>-def fdisable_module_hash : Flag<"-fdisable-module-hash">,<br>+def fdisable_module_hash : Flag<["-"], "fdisable-module-hash">,<br>   HelpText<"Disable the module hash">;<br>-def c_isystem : JoinedOrSeparate<"-c-isystem">, MetaVarName<"<directory>">,<br>+def c_isystem : JoinedOrSeparate<["-"], "c-isystem">, MetaVarName<"<directory>">,<br>   HelpText<"Add directory to the C SYSTEM include search path">;<br>-def objc_isystem : JoinedOrSeparate<"-objc-isystem">,<br>+def objc_isystem : JoinedOrSeparate<["-"], "objc-isystem">,<br>   MetaVarName<"<directory>">,<br>   HelpText<"Add directory to the ObjC SYSTEM include search path">;<br>-def objcxx_isystem : JoinedOrSeparate<"-objcxx-isystem">,<br>+def objcxx_isystem : JoinedOrSeparate<["-"], "objcxx-isystem">,<br>   MetaVarName<"<directory>">,<br>   HelpText<"Add directory to the ObjC++ SYSTEM include search path">;<br>-def internal_isystem : JoinedOrSeparate<"-internal-isystem">,<br>+def internal_isystem : JoinedOrSeparate<["-"], "internal-isystem">,<br>   MetaVarName<"<directory>">,<br>   HelpText<"Add directory to the internal system include search path; these "<br>            "are assumed to not be user-provided and are used to model system "<br>            "and standard headers' paths.">;<br>-def internal_externc_isystem : JoinedOrSeparate<"-internal-externc-isystem">,<br>+def internal_externc_isystem : JoinedOrSeparate<["-"], "internal-externc-isystem">,<br>   MetaVarName<"<directory>">,<br>   HelpText<"Add directory to the internal system include search path with "<br>            "implicit extern \"C\" semantics; these are assumed to not be "<br>            "user-provided and are used to model system and standard headers' "<br>            "paths.">;<br>-def isystem_prefix : JoinedOrSeparate<"-isystem-prefix">,<br>+def isystem_prefix : JoinedOrSeparate<["-"], "isystem-prefix">,<br>   MetaVarName<"<prefix>">,<br>   HelpText<"Treat all #include paths starting with <prefix> as including a "<br>            "system header.">;<br>-def ino_system_prefix : JoinedOrSeparate<"-ino-system-prefix">,<br>+def ino_system_prefix : JoinedOrSeparate<["-"], "ino-system-prefix">,<br>   MetaVarName<"<prefix>">,<br>   HelpText<"Treat all #include paths starting with <prefix> as not including a "<br>            "system header.">;<br>@@ -492,42 +494,42 @@<br> // Preprocessor Options<br> //===----------------------------------------------------------------------===//<br><br>-def include_pth : Separate<"-include-pth">, MetaVarName<"<file>">,<br>+def include_pth : Separate<["-"], "include-pth">, MetaVarName<"<file>">,<br>   HelpText<"Include file before parsing">;<br>-def chain_include : Separate<"-chain-include">, MetaVarName<"<file>">,<br>+def chain_include : Separate<["-"], "chain-include">, MetaVarName<"<file>">,<br>   HelpText<"Include and chain a header file after turning it into PCH">;<br>-def preamble_bytes_EQ : Joined<"-preamble-bytes=">,<br>+def preamble_bytes_EQ : Joined<["-"], "preamble-bytes=">,<br>   HelpText<"Assume that the precompiled header is a precompiled preamble "<br>            "covering the first N bytes of the main file">;<br>-def token_cache : Separate<"-token-cache">, MetaVarName<"<path>">,<br>+def token_cache : Separate<["-"], "token-cache">, MetaVarName<"<path>">,<br>   HelpText<"Use specified token cache file">;<br>-def detailed_preprocessing_record : Flag<"-detailed-preprocessing-record">,<br>+def detailed_preprocessing_record : Flag<["-"], "detailed-preprocessing-record">,<br>   HelpText<"include a detailed record of preprocessing actions">;<br><br> //===----------------------------------------------------------------------===//<br> // OpenCL Options<br> //===----------------------------------------------------------------------===//<br><br>-def cl_opt_disable : Flag<"-cl-opt-disable">,<br>+def cl_opt_disable : Flag<["-"], "cl-opt-disable">,<br>   HelpText<"OpenCL only. This option disables all optimizations. The default is optimizations are enabled.">;<br>-def cl_single_precision_constant : Flag<"-cl-single-precision-constant">,<br>+def cl_single_precision_constant : Flag<["-"], "cl-single-precision-constant">,<br>   HelpText<"OpenCL only. Treat double precision floating-point constant as single precision constant.">;<br>-def cl_finite_math_only : Flag<"-cl-finite-math-only">,<br>+def cl_finite_math_only : Flag<["-"], "cl-finite-math-only">,<br>   HelpText<"OpenCL only. Allow floating-point optimizations that assume arguments and results are not NaNs or +-Inf.">;<br>-def cl_unsafe_math_optimizations : Flag<"-cl-unsafe-math-optimizations">,<br>+def cl_unsafe_math_optimizations : Flag<["-"], "cl-unsafe-math-optimizations">,<br>   HelpText<"OpenCL only. Allow unsafe floating-point optimizations.  Also implies -cl-no-signed-zeros and -cl-mad-enable">;<br>-def cl_fast_relaxed_math : Flag<"-cl-fast-relaxed-math">,<br>+def cl_fast_relaxed_math : Flag<["-"], "cl-fast-relaxed-math">,<br>   HelpText<"OpenCL only. Sets -cl-finite-math-only and -cl-unsafe-math-optimizations, and defines __FAST_RELAXED_MATH__">;<br>-def cl_mad_enable : Flag<"-cl-mad-enable">,<br>+def cl_mad_enable : Flag<["-"], "cl-mad-enable">,<br>   HelpText<"OpenCL only. Enable less precise MAD instructions to be generated.">;<br>-def cl_std_EQ : Joined<"-cl-std=">,<br>+def cl_std_EQ : Joined<["-"], "cl-std=">,<br>   HelpText<"OpenCL language standard to compile for">;<br><br> //===----------------------------------------------------------------------===//<br> // CUDA Options<br> //===----------------------------------------------------------------------===//<br><br>-def fcuda_is_device : Flag<"-fcuda-is-device">,<br>+def fcuda_is_device : Flag<["-"], "fcuda-is-device">,<br>   HelpText<"Generate code for CUDA device">;<br><br> } // let Flags = [CC1Option]<br><br>Modified: cfe/trunk/include/clang/Driver/OptParser.td<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/OptParser.td?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/OptParser.td?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/include/clang/Driver/OptParser.td (original)<br>+++ cfe/trunk/include/clang/Driver/OptParser.td Mon Oct 22 17:13:48 2012<br>@@ -99,8 +99,9 @@<br><br> // Define the option class.<br><br>-class Option<string name, OptionKind kind> {<br>+class Option<list<string> prefixes, string name, OptionKind kind> {<br>   string EnumName = ?; // Uses the def name if undefined.<br>+  list<string> Prefixes = prefixes;<br>   string Name = name;<br>   OptionKind Kind = kind;<br>   // Used by MultiArg option kind.<br>@@ -114,15 +115,22 @@<br><br> // Helpers for defining options.<br><br>-class Flag<string name> : Option<name, KIND_FLAG>;<br>-class Joined<string name> : Option<name, KIND_JOINED>;<br>-class Separate<string name> : Option<name, KIND_SEPARATE>;<br>-class CommaJoined<string name> : Option<name, KIND_COMMAJOINED>;<br>-class MultiArg<string name, int numargs> : Option<name, KIND_MULTIARG> {<br>+class Flag<list<string> prefixes, string name><br>+  : Option<prefixes, name, KIND_FLAG>;<br>+class Joined<list<string> prefixes, string name><br>+  : Option<prefixes, name, KIND_JOINED>;<br>+class Separate<list<string> prefixes, string name><br>+  : Option<prefixes, name, KIND_SEPARATE>;<br>+class CommaJoined<list<string> prefixes, string name><br>+  : Option<prefixes, name, KIND_COMMAJOINED>;<br>+class MultiArg<list<string> prefixes, string name, int numargs><br>+  : Option<prefixes, name, KIND_MULTIARG> {<br>   int NumArgs = numargs;<br> }<br>-class JoinedOrSeparate<string name> : Option<name, KIND_JOINED_OR_SEPARATE>;<br>-class JoinedAndSeparate<string name> : Option<name, KIND_JOINED_AND_SEPARATE>;<br>+class JoinedOrSeparate<list<string> prefixes, string name><br>+  : Option<prefixes, name, KIND_JOINED_OR_SEPARATE>;<br>+class JoinedAndSeparate<list<string> prefixes, string name><br>+  : Option<prefixes, name, KIND_JOINED_AND_SEPARATE>;<br><br> // Mix-ins for adding optional attributes.<br><br>@@ -137,5 +145,5 @@<br><br> // FIXME: Have generator validate that these appear in correct position (and<br> // aren't duplicated).<br>-def INPUT : Option<"<input>", KIND_INPUT>, Flags<[DriverOption,CC1Option]>;<br>-def UNKNOWN : Option<"<unknown>", KIND_UNKNOWN>;<br>+def INPUT : Option<[], "<input>", KIND_INPUT>, Flags<[DriverOption,CC1Option]>;<br>+def UNKNOWN : Option<[], "<unknown>", KIND_UNKNOWN>;<br><br>Modified: cfe/trunk/include/clang/Driver/OptTable.h<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/OptTable.h?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/OptTable.h?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/include/clang/Driver/OptTable.h (original)<br>+++ cfe/trunk/include/clang/Driver/OptTable.h Mon Oct 22 17:13:48 2012<br>@@ -12,6 +12,7 @@<br><br> #include "clang/Basic/LLVM.h"<br> #include "clang/Driver/OptSpecifier.h"<br>+#include "llvm/ADT/StringSet.h"<br><br> namespace clang {<br> namespace driver {<br>@@ -31,6 +32,9 @@<br>   public:<br>     /// \brief Entry for a single option instance in the option data table.<br>     struct Info {<br>+      /// A null terminated array of prefix strings to apply to name while<br>+      /// matching.<br>+      const char *const *Prefixes;<br>       const char *Name;<br>       const char *HelpText;<br>       const char *MetaVar;<br>@@ -54,6 +58,11 @@<br>     /// special option like 'input' or 'unknown', and is not an option group).<br>     unsigned FirstSearchableIndex;<br><br>+    /// The union of all option prefixes. If an argument does not begin with<br>+    /// one of these, it is an input.<br>+    llvm::StringSet<> PrefixesUnion;<br>+    std::string PrefixChars;<br>+<br>   private:<br>     const Info &getInfo(OptSpecifier Opt) const {<br>       unsigned id = Opt.getID();<br><br>Modified: cfe/trunk/include/clang/Driver/Option.h<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Option.h?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Option.h?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/include/clang/Driver/Option.h (original)<br>+++ cfe/trunk/include/clang/Driver/Option.h Mon Oct 22 17:13:48 2012<br>@@ -95,6 +95,7 @@<br>       return OptionClass(Info->Kind);<br>     }<br><br>+    /// \brief Get the name of this option without any prefix.<br>     StringRef getName() const {<br>       assert(Info && "Must have a valid info!");<br>       return Info->Name;<br>@@ -112,6 +113,19 @@<br>       return Owner->getOption(Info->AliasID);<br>     }<br><br>+    /// \brief Get the default prefix for this option.<br>+    StringRef getPrefix() const {<br>+      const char *Prefix = *Info->Prefixes;<br>+      return Prefix ? Prefix : StringRef();<br>+    }<br>+<br>+    /// \brief Get the name of this option with the default prefix.<br>+    std::string getPrefixedName() const {<br>+      std::string Ret = getPrefix();<br>+      Ret += getName();<br>+      return Ret;<br>+    }<br>+<br>     unsigned getNumArgs() const { return Info->Param; }<br><br>     bool hasNoOptAsInput() const { return Info->Flags & options::RenderAsInput;}<br>@@ -174,7 +188,11 @@<br>     /// If the option accepts the current argument, accept() sets<br>     /// Index to the position where argument parsing should resume<br>     /// (even if the argument is missing values).<br>-    Arg *accept(const ArgList &Args, unsigned &Index) const;<br>+    ///<br>+    /// \parm ArgSize The number of bytes taken up by the matched Option prefix<br>+    ///               and name. This is used to determine where joined values<br>+    ///               start.<br>+    Arg *accept(const ArgList &Args, unsigned &Index, unsigned ArgSize) const;<br><br>     void dump() const;<br>   };<br><br>Modified: cfe/trunk/include/clang/Driver/Options.h<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.h?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.h?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/include/clang/Driver/Options.h (original)<br>+++ cfe/trunk/include/clang/Driver/Options.h Mon Oct 22 17:13:48 2012<br>@@ -17,11 +17,13 @@<br> namespace options {<br>   enum ID {<br>     OPT_INVALID = 0, // This is not an option ID.<br>-#define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>+#define PREFIX(NAME, VALUE)<br>+#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>                HELPTEXT, METAVAR) OPT_##ID,<br> #include "clang/Driver/Options.inc"<br>     LastOption<br> #undef OPTION<br>+#undef PREFIX<br>   };<br> }<br><br><br>Modified: cfe/trunk/include/clang/Driver/Options.td<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/include/clang/Driver/Options.td (original)<br>+++ cfe/trunk/include/clang/Driver/Options.td Mon Oct 22 17:13:48 2012<br>@@ -84,1102 +84,1073 @@<br>   Group<ccc_Group>, HelpText<"DEBUG/DEVELOPMENT OPTIONS">;<br><br> class CCCDriverOpt : Group<ccc_driver_Group>, Flags<[DriverOption, HelpHidden]>;<br>-def ccc_cxx : Flag<"-ccc-cxx">, CCCDriverOpt,<br>+def ccc_cxx : Flag<["-"], "ccc-cxx">, CCCDriverOpt,<br>   HelpText<"Act as a C++ driver">;<br>-def ccc_echo : Flag<"-ccc-echo">, CCCDriverOpt,<br>+def ccc_echo : Flag<["-"], "ccc-echo">, CCCDriverOpt,<br>   HelpText<"Echo commands before running them">;<br>-def ccc_gcc_name : Separate<"-ccc-gcc-name">, CCCDriverOpt,<br>+def ccc_gcc_name : Separate<["-"], "ccc-gcc-name">, CCCDriverOpt,<br>   HelpText<"Name for native GCC compiler">,<br>   MetaVarName<"<gcc-path>">;<br>-def ccc_clang_cxx : Flag<"-ccc-clang-cxx">, CCCDriverOpt,<br>+def ccc_clang_cxx : Flag<["-"], "ccc-clang-cxx">, CCCDriverOpt,<br>   HelpText<"Enable the clang compiler for C++">;<br>-def ccc_no_clang_cxx : Flag<"-ccc-no-clang-cxx">, CCCDriverOpt,<br>+def ccc_no_clang_cxx : Flag<["-"], "ccc-no-clang-cxx">, CCCDriverOpt,<br>   HelpText<"Disable the clang compiler for C++">;<br>-def ccc_no_clang : Flag<"-ccc-no-clang">, CCCDriverOpt,<br>+def ccc_no_clang : Flag<["-"], "ccc-no-clang">, CCCDriverOpt,<br>   HelpText<"Disable the clang compiler">;<br>-def ccc_no_clang_cpp : Flag<"-ccc-no-clang-cpp">, CCCDriverOpt,<br>+def ccc_no_clang_cpp : Flag<["-"], "ccc-no-clang-cpp">, CCCDriverOpt,<br>   HelpText<"Disable the clang preprocessor">;<br>-def ccc_pch_is_pch : Flag<"-ccc-pch-is-pch">, CCCDriverOpt,<br>+def ccc_clang_archs : Separate<["-"], "ccc-clang-archs">, CCCDriverOpt,<br>+  HelpText<"Comma separate list of architectures to use the clang compiler for">,<br>+  MetaVarName<"<arch-list>">;<br>+def ccc_pch_is_pch : Flag<["-"], "ccc-pch-is-pch">, CCCDriverOpt,<br>   HelpText<"Use lazy PCH for precompiled headers">;<br>-def ccc_pch_is_pth : Flag<"-ccc-pch-is-pth">, CCCDriverOpt,<br>+def ccc_pch_is_pth : Flag<["-"], "ccc-pch-is-pth">, CCCDriverOpt,<br>   HelpText<"Use pretokenized headers for precompiled headers">;<br><br> class CCCDebugOpt : Group<ccc_debug_Group>, Flags<[DriverOption, HelpHidden]>;<br>-def ccc_install_dir : Separate<"-ccc-install-dir">, CCCDebugOpt,<br>+def ccc_install_dir : Separate<["-"], "ccc-install-dir">, CCCDebugOpt,<br>   HelpText<"Simulate installation in the given directory">;<br>-def ccc_print_options : Flag<"-ccc-print-options">, CCCDebugOpt,<br>+def ccc_print_options : Flag<["-"], "ccc-print-options">, CCCDebugOpt,<br>   HelpText<"Dump parsed command line arguments">;<br>-def ccc_print_phases : Flag<"-ccc-print-phases">, CCCDebugOpt,<br>+def ccc_print_phases : Flag<["-"], "ccc-print-phases">, CCCDebugOpt,<br>   HelpText<"Dump list of actions to perform">;<br>-def ccc_print_bindings : Flag<"-ccc-print-bindings">, CCCDebugOpt,<br>+def ccc_print_bindings : Flag<["-"], "ccc-print-bindings">, CCCDebugOpt,<br>   HelpText<"Show bindings of tools to actions">;<br><br>-def ccc_arcmt_check : Flag<"-ccc-arcmt-check">, CCCDriverOpt,<br>+def ccc_arcmt_check : Flag<["-"], "ccc-arcmt-check">, CCCDriverOpt,<br>   HelpText<"Check for ARC migration issues that need manual handling">;<br>-def ccc_arcmt_modify : Flag<"-ccc-arcmt-modify">, CCCDriverOpt,<br>+def ccc_arcmt_modify : Flag<["-"], "ccc-arcmt-modify">, CCCDriverOpt,<br>   HelpText<"Apply modifications to files to conform to ARC">;<br>-def ccc_arrmt_check : Flag<"-ccc-arrmt-check">, Alias<ccc_arcmt_check>;<br>-def ccc_arrmt_modify : Flag<"-ccc-arrmt-modify">, Alias<ccc_arcmt_modify>;<br>-def ccc_arcmt_migrate : Separate<"-ccc-arcmt-migrate">, CCCDriverOpt,<br>+def ccc_arrmt_check : Flag<["-"], "ccc-arrmt-check">, Alias<ccc_arcmt_check>;<br>+def ccc_arrmt_modify : Flag<["-"], "ccc-arrmt-modify">, Alias<ccc_arcmt_modify>;<br>+def ccc_arcmt_migrate : Separate<["-"], "ccc-arcmt-migrate">, CCCDriverOpt,<br>   HelpText<"Apply modifications and produces temporary files that conform to ARC">;<br>-def arcmt_migrate_report_output : Separate<"-arcmt-migrate-report-output">,<br>+def arcmt_migrate_report_output : Separate<["-"], "arcmt-migrate-report-output">,<br>   HelpText<"Output path for the plist report">,  Flags<[CC1Option]>;<br>-def arcmt_migrate_emit_arc_errors : Flag<"-arcmt-migrate-emit-errors">,<br>+def arcmt_migrate_emit_arc_errors : Flag<["-"], "arcmt-migrate-emit-errors">,<br>   HelpText<"Emit ARC errors even if the migrator can fix them">,<br>   Flags<[CC1Option]>;<br><br>-def _migrate : Flag<"--migrate">, Flags<[DriverOption]>,<br>+def _migrate : Flag<["--"], "migrate">, Flags<[DriverOption]>,<br>   HelpText<"Run the migrator">;<br>-def ccc_objcmt_migrate : Separate<"-ccc-objcmt-migrate">, CCCDriverOpt,<br>+def ccc_objcmt_migrate : Separate<["-"], "ccc-objcmt-migrate">, CCCDriverOpt,<br>   HelpText<"Apply modifications and produces temporary files to migrate to "<br>    "modern ObjC syntax">;<br>-def objcmt_migrate_literals : Flag<"-objcmt-migrate-literals">, Flags<[CC1Option]>,<br>+def objcmt_migrate_literals : Flag<["-"], "objcmt-migrate-literals">, Flags<[CC1Option]>,<br>   HelpText<"Enable migration to modern ObjC literals">;<br>-def objcmt_migrate_subscripting : Flag<"-objcmt-migrate-subscripting">, Flags<[CC1Option]>,<br>+def objcmt_migrate_subscripting : Flag<["-"], "objcmt-migrate-subscripting">, Flags<[CC1Option]>,<br>   HelpText<"Enable migration to modern ObjC subscripting">;<br><br> // Make sure all other -ccc- options are rejected.<br>-def ccc_ : Joined<"-ccc-">, Group<ccc_Group>, Flags<[Unsupported]>;<br>+def ccc_ : Joined<["-"], "ccc-">, Group<ccc_Group>, Flags<[Unsupported]>;<br><br> // Standard Options<br><br>-def _HASH_HASH_HASH : Flag<"-###">, Flags<[DriverOption]>,<br>+def _HASH_HASH_HASH : Flag<["-"], "###">, Flags<[DriverOption]>,<br>     HelpText<"Print the commands to run for this compilation">;<br> // The '--' option is here for the sake of compatibility with gcc, but is <br> // being ignored by the driver.<br>-def _DASH_DASH : Flag<"--">, Flags<[DriverOption]>;<br>-def A : JoinedOrSeparate<"-A">;<br>-def B : JoinedOrSeparate<"-B">;<br>-def CC : Flag<"-CC">, Flags<[CC1Option]>;<br>-def C : Flag<"-C">, Flags<[CC1Option]>;<br>-def D : JoinedOrSeparate<"-D">, Group<CompileOnly_Group>, Flags<[CC1Option]>;<br>-def E : Flag<"-E">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>,<br>+def _DASH_DASH : Flag<["--"], "">, Flags<[DriverOption]>;<br>+def A : JoinedOrSeparate<["-"], "A">;<br>+def B : JoinedOrSeparate<["-"], "B">;<br>+def CC : Flag<["-"], "CC">, Flags<[CC1Option]>;<br>+def C : Flag<["-"], "C">, Flags<[CC1Option]>;<br>+def D : JoinedOrSeparate<["-"], "D">, Group<CompileOnly_Group>, Flags<[CC1Option]>;<br>+def E : Flag<["-"], "E">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>,<br>   HelpText<"Only run the preprocessor">;<br>-def F : JoinedOrSeparate<"-F">, Flags<[RenderJoined,CC1Option]>,<br>+def F : JoinedOrSeparate<["-"], "F">, Flags<[RenderJoined,CC1Option]>,<br>     HelpText<"Add directory to framework include search path">;<br>-def G : Separate<"-G">, Flags<[DriverOption]>;<br>-def H : Flag<"-H">, Flags<[CC1Option]>,<br>+def G : Separate<["-"], "G">, Flags<[DriverOption]>;<br>+def H : Flag<["-"], "H">, Flags<[CC1Option]>,<br>     HelpText<"Show header includes and nesting depth">;<br>-def I_ : Flag<"-I-">, Group<I_Group>;<br>-def I : JoinedOrSeparate<"-I">, Group<I_Group>, Flags<[CC1Option]>,<br>+def I_ : Flag<["-"], "I-">, Group<I_Group>;<br>+def I : JoinedOrSeparate<["-"], "I">, Group<I_Group>, Flags<[CC1Option]>,<br>     HelpText<"Add directory to include search path">;<br>-def L : JoinedOrSeparate<"-L">, Flags<[RenderJoined]>;<br>-def MD : Flag<"-MD">, Group<M_Group>;<br>-def MF : JoinedOrSeparate<"-MF">, Group<M_Group>;<br>-def MG : Flag<"-MG">, Group<M_Group>, Flags<[CC1Option]>,<br>+def L : JoinedOrSeparate<["-"], "L">, Flags<[RenderJoined]>;<br>+def MD : Flag<["-"], "MD">, Group<M_Group>;<br>+def MF : JoinedOrSeparate<["-"], "MF">, Group<M_Group>;<br>+def MG : Flag<["-"], "MG">, Group<M_Group>, Flags<[CC1Option]>,<br>     HelpText<"Add missing headers to dependency list">;<br>-def MMD : Flag<"-MMD">, Group<M_Group>;<br>-def MM : Flag<"-MM">, Group<M_Group>;<br>-def MP : Flag<"-MP">, Group<M_Group>, Flags<[CC1Option]>,<br>+def MMD : Flag<["-"], "MMD">, Group<M_Group>;<br>+def MM : Flag<["-"], "MM">, Group<M_Group>;<br>+def MP : Flag<["-"], "MP">, Group<M_Group>, Flags<[CC1Option]>,<br>     HelpText<"Create phony target for each dependency (other than main file)">;<br>-def MQ : JoinedOrSeparate<"-MQ">, Group<M_Group>, Flags<[CC1Option]>,<br>+def MQ : JoinedOrSeparate<["-"], "MQ">, Group<M_Group>, Flags<[CC1Option]>,<br>     HelpText<"Specify target to quote for dependency">;<br>-def MT : JoinedOrSeparate<"-MT">, Group<M_Group>, Flags<[CC1Option]>,<br>+def MT : JoinedOrSeparate<["-"], "MT">, Group<M_Group>, Flags<[CC1Option]>,<br>     HelpText<"Specify target for dependency">;<br>-def Mach : Flag<"-Mach">;<br>-def M : Flag<"-M">, Group<M_Group>;<br>-def O0 : Joined<"-O0">, Group<O_Group>, Flags<[CC1Option]>;<br>-def O4 : Joined<"-O4">, Group<O_Group>, Flags<[CC1Option]>;<br>-def ObjCXX : Flag<"-ObjC++">, Flags<[DriverOption]>,<br>+def Mach : Flag<["-"], "Mach">;<br>+def M : Flag<["-"], "M">, Group<M_Group>;<br>+def O0 : Joined<["-"], "O0">, Group<O_Group>, Flags<[CC1Option]>;<br>+def O4 : Joined<["-"], "O4">, Group<O_Group>, Flags<[CC1Option]>;<br>+def ObjCXX : Flag<["-"], "ObjC++">, Flags<[DriverOption]>,<br>   HelpText<"Treat source input files as Objective-C++ inputs">;<br>-def ObjC : Flag<"-ObjC">, Flags<[DriverOption]>,<br>+def ObjC : Flag<["-"], "ObjC">, Flags<[DriverOption]>,<br>   HelpText<"Treat source input files as Objective-C inputs">;<br>-def O : Joined<"-O">, Group<O_Group>, Flags<[CC1Option]>;<br>-def P : Flag<"-P">, Flags<[CC1Option]>,<br>+def O : Joined<["-"], "O">, Group<O_Group>, Flags<[CC1Option]>;<br>+def P : Flag<["-"], "P">, Flags<[CC1Option]>,<br>   HelpText<"Disable linemarker output in -E mode">;<br>-def Qn : Flag<"-Qn">;<br>-def Qunused_arguments : Flag<"-Qunused-arguments">, Flags<[DriverOption]>,<br>+def Qn : Flag<["-"], "Qn">;<br>+def Qunused_arguments : Flag<["-"], "Qunused-arguments">, Flags<[DriverOption]>,<br>   HelpText<"Don't emit warning for unused driver arguments">;<br>-def Q : Flag<"-Q">;<br>-def R : Flag<"-R">;<br>-def S : Flag<"-S">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>,<br>+def Q : Flag<["-"], "Q">;<br>+def R : Flag<["-"], "R">;<br>+def S : Flag<["-"], "S">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>,<br>   HelpText<"Only run preprocess and compilation steps">;<br>-def Tbss : JoinedOrSeparate<"-Tbss">, Group<T_Group>;<br>-def Tdata : JoinedOrSeparate<"-Tdata">, Group<T_Group>;<br>-def Ttext : JoinedOrSeparate<"-Ttext">, Group<T_Group>;<br>-def T : JoinedOrSeparate<"-T">, Group<T_Group>;<br>-def U : JoinedOrSeparate<"-U">, Group<CompileOnly_Group>, Flags<[CC1Option]>;<br>-def V : JoinedOrSeparate<"-V">, Flags<[DriverOption, Unsupported]>;<br>-def Wa_COMMA : CommaJoined<"-Wa,">,<br>+def Tbss : JoinedOrSeparate<["-"], "Tbss">, Group<T_Group>;<br>+def Tdata : JoinedOrSeparate<["-"], "Tdata">, Group<T_Group>;<br>+def Ttext : JoinedOrSeparate<["-"], "Ttext">, Group<T_Group>;<br>+def T : JoinedOrSeparate<["-"], "T">, Group<T_Group>;<br>+def U : JoinedOrSeparate<["-"], "U">, Group<CompileOnly_Group>, Flags<[CC1Option]>;<br>+def V : JoinedOrSeparate<["-"], "V">, Flags<[DriverOption, Unsupported]>;<br>+def Wa_COMMA : CommaJoined<["-"], "Wa,">,<br>   HelpText<"Pass the comma separated arguments in <arg> to the assembler">,<br>   MetaVarName<"<arg>">;<br>-def Wall : Flag<"-Wall">, Group<W_Group>, Flags<[CC1Option]>;<br>-def Wdeprecated : Flag<"-Wdeprecated">, Group<W_Group>, Flags<[CC1Option]>;<br>-def Wno_deprecated : Flag<"-Wno-deprecated">, Group<W_Group>, Flags<[CC1Option]>;<br>-def Wextra : Flag<"-Wextra">, Group<W_Group>, Flags<[CC1Option]>;<br>-def Wl_COMMA : CommaJoined<"-Wl,">, Flags<[LinkerInput, RenderAsInput]>,<br>+def Wall : Flag<["-"], "Wall">, Group<W_Group>, Flags<[CC1Option]>;<br>+def Wdeprecated : Flag<["-"], "Wdeprecated">, Group<W_Group>, Flags<[CC1Option]>;<br>+def Wno_deprecated : Flag<["-"], "Wno-deprecated">, Group<W_Group>, Flags<[CC1Option]>;<br>+def Wextra : Flag<["-"], "Wextra">, Group<W_Group>, Flags<[CC1Option]>;<br>+def Wl_COMMA : CommaJoined<["-"], "Wl,">, Flags<[LinkerInput, RenderAsInput]>,<br>   HelpText<"Pass the comma separated arguments in <arg> to the linker">,<br>   MetaVarName<"<arg>">;<br>-def Wno_nonportable_cfstrings : Joined<"-Wno-nonportable-cfstrings">, Group<W_Group>,<br>+def Wno_nonportable_cfstrings : Joined<["-"], "Wno-nonportable-cfstrings">, Group<W_Group>,<br>   Flags<[CC1Option]>;<br>-def Wnonportable_cfstrings : Joined<"-Wnonportable-cfstrings">, Group<W_Group>,<br>+def Wnonportable_cfstrings : Joined<["-"], "Wnonportable-cfstrings">, Group<W_Group>,<br>   Flags<[CC1Option]>;<br>-def Wp_COMMA : CommaJoined<"-Wp,">,<br>+def Wp_COMMA : CommaJoined<["-"], "Wp,">,<br>   HelpText<"Pass the comma separated arguments in <arg> to the preprocessor">,<br>   MetaVarName<"<arg>">;<br>-def Wwrite_strings : Flag<"-Wwrite-strings">, Group<W_Group>, Flags<[CC1Option]>;<br>-def Wno_write_strings : Flag<"-Wno-write-strings">, Group<W_Group>, Flags<[CC1Option]>;<br>-def W_Joined : Joined<"-W">, Group<W_Group>, Flags<[CC1Option]>;<br>-def Xanalyzer : Separate<"-Xanalyzer">,<br>+def Wwrite_strings : Flag<["-"], "Wwrite-strings">, Group<W_Group>, Flags<[CC1Option]>;<br>+def Wno_write_strings : Flag<["-"], "Wno-write-strings">, Group<W_Group>, Flags<[CC1Option]>;<br>+def W_Joined : Joined<["-"], "W">, Group<W_Group>, Flags<[CC1Option]>;<br>+def Xanalyzer : Separate<["-"], "Xanalyzer">,<br>   HelpText<"Pass <arg> to the static analyzer">, MetaVarName<"<arg>">;<br>-def Xarch__ : JoinedAndSeparate<"-Xarch_">, Flags<[DriverOption]>;<br>-def Xassembler : Separate<"-Xassembler">,<br>+def Xarch__ : JoinedAndSeparate<["-"], "Xarch_">, Flags<[DriverOption]>;<br>+def Xassembler : Separate<["-"], "Xassembler">,<br>   HelpText<"Pass <arg> to the assembler">, MetaVarName<"<arg>">;<br>-def Xclang : Separate<"-Xclang">,<br>+def Xclang : Separate<["-"], "Xclang">,<br>   HelpText<"Pass <arg> to the clang compiler">, MetaVarName<"<arg>">,<br>   Flags<[NoForward]>;<br>-def Xlinker : Separate<"-Xlinker">, Flags<[LinkerInput, RenderAsInput]>,<br>+def Xlinker : Separate<["-"], "Xlinker">, Flags<[LinkerInput, RenderAsInput]>,<br>   HelpText<"Pass <arg> to the linker">, MetaVarName<"<arg>">;<br>-def Xpreprocessor : Separate<"-Xpreprocessor">,<br>+def Xpreprocessor : Separate<["-"], "Xpreprocessor">,<br>   HelpText<"Pass <arg> to the preprocessor">, MetaVarName<"<arg>">;<br>-def X_Flag : Flag<"-X">;<br>-def X_Joined : Joined<"-X">;<br>-def Z_Flag : Flag<"-Z">;<br>-def Z_Joined : Joined<"-Z">;<br>-def all__load : Flag<"-all_load">;<br>-def allowable__client : Separate<"-allowable_client">;<br>-def ansi : Flag<"-ansi">, Group<a_Group>;<br>-def arch__errors__fatal : Flag<"-arch_errors_fatal">;<br>-def arch : Separate<"-arch">, Flags<[DriverOption]>;<br>-def arch__only : Separate<"-arch_only">;<br>-def a : Joined<"-a">, Group<a_Group>;<br>-def bind__at__load : Flag<"-bind_at_load">;<br>-def bundle__loader : Separate<"-bundle_loader">;<br>-def bundle : Flag<"-bundle">;<br>-def b : JoinedOrSeparate<"-b">, Flags<[Unsupported]>;<br>-def cl_kernel_arg_info : Flag<"-cl-kernel-arg-info">, Flags<[CC1Option]>, Group<opencl_Group>,<br>+def X_Flag : Flag<["-"], "X">;<br>+def X_Joined : Joined<["-"], "X">;<br>+def Z_Flag : Flag<["-"], "Z">;<br>+def Z_Joined : Joined<["-"], "Z">;<br>+def all__load : Flag<["-"], "all_load">;<br>+def allowable__client : Separate<["-"], "allowable_client">;<br>+def ansi : Flag<["-", "--"], "ansi">, Group<a_Group>;<br>+def arch__errors__fatal : Flag<["-"], "arch_errors_fatal">;<br>+def arch : Separate<["-"], "arch">, Flags<[DriverOption]>;<br>+def arch__only : Separate<["-"], "arch_only">;<br>+def a : Joined<["-"], "a">, Group<a_Group>;<br>+def bind__at__load : Flag<["-"], "bind_at_load">;<br>+def bundle__loader : Separate<["-"], "bundle_loader">;<br>+def bundle : Flag<["-"], "bundle">;<br>+def b : JoinedOrSeparate<["-"], "b">, Flags<[Unsupported]>;<br>+def cl_kernel_arg_info : Flag<["-"], "cl-kernel-arg-info">, Flags<[CC1Option]>, Group<opencl_Group>,<br> HelpText<"OpenCL only. This option allows the compiler to store information about the arguments of a kernel(s)"> ;<br>-def client__name : JoinedOrSeparate<"-client_name">;<br>-def combine : Flag<"-combine">, Flags<[DriverOption, Unsupported]>;<br>-def compatibility__version : JoinedOrSeparate<"-compatibility_version">;<br>-def coverage : Flag<"-coverage">;<br>-def cpp_precomp : Flag<"-cpp-precomp">, Group<clang_ignored_f_Group>;<br>-def current__version : JoinedOrSeparate<"-current_version">;<br>-def cxx_isystem : JoinedOrSeparate<"-cxx-isystem">, Group<clang_i_Group>,<br>+def client__name : JoinedOrSeparate<["-"], "client_name">;<br>+def combine : Flag<["-", "--"], "combine">, Flags<[DriverOption, Unsupported]>;<br>+def compatibility__version : JoinedOrSeparate<["-"], "compatibility_version">;<br>+def coverage : Flag<["-", "--"], "coverage">;<br>+def cpp_precomp : Flag<["-"], "cpp-precomp">, Group<clang_ignored_f_Group>;<br>+def current__version : JoinedOrSeparate<["-"], "current_version">;<br>+def cxx_isystem : JoinedOrSeparate<["-"], "cxx-isystem">, Group<clang_i_Group>,<br>   HelpText<"Add directory to the C++ SYSTEM include search path">, Flags<[CC1Option]>,<br>   MetaVarName<"<directory>">;<br>-def c : Flag<"-c">, Flags<[DriverOption]>,<br>+def c : Flag<["-"], "c">, Flags<[DriverOption]>,<br>   HelpText<"Only run preprocess, compile, and assemble steps">;<br>-def dA : Flag<"-dA">, Group<d_Group>;<br>-def dD : Flag<"-dD">, Group<d_Group>, Flags<[CC1Option]>,<br>+def dA : Flag<["-"], "dA">, Group<d_Group>;<br>+def dD : Flag<["-"], "dD">, Group<d_Group>, Flags<[CC1Option]>,<br>   HelpText<"Print macro definitions in -E mode in addition to normal output">;<br>-def dM : Flag<"-dM">, Group<d_Group>, Flags<[CC1Option]>,<br>+def dM : Flag<["-"], "dM">, Group<d_Group>, Flags<[CC1Option]>,<br>   HelpText<"Print macro definitions in -E mode instead of normal output">;<br>-def dead__strip : Flag<"-dead_strip">;<br>-def dependency_file : Separate<"-dependency-file">, Flags<[CC1Option]>,<br>+def dead__strip : Flag<["-"], "dead_strip">;<br>+def dependency_file : Separate<["-"], "dependency-file">, Flags<[CC1Option]>,<br>   HelpText<"Filename (or -) to write dependency output to">;<br>-def dependency_dot : Separate<"-dependency-dot">, Flags<[CC1Option]>,<br>+def dependency_dot : Separate<["-"], "dependency-dot">, Flags<[CC1Option]>,<br>   HelpText<"Filename to write DOT-formatted header dependencies to">;<br>-def dumpmachine : Flag<"-dumpmachine">;<br>-def dumpspecs : Flag<"-dumpspecs">, Flags<[Unsupported]>;<br>-def dumpversion : Flag<"-dumpversion">;<br>-def dylib__file : Separate<"-dylib_file">;<br>-def dylinker__install__name : JoinedOrSeparate<"-dylinker_install_name">;<br>-def dylinker : Flag<"-dylinker">;<br>-def dynamiclib : Flag<"-dynamiclib">;<br>-def dynamic : Flag<"-dynamic">, Flags<[NoArgumentUnused]>;<br>-def d_Flag : Flag<"-d">, Group<d_Group>;<br>-def d_Joined : Joined<"-d">, Group<d_Group>;<br>-def emit_ast : Flag<"-emit-ast">,<br>+def dumpmachine : Flag<["-"], "dumpmachine">;<br>+def dumpspecs : Flag<["-"], "dumpspecs">, Flags<[Unsupported]>;<br>+def dumpversion : Flag<["-"], "dumpversion">;<br>+def dylib__file : Separate<["-"], "dylib_file">;<br>+def dylinker__install__name : JoinedOrSeparate<["-"], "dylinker_install_name">;<br>+def dylinker : Flag<["-"], "dylinker">;<br>+def dynamiclib : Flag<["-"], "dynamiclib">;<br>+def dynamic : Flag<["-"], "dynamic">, Flags<[NoArgumentUnused]>;<br>+def d_Flag : Flag<["-"], "d">, Group<d_Group>;<br>+def d_Joined : Joined<["-"], "d">, Group<d_Group>;<br>+def emit_ast : Flag<["-"], "emit-ast">,<br>   HelpText<"Emit Clang AST files for source inputs">;<br>-def emit_llvm : Flag<"-emit-llvm">, Flags<[CC1Option]>, Group<Action_Group>,<br>+def emit_llvm : Flag<["-"], "emit-llvm">, Flags<[CC1Option]>, Group<Action_Group>,<br>   HelpText<"Use the LLVM representation for assembler and object files">;<br>-def exported__symbols__list : Separate<"-exported_symbols_list">;<br>-def e : JoinedOrSeparate<"-e">;<br>-def fPIC : Flag<"-fPIC">, Group<f_Group>;<br>-def fno_PIC : Flag<"-fno-PIC">, Group<f_Group>;<br>-def fPIE : Flag<"-fPIE">, Group<f_Group>;<br>-def fno_PIE : Flag<"-fno-PIE">, Group<f_Group>;<br>-def faccess_control : Flag<"-faccess-control">, Group<f_Group>;<br>-def fallow_unsupported : Flag<"-fallow-unsupported">, Group<f_Group>;<br>-def faltivec : Flag<"-faltivec">, Group<f_Group>, Flags<[CC1Option]>,<br>+def exported__symbols__list : Separate<["-"], "exported_symbols_list">;<br>+def e : JoinedOrSeparate<["-"], "e">;<br>+def fPIC : Flag<["-"], "fPIC">, Group<f_Group>;<br>+def fno_PIC : Flag<["-"], "fno-PIC">, Group<f_Group>;<br>+def fPIE : Flag<["-"], "fPIE">, Group<f_Group>;<br>+def fno_PIE : Flag<["-"], "fno-PIE">, Group<f_Group>;<br>+def faccess_control : Flag<["-"], "faccess-control">, Group<f_Group>;<br>+def fallow_unsupported : Flag<["-"], "fallow-unsupported">, Group<f_Group>;<br>+def faltivec : Flag<["-"], "faltivec">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable AltiVec vector initializer syntax">;<br>-def fapple_kext : Flag<"-fapple-kext">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fapple_kext : Flag<["-"], "fapple-kext">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Use Apple's kernel extensions ABI">;<br>-def fapple_pragma_pack : Flag<"-fapple-pragma-pack">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fapple_pragma_pack : Flag<["-"], "fapple-pragma-pack">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable Apple gcc-compatible #pragma pack handling">;<br>-def faddress_sanitizer : Flag<"-faddress-sanitizer">, Group<f_Group>, Flags<[CC1Option]>,<br>+def faddress_sanitizer : Flag<["-"], "faddress-sanitizer">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable AddressSanitizer instrumentation (memory error detection)">;<br>-def fno_address_sanitizer : Flag<"-fno-address-sanitizer">, Group<f_Group>, Flags<[CC1Option]>;<br>-def fthread_sanitizer : Flag<"-fthread-sanitizer">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_address_sanitizer : Flag<["-"], "fno-address-sanitizer">, Group<f_Group>, Flags<[CC1Option]>;<br>+def fthread_sanitizer : Flag<["-"], "fthread-sanitizer">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable ThreadSanitizer instrumentation (race detection)">;<br>-def fno_thread_sanitizer : Flag<"-fno-thread-sanitizer">, Group<f_Group>, Flags<[CC1Option]>;<br>-def fasm : Flag<"-fasm">, Group<f_Group>;<br>+def fno_thread_sanitizer : Flag<["-"], "fno-thread-sanitizer">, Group<f_Group>, Flags<[CC1Option]>;<br>+def fasm : Flag<["-"], "fasm">, Group<f_Group>;<br><br>-def fasm_blocks : Flag<"-fasm-blocks">, Group<f_Group>;<br>-def fno_asm_blocks : Flag<"-fno-asm-blocks">, Group<f_Group>;<br>+def fasm_blocks : Flag<["-"], "fasm-blocks">, Group<f_Group>;<br>+def fno_asm_blocks : Flag<["-"], "fno-asm-blocks">, Group<f_Group>;<br><br>-def fassume_sane_operator_new : Flag<"-fassume-sane-operator-new">, Group<f_Group>;<br>-def fastcp : Flag<"-fastcp">, Group<f_Group>;<br>-def fastf : Flag<"-fastf">, Group<f_Group>;<br>-def fast : Flag<"-fast">, Group<f_Group>;<br>-def fasynchronous_unwind_tables : Flag<"-fasynchronous-unwind-tables">, Group<f_Group>;<br>-def fblocks : Flag<"-fblocks">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fassume_sane_operator_new : Flag<["-"], "fassume-sane-operator-new">, Group<f_Group>;<br>+def fastcp : Flag<["-"], "fastcp">, Group<f_Group>;<br>+def fastf : Flag<["-"], "fastf">, Group<f_Group>;<br>+def fast : Flag<["-"], "fast">, Group<f_Group>;<br>+def fasynchronous_unwind_tables : Flag<["-"], "fasynchronous-unwind-tables">, Group<f_Group>;<br>+def fblocks : Flag<["-"], "fblocks">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable the 'blocks' language feature">;<br>-def fbootclasspath_EQ : Joined<"-fbootclasspath=">, Group<f_Group>;<br>-def fborland_extensions : Flag<"-fborland-extensions">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fbootclasspath_EQ : Joined<["-"], "fbootclasspath=">, Group<f_Group>;<br>+def fborland_extensions : Flag<["-"], "fborland-extensions">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Accept non-standard constructs supported by the Borland compiler">;<br>-def fbounds_checking : Flag<"-fbounds-checking">, Group<f_Group>,<br>+def fbounds_checking : Flag<["-"], "fbounds-checking">, Group<f_Group>,<br>   HelpText<"Enable run-time bounds checks.">;<br>-def fbounds_checking_EQ : Joined<"-fbounds-checking=">, Flags<[CC1Option]>,<br>+def fbounds_checking_EQ : Joined<["-"], "fbounds-checking=">, Flags<[CC1Option]>,<br>   Group<f_Group>;<br>-def fbuiltin_strcat : Flag<"-fbuiltin-strcat">, Group<f_Group>;<br>-def fbuiltin_strcpy : Flag<"-fbuiltin-strcpy">, Group<f_Group>;<br>-def fbuiltin : Flag<"-fbuiltin">, Group<f_Group>;<br>-def fcaret_diagnostics : Flag<"-fcaret-diagnostics">, Group<f_Group>;<br>-def fcatch_undefined_behavior : Flag<"-fcatch-undefined-behavior">, Flags<[CC1Option]>,<br>+def fbuiltin_strcat : Flag<["-"], "fbuiltin-strcat">, Group<f_Group>;<br>+def fbuiltin_strcpy : Flag<["-"], "fbuiltin-strcpy">, Group<f_Group>;<br>+def fbuiltin : Flag<["-"], "fbuiltin">, Group<f_Group>;<br>+def fcaret_diagnostics : Flag<["-"], "fcaret-diagnostics">, Group<f_Group>;<br>+def fcatch_undefined_behavior : Flag<["-"], "fcatch-undefined-behavior">, Flags<[CC1Option]>,<br>   Group<f_Group>, HelpText<"Generate runtime checks for undefined behavior.">;<br>-def fclasspath_EQ : Joined<"-fclasspath=">, Group<f_Group>;<br>-def fcolor_diagnostics : Flag<"-fcolor-diagnostics">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fclasspath_EQ : Joined<["-"], "fclasspath=">, Group<f_Group>;<br>+def fcolor_diagnostics : Flag<["-"], "fcolor-diagnostics">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Use colors in diagnostics">;<br>-def fcommon : Flag<"-fcommon">, Group<f_Group>;<br>-def fcompile_resource_EQ : Joined<"-fcompile-resource=">, Group<f_Group>;<br>-def fconstant_cfstrings : Flag<"-fconstant-cfstrings">, Group<f_Group>;<br>-def fconstant_string_class_EQ : Joined<"-fconstant-string-class=">, Group<f_Group>;<br>-def fconstexpr_depth_EQ : Joined<"-fconstexpr-depth=">, Group<f_Group>;<br>-def fconstexpr_backtrace_limit_EQ : Joined<"-fconstexpr-backtrace-limit=">,<br>+def fcommon : Flag<["-"], "fcommon">, Group<f_Group>;<br>+def fcompile_resource_EQ : Joined<["-"], "fcompile-resource=">, Group<f_Group>;<br>+def fconstant_cfstrings : Flag<["-"], "fconstant-cfstrings">, Group<f_Group>;<br>+def fconstant_string_class_EQ : Joined<["-"], "fconstant-string-class=">, Group<f_Group>;<br>+def fconstexpr_depth_EQ : Joined<["-"], "fconstexpr-depth=">, Group<f_Group>;<br>+def fconstexpr_backtrace_limit_EQ : Joined<["-"], "fconstexpr-backtrace-limit=">,<br>                                     Group<f_Group>;<br>-def fno_crash_diagnostics : Flag<"-fno-crash-diagnostics">, Group<f_clang_Group>, Flags<[NoArgumentUnused]>;<br>-def fcreate_profile : Flag<"-fcreate-profile">, Group<f_Group>;<br>-def fcxx_exceptions: Flag<"-fcxx-exceptions">, Group<f_Group>,<br>+def fno_crash_diagnostics : Flag<["-"], "fno-crash-diagnostics">, Group<f_clang_Group>, Flags<[NoArgumentUnused]>;<br>+def fcreate_profile : Flag<["-"], "fcreate-profile">, Group<f_Group>;<br>+def fcxx_exceptions: Flag<["-"], "fcxx-exceptions">, Group<f_Group>,<br>   HelpText<"Enable C++ exceptions">, Flags<[CC1Option]>;<br>-def fcxx_modules : Flag <"-fcxx-modules">, Group<f_Group>, Flags<[NoForward]>;<br>-def fdebug_pass_arguments : Flag<"-fdebug-pass-arguments">, Group<f_Group>;<br>-def fdebug_pass_structure : Flag<"-fdebug-pass-structure">, Group<f_Group>;<br>-def fdiagnostics_fixit_info : Flag<"-fdiagnostics-fixit-info">, Group<f_clang_Group>;<br>-def fdiagnostics_parseable_fixits : Flag<"-fdiagnostics-parseable-fixits">, Group<f_clang_Group>,<br>+def fcxx_modules : Flag <["-"], "fcxx-modules">, Group<f_Group>, Flags<[NoForward]>;<br>+def fdebug_pass_arguments : Flag<["-"], "fdebug-pass-arguments">, Group<f_Group>;<br>+def fdebug_pass_structure : Flag<["-"], "fdebug-pass-structure">, Group<f_Group>;<br>+def fdiagnostics_fixit_info : Flag<["-"], "fdiagnostics-fixit-info">, Group<f_clang_Group>;<br>+def fdiagnostics_parseable_fixits : Flag<["-"], "fdiagnostics-parseable-fixits">, Group<f_clang_Group>,<br>     Flags<[CC1Option]>, HelpText<"Print fix-its in machine parseable form">;<br>-def fdiagnostics_print_source_range_info : Flag<"-fdiagnostics-print-source-range-info">,<br>+def fdiagnostics_print_source_range_info : Flag<["-"], "fdiagnostics-print-source-range-info">,<br>     Group<f_clang_Group>,  Flags<[CC1Option]>,<br>     HelpText<"Print source range spans in numeric form">;<br>-def fdiagnostics_show_option : Flag<"-fdiagnostics-show-option">, Group<f_Group>,<br>+def fdiagnostics_show_option : Flag<["-"], "fdiagnostics-show-option">, Group<f_Group>,<br>     Flags<[CC1Option]>, HelpText<"Print option name with mappable diagnostics">;<br>-def fdiagnostics_show_name : Flag<"-fdiagnostics-show-name">, Group<f_Group>,<br>+def fdiagnostics_show_name : Flag<["-"], "fdiagnostics-show-name">, Group<f_Group>,<br>     Flags<[CC1Option]>, HelpText<"Print diagnostic name">;<br>-def fdiagnostics_show_note_include_stack : Flag<"-fdiagnostics-show-note-include-stack">,<br>+def fdiagnostics_show_note_include_stack : Flag<["-"], "fdiagnostics-show-note-include-stack">,<br>     Group<f_Group>,  Flags<[CC1Option]>, HelpText<"Display include stacks for diagnostic notes">;<br>-def fdiagnostics_format_EQ : Joined<"-fdiagnostics-format=">, Group<f_clang_Group>;<br>-def fdiagnostics_show_category_EQ : Joined<"-fdiagnostics-show-category=">, Group<f_clang_Group>;<br>-def fdiagnostics_show_template_tree : Flag<"-fdiagnostics-show-template-tree">,<br>+def fdiagnostics_format_EQ : Joined<["-"], "fdiagnostics-format=">, Group<f_clang_Group>;<br>+def fdiagnostics_show_category_EQ : Joined<["-"], "fdiagnostics-show-category=">, Group<f_clang_Group>;<br>+def fdiagnostics_show_template_tree : Flag<["-"], "fdiagnostics-show-template-tree">,<br>     Group<f_Group>, Flags<[CC1Option]>,<br>     HelpText<"Print a template comparison tree for differing templates">;<br>-def fdollars_in_identifiers : Flag<"-fdollars-in-identifiers">, Group<f_Group>,<br>+def fdollars_in_identifiers : Flag<["-"], "fdollars-in-identifiers">, Group<f_Group>,<br>   HelpText<"Allow '$' in identifiers">, Flags<[CC1Option]>;<br>-def fdwarf2_cfi_asm : Flag<"-fdwarf2-cfi-asm">, Group<f_Group>;<br>-def fno_dwarf2_cfi_asm : Flag<"-fno-dwarf2-cfi-asm">, Group<f_Group>,  Flags<[CC1Option]>;<br>-def fdwarf_directory_asm : Flag<"-fdwarf-directory-asm">, Group<f_Group>;<br>-def fno_dwarf_directory_asm : Flag<"-fno-dwarf-directory-asm">, Group<f_Group>, Flags<[CC1Option]>;<br>-def felide_constructors : Flag<"-felide-constructors">, Group<f_Group>;<br>-def fno_elide_type : Flag<"-fno-elide-type">, Group<f_Group>,<br>+def fdwarf2_cfi_asm : Flag<["-"], "fdwarf2-cfi-asm">, Group<f_Group>;<br>+def fno_dwarf2_cfi_asm : Flag<["-"], "fno-dwarf2-cfi-asm">, Group<f_Group>,  Flags<[CC1Option]>;<br>+def fdwarf_directory_asm : Flag<["-"], "fdwarf-directory-asm">, Group<f_Group>;<br>+def fno_dwarf_directory_asm : Flag<["-"], "fno-dwarf-directory-asm">, Group<f_Group>, Flags<[CC1Option]>;<br>+def felide_constructors : Flag<["-"], "felide-constructors">, Group<f_Group>;<br>+def fno_elide_type : Flag<["-"], "fno-elide-type">, Group<f_Group>,<br>     Flags<[CC1Option]>,<br>     HelpText<"Do not elide types when printing diagnostics">;<br>-def feliminate_unused_debug_symbols : Flag<"-feliminate-unused-debug-symbols">, Group<f_Group>;<br>-def femit_all_decls : Flag<"-femit-all-decls">, Group<f_Group>, Flags<[CC1Option]>,<br>+def feliminate_unused_debug_symbols : Flag<["-"], "feliminate-unused-debug-symbols">, Group<f_Group>;<br>+def femit_all_decls : Flag<["-"], "femit-all-decls">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Emit all declarations, even if unused">;<br>-def fencoding_EQ : Joined<"-fencoding=">, Group<f_Group>;<br>-def ferror_limit_EQ : Joined<"-ferror-limit=">, Group<f_Group>;<br>-def fexceptions : Flag<"-fexceptions">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fencoding_EQ : Joined<["-"], "fencoding=">, Group<f_Group>;<br>+def ferror_limit_EQ : Joined<["-"], "ferror-limit=">, Group<f_Group>;<br>+def fexceptions : Flag<["-"], "fexceptions">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable support for exception handling">;<br>-def fextdirs_EQ : Joined<"-fextdirs=">, Group<f_Group>;<br>-def fhosted : Flag<"-fhosted">, Group<f_Group>;<br>-def ffast_math : Flag<"-ffast-math">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fextdirs_EQ : Joined<["-"], "fextdirs=">, Group<f_Group>;<br>+def fhosted : Flag<["-"], "fhosted">, Group<f_Group>;<br>+def ffast_math : Flag<["-"], "ffast-math">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable the *frontend*'s 'fast-math' mode. This has no effect on "<br>            "optimizations, but provides a preprocessor macro __FAST_MATH__ the "<br>            "same as GCC's -ffast-math flag.">;<br>-def fno_fast_math : Flag<"-fno-fast-math">, Group<f_Group>;<br>-def fmath_errno : Flag<"-fmath-errno">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_fast_math : Flag<["-"], "fno-fast-math">, Group<f_Group>;<br>+def fmath_errno : Flag<["-"], "fmath-errno">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Require math functions to indicate errors by setting errno">;<br>-def fno_math_errno : Flag<"-fno-math-errno">, Group<f_Group>;<br>-def fsignaling_math : Flag<"-fsignaling-math">, Group<f_Group>;<br>-def fno_signaling_math : Flag<"-fno-signaling-math">, Group<f_Group>;<br>-def funsafe_math_optimizations : Flag<"-funsafe-math-optimizations">,<br>+def fno_math_errno : Flag<["-"], "fno-math-errno">, Group<f_Group>;<br>+def fsignaling_math : Flag<["-"], "fsignaling-math">, Group<f_Group>;<br>+def fno_signaling_math : Flag<["-"], "fno-signaling-math">, Group<f_Group>;<br>+def funsafe_math_optimizations : Flag<["-"], "funsafe-math-optimizations">,<br>   Group<f_Group>;<br>-def fno_unsafe_math_optimizations : Flag<"-fno-unsafe-math-optimizations">,<br>+def fno_unsafe_math_optimizations : Flag<["-"], "fno-unsafe-math-optimizations">,<br>   Group<f_Group>;<br>-def fassociative_math : Flag<"-fassociative-math">, Group<f_Group>;<br>-def fno_associative_math : Flag<"-fno-associative-math">, Group<f_Group>;<br>-def freciprocal_math : Flag<"-freciprocal-math">, Group<f_Group>;<br>-def fno_reciprocal_math : Flag<"-fno-reciprocal-math">, Group<f_Group>;<br>-def ffinite_math_only : Flag<"-ffinite-math-only">, Group<f_Group>, Flags<[CC1Option]>;<br>-def fno_finite_math_only : Flag<"-fno-finite-math-only">, Group<f_Group>;<br>-def fsigned_zeros : Flag<"-fsigned-zeros">, Group<f_Group>;<br>-def fno_signed_zeros : Flag<"-fno-signed-zeros">, Group<f_Group>;<br>-def fhonor_nans : Flag<"-fhonor-nans">, Group<f_Group>;<br>-def fno_honor_nans : Flag<"-fno-honor-nans">, Group<f_Group>;<br>-def fhonor_infinities : Flag<"-fhonor-infinities">, Group<f_Group>;<br>-def fno_honor_infinities : Flag<"-fno-honor-infinities">, Group<f_Group>;<br>+def fassociative_math : Flag<["-"], "fassociative-math">, Group<f_Group>;<br>+def fno_associative_math : Flag<["-"], "fno-associative-math">, Group<f_Group>;<br>+def freciprocal_math : Flag<["-"], "freciprocal-math">, Group<f_Group>;<br>+def fno_reciprocal_math : Flag<["-"], "fno-reciprocal-math">, Group<f_Group>;<br>+def ffinite_math_only : Flag<["-"], "ffinite-math-only">, Group<f_Group>, Flags<[CC1Option]>;<br>+def fno_finite_math_only : Flag<["-"], "fno-finite-math-only">, Group<f_Group>;<br>+def fsigned_zeros : Flag<["-"], "fsigned-zeros">, Group<f_Group>;<br>+def fno_signed_zeros : Flag<["-"], "fno-signed-zeros">, Group<f_Group>;<br>+def fhonor_nans : Flag<["-"], "fhonor-nans">, Group<f_Group>;<br>+def fno_honor_nans : Flag<["-"], "fno-honor-nans">, Group<f_Group>;<br>+def fhonor_infinities : Flag<["-"], "fhonor-infinities">, Group<f_Group>;<br>+def fno_honor_infinities : Flag<["-"], "fno-honor-infinities">, Group<f_Group>;<br> // Sic. This option was misspelled originally.<br>-def fhonor_infinites : Flag<"-fhonor-infinites">, Alias<fhonor_infinities>;<br>-def fno_honor_infinites : Flag<"-fno-honor-infinites">, Alias<fno_honor_infinities>;<br>-def ftrapping_math : Flag<"-ftrapping-math">, Group<f_Group>;<br>-def fno_trapping_math : Flag<"-fno-trapping-math">, Group<f_Group>;<br>-def ffp_contract : Joined<"-ffp-contract=">, Group<f_Group>,<br>+def fhonor_infinites : Flag<["-"], "fhonor-infinites">, Alias<fhonor_infinities>;<br>+def fno_honor_infinites : Flag<["-"], "fno-honor-infinites">, Alias<fno_honor_infinities>;<br>+def ftrapping_math : Flag<["-"], "ftrapping-math">, Group<f_Group>;<br>+def fno_trapping_math : Flag<["-"], "fno-trapping-math">, Group<f_Group>;<br>+def ffp_contract : Joined<["-"], "ffp-contract=">, Group<f_Group>,<br>   Flags<[CC1Option]>, HelpText<"Form fused FP ops (e.g. FMAs): fast (everywhere)"<br>   " | on (according to FP_CONTRACT pragma, default) | off (never fuse)">;<br><br>-def ffor_scope : Flag<"-ffor-scope">, Group<f_Group>;<br>-def fno_for_scope : Flag<"-fno-for-scope">, Group<f_Group>;<br>+def ffor_scope : Flag<["-"], "ffor-scope">, Group<f_Group>;<br>+def fno_for_scope : Flag<["-"], "fno-for-scope">, Group<f_Group>;<br><br>-def frewrite_includes : Flag<"-frewrite-includes">, Group<f_Group>,<br>+def frewrite_includes : Flag<["-"], "frewrite-includes">, Group<f_Group>,<br>   Flags<[CC1Option]>;<br>-def fno_rewrite_includes : Flag<"-fno-rewrite-includes">, Group<f_Group>;<br>+def fno_rewrite_includes : Flag<["-"], "fno-rewrite-includes">, Group<f_Group>;<br><br>-def ffreestanding : Flag<"-ffreestanding">, Group<f_Group>, Flags<[CC1Option]>,<br>+def ffreestanding : Flag<["-"], "ffreestanding">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Assert that the compilation takes place in a freestanding environment">;<br>-def fgnu_keywords : Flag<"-fgnu-keywords">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fgnu_keywords : Flag<["-"], "fgnu-keywords">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Allow GNU-extension keywords regardless of language standard">;<br>-def fgnu89_inline : Flag<"-fgnu89-inline">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fgnu89_inline : Flag<["-"], "fgnu89-inline">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Use the gnu89 inline semantics">;<br>-def fno_gnu89_inline : Flag<"-fno-gnu89-inline">, Group<f_Group>;<br>-def fgnu_runtime : Flag<"-fgnu-runtime">, Group<f_Group>,<br>+def fno_gnu89_inline : Flag<["-"], "fno-gnu89-inline">, Group<f_Group>;<br>+def fgnu_runtime : Flag<["-"], "fgnu-runtime">, Group<f_Group>,<br>   HelpText<"Generate output compatible with the standard GNU Objective-C runtime">;<br>-def fheinous_gnu_extensions : Flag<"-fheinous-gnu-extensions">, Flags<[CC1Option]>;<br>-def filelist : Separate<"-filelist">, Flags<[LinkerInput]>;<br>-def findirect_virtual_calls : Flag<"-findirect-virtual-calls">, Alias<fapple_kext>;<br>-def finline_functions : Flag<"-finline-functions">, Group<clang_ignored_f_Group>;<br>-def finline : Flag<"-finline">, Group<clang_ignored_f_Group>;<br>-def finstrument_functions : Flag<"-finstrument-functions">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fheinous_gnu_extensions : Flag<["-"], "fheinous-gnu-extensions">, Flags<[CC1Option]>;<br>+def filelist : Separate<["-"], "filelist">, Flags<[LinkerInput]>;<br>+def findirect_virtual_calls : Flag<["-"], "findirect-virtual-calls">, Alias<fapple_kext>;<br>+def finline_functions : Flag<["-"], "finline-functions">, Group<clang_ignored_f_Group>;<br>+def finline : Flag<["-"], "finline">, Group<clang_ignored_f_Group>;<br>+def finstrument_functions : Flag<["-"], "finstrument-functions">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Generate calls to instrument function entry and exit">;<br>-def fkeep_inline_functions : Flag<"-fkeep-inline-functions">, Group<clang_ignored_f_Group>;<br>-def flat__namespace : Flag<"-flat_namespace">;<br>-def flax_vector_conversions : Flag<"-flax-vector-conversions">, Group<f_Group>;<br>-def flimit_debug_info : Flag<"-flimit-debug-info">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fkeep_inline_functions : Flag<["-"], "fkeep-inline-functions">, Group<clang_ignored_f_Group>;<br>+def flat__namespace : Flag<["-"], "flat_namespace">;<br>+def flax_vector_conversions : Flag<["-"], "flax-vector-conversions">, Group<f_Group>;<br>+def flimit_debug_info : Flag<["-"], "flimit-debug-info">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Limit debug information produced to reduce size of debug binary">;<br>-def flimited_precision_EQ : Joined<"-flimited-precision=">, Group<f_Group>;<br>-def flto : Flag<"-flto">, Group<f_Group>;<br>-def fno_lto : Flag<"-fno-lto">, Group<f_Group>;<br>-def fmacro_backtrace_limit_EQ : Joined<"-fmacro-backtrace-limit=">,<br>+def flimited_precision_EQ : Joined<["-"], "flimited-precision=">, Group<f_Group>;<br>+def flto : Flag<["-"], "flto">, Group<f_Group>;<br>+def fno_lto : Flag<["-"], "fno-lto">, Group<f_Group>;<br>+def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">,<br>                                 Group<f_Group>;<br>-def fmerge_all_constants : Flag<"-fmerge-all-constants">, Group<f_Group>;<br>-def fmessage_length_EQ : Joined<"-fmessage-length=">, Group<f_Group>;<br>-def fms_extensions : Flag<"-fms-extensions">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fmerge_all_constants : Flag<["-"], "fmerge-all-constants">, Group<f_Group>;<br>+def fmessage_length_EQ : Joined<["-"], "fmessage-length=">, Group<f_Group>;<br>+def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;<br>-def fenable_experimental_ms_inline_asm : Flag<"-fenable-experimental-ms-inline-asm">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fenable_experimental_ms_inline_asm : Flag<["-"], "fenable-experimental-ms-inline-asm">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable support for Microsoft style inine assembly">;<br>-def fms_compatibility : Flag<"-fms-compatibility">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fms_compatibility : Flag<["-"], "fms-compatibility">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable Microsoft compatibility mode">;<br>-def fmsc_version : Joined<"-fmsc-version=">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fmsc_version : Joined<["-"], "fmsc-version=">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Version of the Microsoft C/C++ compiler to report in _MSC_VER (0 = don't define it (default))">;<br>-def fdelayed_template_parsing : Flag<"-fdelayed-template-parsing">, Group<f_Group>,<br>+def fdelayed_template_parsing : Flag<["-"], "fdelayed-template-parsing">, Group<f_Group>,<br>   HelpText<"Parse templated function definitions at the end of the "<br>            "translation unit ">,  Flags<[CC1Option]>;<br>-def fmodule_cache_path : Separate<"-fmodule-cache-path">, Group<i_Group>, <br>+def fmodule_cache_path : Separate<["-"], "fmodule-cache-path">, Group<i_Group>, <br>   Flags<[NoForward,CC1Option]>, MetaVarName<"<directory>">,<br>   HelpText<"Specify the module cache path">;<br>-def fmodules : Flag <"-fmodules">, Group<f_Group>, Flags<[NoForward,CC1Option]>,<br>+def fmodules : Flag <["-"], "fmodules">, Group<f_Group>, Flags<[NoForward,CC1Option]>,<br>   HelpText<"Enable the 'modules' language feature">;<br>-def fretain_comments_from_system_headers : Flag<"-fretain-comments-from-system-headers">, Group<f_Group>, Flags<[CC1Option]>;<br>-  <br>-def fmudflapth : Flag<"-fmudflapth">, Group<f_Group>;<br>-def fmudflap : Flag<"-fmudflap">, Group<f_Group>;<br>-def fnested_functions : Flag<"-fnested-functions">, Group<f_Group>;<br>-def fnext_runtime : Flag<"-fnext-runtime">, Group<f_Group>;<br>-def fno_access_control : Flag<"-fno-access-control">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fretain_comments_from_system_headers : Flag<["-"], "fretain-comments-from-system-headers">, Group<f_Group>, Flags<[CC1Option]>;<br>+<br>+def fmudflapth : Flag<["-"], "fmudflapth">, Group<f_Group>;<br>+def fmudflap : Flag<["-"], "fmudflap">, Group<f_Group>;<br>+def fnested_functions : Flag<["-"], "fnested-functions">, Group<f_Group>;<br>+def fnext_runtime : Flag<["-"], "fnext-runtime">, Group<f_Group>;<br>+def fno_access_control : Flag<["-"], "fno-access-control">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Disable C++ access control">;<br>-def fno_apple_pragma_pack : Flag<"-fno-apple-pragma-pack">, Group<f_Group>;<br>-def fno_asm : Flag<"-fno-asm">, Group<f_Group>;<br>-def fno_asynchronous_unwind_tables : Flag<"-fno-asynchronous-unwind-tables">, Group<f_Group>;<br>-def fno_assume_sane_operator_new : Flag<"-fno-assume-sane-operator-new">, Group<f_Group>,<br>+def fno_apple_pragma_pack : Flag<["-"], "fno-apple-pragma-pack">, Group<f_Group>;<br>+def fno_asm : Flag<["-"], "fno-asm">, Group<f_Group>;<br>+def fno_asynchronous_unwind_tables : Flag<["-"], "fno-asynchronous-unwind-tables">, Group<f_Group>;<br>+def fno_assume_sane_operator_new : Flag<["-"], "fno-assume-sane-operator-new">, Group<f_Group>,<br>   HelpText<"Don't assume that C++'s global operator new can't alias any pointer">,<br>   Flags<[CC1Option]>;<br>-def fno_blocks : Flag<"-fno-blocks">, Group<f_Group>;<br>-def fno_borland_extensions : Flag<"-fno-borland-extensions">, Group<f_Group>;<br>-def fno_builtin_strcat : Flag<"-fno-builtin-strcat">, Group<f_Group>;<br>-def fno_builtin_strcpy : Flag<"-fno-builtin-strcpy">, Group<f_Group>;<br>-def fno_builtin : Flag<"-fno-builtin">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_blocks : Flag<["-"], "fno-blocks">, Group<f_Group>;<br>+def fno_borland_extensions : Flag<["-"], "fno-borland-extensions">, Group<f_Group>;<br>+def fno_builtin_strcat : Flag<["-"], "fno-builtin-strcat">, Group<f_Group>;<br>+def fno_builtin_strcpy : Flag<["-"], "fno-builtin-strcpy">, Group<f_Group>;<br>+def fno_builtin : Flag<["-"], "fno-builtin">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Disable implicit builtin knowledge of functions">;<br>-def fno_caret_diagnostics : Flag<"-fno-caret-diagnostics">, Group<f_Group>,<br>+def fno_caret_diagnostics : Flag<["-"], "fno-caret-diagnostics">, Group<f_Group>,<br>  Flags<[CC1Option]>;<br>-def fno_color_diagnostics : Flag<"-fno-color-diagnostics">, Group<f_Group>;<br>-def fno_common : Flag<"-fno-common">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_color_diagnostics : Flag<["-"], "fno-color-diagnostics">, Group<f_Group>;<br>+def fno_common : Flag<["-"], "fno-common">, Group<f_Group>, Flags<[CC1Option]>,<br>     HelpText<"Compile common globals like normal definitions">;<br>-def fno_constant_cfstrings : Flag<"-fno-constant-cfstrings">, Group<f_Group>,<br>+def fno_constant_cfstrings : Flag<["-"], "fno-constant-cfstrings">, Group<f_Group>,<br>   Flags<[CC1Option]>,<br>   HelpText<"Disable creation of CodeFoundation-type constant strings">;<br>-def fno_cxx_exceptions: Flag<"-fno-cxx-exceptions">, Group<f_Group>;<br>-def fno_cxx_modules : Flag <"-fno-cxx-modules">, Group<f_Group>, Flags<[NoForward]>;<br>-def fno_diagnostics_fixit_info : Flag<"-fno-diagnostics-fixit-info">, Group<f_Group>,<br>+def fno_cxx_exceptions: Flag<["-"], "fno-cxx-exceptions">, Group<f_Group>;<br>+def fno_cxx_modules : Flag <["-"], "fno-cxx-modules">, Group<f_Group>, Flags<[NoForward]>;<br>+def fno_diagnostics_fixit_info : Flag<["-"], "fno-diagnostics-fixit-info">, Group<f_Group>,<br>   Flags<[CC1Option]>, HelpText<"Do not include fixit information in diagnostics">;<br>-def fno_diagnostics_show_name : Flag<"-fno-diagnostics-show-name">, Group<f_Group>;<br>-def fno_diagnostics_show_option : Flag<"-fno-diagnostics-show-option">, Group<f_Group>;<br>-def fno_diagnostics_show_note_include_stack : Flag<"-fno-diagnostics-show-note-include-stack">,<br>+def fno_diagnostics_show_name : Flag<["-"], "fno-diagnostics-show-name">, Group<f_Group>;<br>+def fno_diagnostics_show_option : Flag<["-"], "fno-diagnostics-show-option">, Group<f_Group>;<br>+def fno_diagnostics_show_note_include_stack : Flag<["-"], "fno-diagnostics-show-note-include-stack">,<br>     Flags<[CC1Option]>, Group<f_Group>, HelpText<"Display include stacks for diagnostic notes">;<br>-def fno_dollars_in_identifiers : Flag<"-fno-dollars-in-identifiers">, Group<f_Group>,<br>+def fno_dollars_in_identifiers : Flag<["-"], "fno-dollars-in-identifiers">, Group<f_Group>,<br>   HelpText<"Disallow '$' in identifiers">, Flags<[CC1Option]>;<br>-def fno_elide_constructors : Flag<"-fno-elide-constructors">, Group<f_Group>,<br>+def fno_elide_constructors : Flag<["-"], "fno-elide-constructors">, Group<f_Group>,<br>   HelpText<"Disable C++ copy constructor elision">, Flags<[CC1Option]>;<br>-def fno_eliminate_unused_debug_symbols : Flag<"-fno-eliminate-unused-debug-symbols">, Group<f_Group>;<br>-def fno_exceptions : Flag<"-fno-exceptions">, Group<f_Group>;<br>-def fno_gnu_keywords : Flag<"-fno-gnu-keywords">, Group<f_Group>, Flags<[CC1Option]>;<br>-def fno_inline_functions : Flag<"-fno-inline-functions">, Group<f_clang_Group>, Flags<[CC1Option]>;<br>-def fno_inline : Flag<"-fno-inline">, Group<f_clang_Group>, Flags<[CC1Option]>;<br>-def fno_keep_inline_functions : Flag<"-fno-keep-inline-functions">, Group<clang_ignored_f_Group>;<br>-def fno_lax_vector_conversions : Flag<"-fno-lax-vector-conversions">, Group<f_Group>,<br>+def fno_eliminate_unused_debug_symbols : Flag<["-"], "fno-eliminate-unused-debug-symbols">, Group<f_Group>;<br>+def fno_exceptions : Flag<["-"], "fno-exceptions">, Group<f_Group>;<br>+def fno_gnu_keywords : Flag<["-"], "fno-gnu-keywords">, Group<f_Group>, Flags<[CC1Option]>;<br>+def fno_inline_functions : Flag<["-"], "fno-inline-functions">, Group<f_clang_Group>, Flags<[CC1Option]>;<br>+def fno_inline : Flag<["-"], "fno-inline">, Group<f_clang_Group>, Flags<[CC1Option]>;<br>+def fno_keep_inline_functions : Flag<["-"], "fno-keep-inline-functions">, Group<clang_ignored_f_Group>;<br>+def fno_lax_vector_conversions : Flag<["-"], "fno-lax-vector-conversions">, Group<f_Group>,<br>   HelpText<"Disallow implicit conversions between vectors with a different number of elements or different element types">, Flags<[CC1Option]>;<br>-def fno_limit_debug_info : Flag<"-fno-limit-debug-info">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_limit_debug_info : Flag<["-"], "fno-limit-debug-info">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Do not limit debug information produced to reduce size of debug binary">;<br>-def fno_merge_all_constants : Flag<"-fno-merge-all-constants">, Group<f_Group>,<br>+def fno_merge_all_constants : Flag<["-"], "fno-merge-all-constants">, Group<f_Group>,<br>     Flags<[CC1Option]>, HelpText<"Disallow merging of constants.">;<br>-def fno_modules : Flag <"-fno-modules">, Group<f_Group>, Flags<[NoForward]>;<br>-def fno_ms_extensions : Flag<"-fno-ms-extensions">, Group<f_Group>;<br>-def fno_ms_compatibility : Flag<"-fno-ms-compatibility">, Group<f_Group>;<br>-def fno_delayed_template_parsing : Flag<"-fno-delayed-template-parsing">, Group<f_Group>;<br>-def fno_objc_exceptions: Flag<"-fno-objc-exceptions">, Group<f_Group>;<br>-def fno_objc_legacy_dispatch : Flag<"-fno-objc-legacy-dispatch">, Group<f_Group>;<br>-def fno_omit_frame_pointer : Flag<"-fno-omit-frame-pointer">, Group<f_Group>;<br>-def fno_operator_names : Flag<"-fno-operator-names">, Group<f_Group>,<br>+def fno_modules : Flag <["-"], "fno-modules">, Group<f_Group>, Flags<[NoForward]>;<br>+def fno_ms_extensions : Flag<["-"], "fno-ms-extensions">, Group<f_Group>;<br>+def fno_ms_compatibility : Flag<["-"], "fno-ms-compatibility">, Group<f_Group>;<br>+def fno_delayed_template_parsing : Flag<["-"], "fno-delayed-template-parsing">, Group<f_Group>;<br>+def fno_objc_exceptions: Flag<["-"], "fno-objc-exceptions">, Group<f_Group>;<br>+def fno_objc_legacy_dispatch : Flag<["-"], "fno-objc-legacy-dispatch">, Group<f_Group>;<br>+def fno_omit_frame_pointer : Flag<["-"], "fno-omit-frame-pointer">, Group<f_Group>;<br>+def fno_operator_names : Flag<["-"], "fno-operator-names">, Group<f_Group>,<br>   HelpText<"Do not treat C++ operator name keywords as synonyms for operators">,<br>   Flags<[CC1Option]>;<br>-def fno_pascal_strings : Flag<"-fno-pascal-strings">, Group<f_Group>;<br>-def fno_rtti : Flag<"-fno-rtti">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_pascal_strings : Flag<["-"], "fno-pascal-strings">, Group<f_Group>;<br>+def fno_rtti : Flag<["-"], "fno-rtti">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Disable generation of rtti information">;<br>-def fno_short_enums : Flag<"-fno-short-enums">, Group<f_Group>;<br>-def fno_show_column : Flag<"-fno-show-column">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_short_enums : Flag<["-"], "fno-short-enums">, Group<f_Group>;<br>+def fno_show_column : Flag<["-"], "fno-show-column">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Do not include column number on diagnostics">;<br>-def fno_show_source_location : Flag<"-fno-show-source-location">, Group<f_Group>,<br>+def fno_show_source_location : Flag<["-"], "fno-show-source-location">, Group<f_Group>,<br>   Flags<[CC1Option]>, HelpText<"Do not include source location information with diagnostics">;<br>-def fno_spell_checking : Flag<"-fno-spell-checking">, Group<f_Group>,<br>+def fno_spell_checking : Flag<["-"], "fno-spell-checking">, Group<f_Group>,<br>   Flags<[CC1Option]>, HelpText<"Disable spell-checking">;<br>-def fno_stack_protector : Flag<"-fno-stack-protector">, Group<f_Group>;<br>-def fno_strict_aliasing : Flag<"-fno-strict-aliasing">, Group<f_Group>;<br>-def fno_strict_enums : Flag<"-fno-strict-enums">, Group<f_Group>;<br>-def fno_strict_overflow : Flag<"-fno-strict-overflow">, Group<f_Group>;<br>-def fno_threadsafe_statics : Flag<"-fno-threadsafe-statics">, Group<f_Group>,<br>+def fno_stack_protector : Flag<["-"], "fno-stack-protector">, Group<f_Group>;<br>+def fno_strict_aliasing : Flag<["-"], "fno-strict-aliasing">, Group<f_Group>;<br>+def fno_strict_enums : Flag<["-"], "fno-strict-enums">, Group<f_Group>;<br>+def fno_strict_overflow : Flag<["-"], "fno-strict-overflow">, Group<f_Group>;<br>+def fno_threadsafe_statics : Flag<["-"], "fno-threadsafe-statics">, Group<f_Group>,<br>   Flags<[CC1Option]>, HelpText<"Do not emit code to make initialization of local statics thread safe">;<br>-def fno_use_cxa_atexit : Flag<"-fno-use-cxa-atexit">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_use_cxa_atexit : Flag<["-"], "fno-use-cxa-atexit">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Don't use __cxa_atexit for calling destructors">;<br>-def fno_unit_at_a_time : Flag<"-fno-unit-at-a-time">, Group<f_Group>;<br>-def fno_unwind_tables : Flag<"-fno-unwind-tables">, Group<f_Group>;<br>-def fno_verbose_asm : Flag<"-fno-verbose-asm">, Group<f_Group>;<br>-def fno_working_directory : Flag<"-fno-working-directory">, Group<f_Group>;<br>-def fno_wrapv : Flag<"-fno-wrapv">, Group<f_Group>;<br>-def fno_zero_initialized_in_bss : Flag<"-fno-zero-initialized-in-bss">, Group<f_Group>;<br>-def fobjc_arc : Flag<"-fobjc-arc">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_unit_at_a_time : Flag<["-"], "fno-unit-at-a-time">, Group<f_Group>;<br>+def fno_unwind_tables : Flag<["-"], "fno-unwind-tables">, Group<f_Group>;<br>+def fno_verbose_asm : Flag<["-"], "fno-verbose-asm">, Group<f_Group>;<br>+def fno_working_directory : Flag<["-"], "fno-working-directory">, Group<f_Group>;<br>+def fno_wrapv : Flag<["-"], "fno-wrapv">, Group<f_Group>;<br>+def fno_zero_initialized_in_bss : Flag<["-"], "fno-zero-initialized-in-bss">, Group<f_Group>;<br>+def fobjc_arc : Flag<["-"], "fobjc-arc">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Synthesize retain and release calls for Objective-C pointers">;<br>-def fno_objc_arc : Flag<"-fno-objc-arc">, Group<f_Group>;<br>-def fobjc_arc_exceptions : Flag<"-fobjc-arc-exceptions">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fno_objc_arc : Flag<["-"], "fno-objc-arc">, Group<f_Group>;<br>+def fobjc_arc_exceptions : Flag<["-"], "fobjc-arc-exceptions">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Use EH-safe code when synthesizing retains and releases in -fobjc-arc">;<br>-def fno_objc_arc_exceptions : Flag<"-fno-objc-arc-exceptions">, Group<f_Group>;<br>-def fobjc_atdefs : Flag<"-fobjc-atdefs">, Group<clang_ignored_f_Group>;<br>-def fobjc_call_cxx_cdtors : Flag<"-fobjc-call-cxx-cdtors">, Group<clang_ignored_f_Group>;<br>-def fobjc_exceptions: Flag<"-fobjc-exceptions">, Group<f_Group>,<br>+def fno_objc_arc_exceptions : Flag<["-"], "fno-objc-arc-exceptions">, Group<f_Group>;<br>+def fobjc_atdefs : Flag<["-"], "fobjc-atdefs">, Group<clang_ignored_f_Group>;<br>+def fobjc_call_cxx_cdtors : Flag<["-"], "fobjc-call-cxx-cdtors">, Group<clang_ignored_f_Group>;<br>+def fobjc_exceptions: Flag<["-"], "fobjc-exceptions">, Group<f_Group>,<br>   HelpText<"Enable Objective-C exceptions">, Flags<[CC1Option]>;<br><br>-def fobjc_gc_only : Flag<"-fobjc-gc-only">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fobjc_gc_only : Flag<["-"], "fobjc-gc-only">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Use GC exclusively for Objective-C related memory management">;<br>-def fobjc_gc : Flag<"-fobjc-gc">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fobjc_gc : Flag<["-"], "fobjc-gc">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable Objective-C garbage collection">;<br>-def fobjc_legacy_dispatch : Flag<"-fobjc-legacy-dispatch">, Group<f_Group>;<br>-def fobjc_new_property : Flag<"-fobjc-new-property">, Group<clang_ignored_f_Group>;<br>-def fobjc_infer_related_result_type : Flag<"-fobjc-infer-related-result-type">, <br>+def fobjc_legacy_dispatch : Flag<["-"], "fobjc-legacy-dispatch">, Group<f_Group>;<br>+def fobjc_new_property : Flag<["-"], "fobjc-new-property">, Group<clang_ignored_f_Group>;<br>+def fobjc_infer_related_result_type : Flag<["-"], "fobjc-infer-related-result-type">, <br>                                       Group<f_Group>;<br>-def fno_objc_infer_related_result_type : Flag<<br>-  "-fno-objc-infer-related-result-type">, Group<f_Group>,<br>+def fno_objc_infer_related_result_type : Flag<["-"],<br>+  "fno-objc-infer-related-result-type">, Group<f_Group>,<br>   HelpText<<br>     "do not infer Objective-C related result type based on method family">,<br>   Flags<[CC1Option]>;<br>-def fobjc_link_runtime: Flag<"-fobjc-link-runtime">, Group<f_Group>;<br>+def fobjc_link_runtime: Flag<["-"], "fobjc-link-runtime">, Group<f_Group>;<br><br> // Objective-C ABI options.<br>-def fobjc_runtime_EQ : Joined<"-fobjc-runtime=">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fobjc_runtime_EQ : Joined<["-"], "fobjc-runtime=">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Specify the target Objective-C runtime kind and version">;<br>-def fobjc_abi_version_EQ : Joined<"-fobjc-abi-version=">, Group<f_Group>;<br>-def fobjc_nonfragile_abi_version_EQ : Joined<"-fobjc-nonfragile-abi-version=">, Group<f_Group>;<br>-def fobjc_nonfragile_abi : Flag<"-fobjc-nonfragile-abi">, Group<f_Group>;<br>-def fno_objc_nonfragile_abi : Flag<"-fno-objc-nonfragile-abi">, Group<f_Group>;<br>-<br>-def fobjc_sender_dependent_dispatch : Flag<"-fobjc-sender-dependent-dispatch">, Group<f_Group>;<br>-def fobjc : Flag<"-fobjc">, Group<f_Group>;<br>-def fomit_frame_pointer : Flag<"-fomit-frame-pointer">, Group<f_Group>;<br>-def fopenmp : Flag<"-fopenmp">, Group<f_Group>;<br>-def fno_optimize_sibling_calls : Flag<"-fno-optimize-sibling-calls">, Group<f_Group>;<br>-def foptimize_sibling_calls : Flag<"-foptimize-sibling-calls">, Group<f_Group>;<br>-def force__cpusubtype__ALL : Flag<"-force_cpusubtype_ALL">;<br>-def force__flat__namespace : Flag<"-force_flat_namespace">;<br>-def force__load : Separate<"-force_load">;<br>-def foutput_class_dir_EQ : Joined<"-foutput-class-dir=">, Group<f_Group>;<br>-def fpack_struct : Flag<"-fpack-struct">, Group<f_Group>;<br>-def fno_pack_struct : Flag<"-fno-pack-struct">, Group<f_Group>;<br>-def fpack_struct_EQ : Joined<"-fpack-struct=">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fobjc_abi_version_EQ : Joined<["-"], "fobjc-abi-version=">, Group<f_Group>;<br>+def fobjc_nonfragile_abi_version_EQ : Joined<["-"], "fobjc-nonfragile-abi-version=">, Group<f_Group>;<br>+def fobjc_nonfragile_abi : Flag<["-"], "fobjc-nonfragile-abi">, Group<f_Group>;<br>+def fno_objc_nonfragile_abi : Flag<["-"], "fno-objc-nonfragile-abi">, Group<f_Group>;<br>+<br>+def fobjc_sender_dependent_dispatch : Flag<["-"], "fobjc-sender-dependent-dispatch">, Group<f_Group>;<br>+def fobjc : Flag<["-"], "fobjc">, Group<f_Group>;<br>+def fomit_frame_pointer : Flag<["-"], "fomit-frame-pointer">, Group<f_Group>;<br>+def fopenmp : Flag<["-"], "fopenmp">, Group<f_Group>;<br>+def fno_optimize_sibling_calls : Flag<["-"], "fno-optimize-sibling-calls">, Group<f_Group>;<br>+def foptimize_sibling_calls : Flag<["-"], "foptimize-sibling-calls">, Group<f_Group>;<br>+def force__cpusubtype__ALL : Flag<["-"], "force_cpusubtype_ALL">;<br>+def force__flat__namespace : Flag<["-"], "force_flat_namespace">;<br>+def force__load : Separate<["-"], "force_load">;<br>+def foutput_class_dir_EQ : Joined<["-"], "foutput-class-dir=">, Group<f_Group>;<br>+def fpack_struct : Flag<["-"], "fpack-struct">, Group<f_Group>;<br>+def fno_pack_struct : Flag<["-"], "fno-pack-struct">, Group<f_Group>;<br>+def fpack_struct_EQ : Joined<["-"], "fpack-struct=">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Specify the default maximum struct packing alignment">;<br>-def fpascal_strings : Flag<"-fpascal-strings">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fpascal_strings : Flag<["-"], "fpascal-strings">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Recognize and construct Pascal-style string literals">;<br>-def fpch_preprocess : Flag<"-fpch-preprocess">, Group<f_Group>;<br>-def fpic : Flag<"-fpic">, Group<f_Group>;<br>-def fno_pic : Flag<"-fno-pic">, Group<f_Group>;<br>-def fpie : Flag<"-fpie">, Group<f_Group>;<br>-def fno_pie : Flag<"-fno-pie">, Group<f_Group>;<br>-def fprofile_arcs : Flag<"-fprofile-arcs">, Group<f_Group>;<br>-def fprofile_generate : Flag<"-fprofile-generate">, Group<f_Group>;<br>-def framework : Separate<"-framework">, Flags<[LinkerInput]>;<br>-def frandom_seed_EQ : Joined<"-frandom-seed=">, Group<clang_ignored_f_Group>;<br>-def frtti : Flag<"-frtti">, Group<f_Group>;<br>-def fsched_interblock : Flag<"-fsched-interblock">, Group<clang_ignored_f_Group>;<br>-def fshort_enums : Flag<"-fshort-enums">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fpch_preprocess : Flag<["-"], "fpch-preprocess">, Group<f_Group>;<br>+def fpic : Flag<["-"], "fpic">, Group<f_Group>;<br>+def fno_pic : Flag<["-"], "fno-pic">, Group<f_Group>;<br>+def fpie : Flag<["-"], "fpie">, Group<f_Group>;<br>+def fno_pie : Flag<["-"], "fno-pie">, Group<f_Group>;<br>+def fprofile_arcs : Flag<["-"], "fprofile-arcs">, Group<f_Group>;<br>+def fprofile_generate : Flag<["-"], "fprofile-generate">, Group<f_Group>;<br>+def framework : Separate<["-"], "framework">, Flags<[LinkerInput]>;<br>+def frandom_seed_EQ : Joined<["-"], "frandom-seed=">, Group<clang_ignored_f_Group>;<br>+def frtti : Flag<["-"], "frtti">, Group<f_Group>;<br>+def fsched_interblock : Flag<["-"], "fsched-interblock">, Group<clang_ignored_f_Group>;<br>+def fshort_enums : Flag<["-"], "fshort-enums">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Allocate to an enum type only as many bytes as it needs for the declared range of possible values">;<br>-def freorder_blocks : Flag<"-freorder-blocks">, Group<clang_ignored_f_Group>;<br>-def fshort_wchar : Flag<"-fshort-wchar">, Group<f_Group>, Flags<[CC1Option]>,<br>+def freorder_blocks : Flag<["-"], "freorder-blocks">, Group<clang_ignored_f_Group>;<br>+def fshort_wchar : Flag<["-"], "fshort-wchar">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Force wchar_t to be a short unsigned int">;<br>-def fshow_overloads_EQ : Joined<"-fshow-overloads=">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fshow_overloads_EQ : Joined<["-"], "fshow-overloads=">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Which overload candidates to show when overload resolution fails: "<br>            "best|all; defaults to all">;<br>-def fshow_column : Flag<"-fshow-column">, Group<f_Group>, Flags<[CC1Option]>;<br>-def fshow_source_location : Flag<"-fshow-source-location">, Group<f_Group>;<br>-def fspell_checking : Flag<"-fspell-checking">, Group<f_Group>;<br>-def fsigned_bitfields : Flag<"-fsigned-bitfields">, Group<f_Group>;<br>-def fsigned_char : Flag<"-fsigned-char">, Group<f_Group>;<br>-def fstack_protector_all : Flag<"-fstack-protector-all">, Group<f_Group>;<br>-def fstack_protector : Flag<"-fstack-protector">, Group<f_Group>;<br>-def fstrict_aliasing : Flag<"-fstrict-aliasing">, Group<f_Group>;<br>-def fstrict_enums : Flag<"-fstrict-enums">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fshow_column : Flag<["-"], "fshow-column">, Group<f_Group>, Flags<[CC1Option]>;<br>+def fshow_source_location : Flag<["-"], "fshow-source-location">, Group<f_Group>;<br>+def fspell_checking : Flag<["-"], "fspell-checking">, Group<f_Group>;<br>+def fsigned_bitfields : Flag<["-"], "fsigned-bitfields">, Group<f_Group>;<br>+def fsigned_char : Flag<["-"], "fsigned-char">, Group<f_Group>;<br>+def fstack_protector_all : Flag<["-"], "fstack-protector-all">, Group<f_Group>;<br>+def fstack_protector : Flag<["-"], "fstack-protector">, Group<f_Group>;<br>+def fstrict_aliasing : Flag<["-"], "fstrict-aliasing">, Group<f_Group>;<br>+def fstrict_enums : Flag<["-"], "fstrict-enums">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Enable optimizations based on the strict definition of an enum's "<br>            "value range.">;<br>-def fstrict_overflow : Flag<"-fstrict-overflow">, Group<f_Group>;<br>-def fsyntax_only : Flag<"-fsyntax-only">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>;<br>-def ftabstop_EQ : Joined<"-ftabstop=">, Group<f_Group>;<br>-def ftemplate_depth_EQ : Joined<"-ftemplate-depth=">, Group<f_Group>;<br>-def ftemplate_depth_ : Joined<"-ftemplate-depth-">, Group<f_Group>;<br>-def ftemplate_backtrace_limit_EQ : Joined<"-ftemplate-backtrace-limit=">,<br>+def fstrict_overflow : Flag<["-"], "fstrict-overflow">, Group<f_Group>;<br>+def fsyntax_only : Flag<["-"], "fsyntax-only">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>;<br>+def ftabstop_EQ : Joined<["-"], "ftabstop=">, Group<f_Group>;<br>+def ftemplate_depth_EQ : Joined<["-"], "ftemplate-depth=">, Group<f_Group>;<br>+def ftemplate_depth_ : Joined<["-"], "ftemplate-depth-">, Group<f_Group>;<br>+def ftemplate_backtrace_limit_EQ : Joined<["-"], "ftemplate-backtrace-limit=">,<br>                                    Group<f_Group>;<br>-def ftest_coverage : Flag<"-ftest-coverage">, Group<f_Group>;<br>-def Wlarge_by_value_copy_def : Flag<"-Wlarge-by-value-copy">,<br>+def ftest_coverage : Flag<["-"], "ftest-coverage">, Group<f_Group>;<br>+def Wlarge_by_value_copy_def : Flag<["-"], "Wlarge-by-value-copy">,<br>   HelpText<"Warn if a function definition returns or accepts an object larger "<br>            "in bytes that a given value">;<br>-def Wlarge_by_value_copy_EQ : Joined<"-Wlarge-by-value-copy=">, Flags<[CC1Option]>;<br>+def Wlarge_by_value_copy_EQ : Joined<["-"], "Wlarge-by-value-copy=">, Flags<[CC1Option]>;<br><br> // Just silence warnings about -Wlarger-than,  -Wframe-larger-than for now.<br>-def Wlarger_than : Separate<"-Wlarger-than">, Group<clang_ignored_f_Group>;<br>-def Wlarger_than_EQ : Joined<"-Wlarger-than=">, Alias<Wlarger_than>;<br>-def Wlarger_than_ : Joined<"-Wlarger-than-">, Alias<Wlarger_than>;<br>-def Wframe_larger_than : Separate<"-Wframe-larger-than">, Group<clang_ignored_f_Group>;<br>-def Wframe_larger_than_EQ : Joined<"-Wframe-larger-than=">, Alias<Wframe_larger_than>;<br>-<br>-def fterminated_vtables : Flag<"-fterminated-vtables">, Alias<fapple_kext>;<br>-def fthreadsafe_statics : Flag<"-fthreadsafe-statics">, Group<f_Group>;<br>-def ftime_report : Flag<"-ftime-report">, Group<f_Group>, Flags<[CC1Option]>;<br>-def ftlsmodel_EQ : Joined<"-ftls-model=">, Group<f_Group>, Flags<[CC1Option]>;<br>-def ftrapv : Flag<"-ftrapv">, Group<f_Group>, Flags<[CC1Option]>,<br>+def Wlarger_than : Separate<["-"], "Wlarger-than">, Group<clang_ignored_f_Group>;<br>+def Wlarger_than_EQ : Joined<["-"], "Wlarger-than=">, Alias<Wlarger_than>;<br>+def Wlarger_than_ : Joined<["-"], "Wlarger-than-">, Alias<Wlarger_than>;<br>+def Wframe_larger_than : Separate<["-"], "Wframe-larger-than">, Group<clang_ignored_f_Group>;<br>+def Wframe_larger_than_EQ : Joined<["-"], "Wframe-larger-than=">, Alias<Wframe_larger_than>;<br>+<br>+def fterminated_vtables : Flag<["-"], "fterminated-vtables">, Alias<fapple_kext>;<br>+def fthreadsafe_statics : Flag<["-"], "fthreadsafe-statics">, Group<f_Group>;<br>+def ftime_report : Flag<["-"], "ftime-report">, Group<f_Group>, Flags<[CC1Option]>;<br>+def ftlsmodel_EQ : Joined<["-"], "ftls-model=">, Group<f_Group>, Flags<[CC1Option]>;<br>+def ftrapv : Flag<["-"], "ftrapv">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Trap on integer overflow">;<br>-def ftrapv_handler_EQ : Joined<"-ftrapv-handler=">, Group<f_Group>,<br>+def ftrapv_handler_EQ : Joined<["-"], "ftrapv-handler=">, Group<f_Group>,<br>   MetaVarName<"<function name>">,<br>   HelpText<"Specify the function to be called on overflow.">;<br>-def ftrapv_handler : Separate<"-ftrapv-handler">, Group<f_Group>, Flags<[CC1Option]>;<br>-def ftrap_function_EQ : Joined<"-ftrap-function=">, Group<f_Group>, Flags<[CC1Option]>,<br>+def ftrapv_handler : Separate<["-"], "ftrapv-handler">, Group<f_Group>, Flags<[CC1Option]>;<br>+def ftrap_function_EQ : Joined<["-"], "ftrap-function=">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Issue call to specified function rather than a trap instruction">;<br>-def funit_at_a_time : Flag<"-funit-at-a-time">, Group<f_Group>;<br>-def funroll_loops : Flag<"-funroll-loops">, Group<f_Group>,<br>+def funit_at_a_time : Flag<["-"], "funit-at-a-time">, Group<f_Group>;<br>+def funroll_loops : Flag<["-"], "funroll-loops">, Group<f_Group>,<br>   HelpText<"Turn on loop unroller">, Flags<[CC1Option]>;<br>-def funsigned_bitfields : Flag<"-funsigned-bitfields">, Group<f_Group>;<br>-def funsigned_char : Flag<"-funsigned-char">, Group<f_Group>;<br>-def funwind_tables : Flag<"-funwind-tables">, Group<f_Group>;<br>-def fuse_cxa_atexit : Flag<"-fuse-cxa-atexit">, Group<f_Group>;<br>-def fverbose_asm : Flag<"-fverbose-asm">, Group<f_Group>;<br>-def fvisibility_EQ : Joined<"-fvisibility=">, Group<f_Group>;<br>-def fvisibility_inlines_hidden : Flag<"-fvisibility-inlines-hidden">, Group<f_Group>,<br>+def funsigned_bitfields : Flag<["-"], "funsigned-bitfields">, Group<f_Group>;<br>+def funsigned_char : Flag<["-"], "funsigned-char">, Group<f_Group>;<br>+def funwind_tables : Flag<["-"], "funwind-tables">, Group<f_Group>;<br>+def fuse_cxa_atexit : Flag<["-"], "fuse-cxa-atexit">, Group<f_Group>;<br>+def fverbose_asm : Flag<["-"], "fverbose-asm">, Group<f_Group>;<br>+def fvisibility_EQ : Joined<["-"], "fvisibility=">, Group<f_Group>;<br>+def fvisibility_inlines_hidden : Flag<["-"], "fvisibility-inlines-hidden">, Group<f_Group>,<br>   HelpText<"Give inline C++ member functions default visibility by default">,<br>   Flags<[CC1Option]>;<br>-def fwrapv : Flag<"-fwrapv">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fwrapv : Flag<["-"], "fwrapv">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Treat signed integer overflow as two's complement">;<br>-def fwritable_strings : Flag<"-fwritable-strings">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fwritable_strings : Flag<["-"], "fwritable-strings">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Store string literals as writable data">;<br>-def fzero_initialized_in_bss : Flag<"-fzero-initialized-in-bss">, Group<f_Group>;<br>-def ffunction_sections: Flag <"-ffunction-sections">, Group<f_Group>,<br>+def fzero_initialized_in_bss : Flag<["-"], "fzero-initialized-in-bss">, Group<f_Group>;<br>+def ffunction_sections: Flag <["-"], "ffunction-sections">, Group<f_Group>,<br>   Flags<[CC1Option]>, HelpText<"Place each function in its own section (ELF Only)">;<br>-def fdata_sections : Flag <"-fdata-sections">, Group<f_Group>, Flags<[CC1Option]>,<br>+def fdata_sections : Flag <["-"], "fdata-sections">, Group<f_Group>, Flags<[CC1Option]>,<br>   HelpText<"Place each data in its own section (ELF Only)">;<br>-def f : Joined<"-f">, Group<f_Group>;<br>-def g_Flag : Flag<"-g">, Group<g_Group>,<br>+def f : Joined<["-"], "f">, Group<f_Group>;<br>+def g_Flag : Flag<["-"], "g">, Group<g_Group>,<br>   HelpText<"Generate source level debug information">, Flags<[CC1Option]>;<br>-def gline_tables_only : Flag<"-gline-tables-only">, Group<g_Group>,<br>+def gline_tables_only : Flag<["-"], "gline-tables-only">, Group<g_Group>,<br>   HelpText<"Emit debug line number tables only">, Flags<[CC1Option]>;<br>-def g0 : Flag<"-g0">, Group<g_Group>;<br>-def g1 : Flag<"-g1">, Group<g_Group>;<br>-def g2 : Flag<"-g2">, Group<g_Group>;<br>-def g3 : Flag<"-g3">, Group<g_Group>;<br>-def ggdb : Flag<"-ggdb">, Group<g_Group>;<br>-def ggdb0 : Flag<"-ggdb0">, Group<g_Group>;<br>-def ggdb1 : Flag<"-ggdb1">, Group<g_Group>;<br>-def ggdb2 : Flag<"-ggdb2">, Group<g_Group>;<br>-def ggdb3 : Flag<"-ggdb3">, Group<g_Group>;<br>-def gdwarf_2 : Flag<"-gdwarf-2">, Group<g_Group>;<br>-def gdwarf_3 : Flag<"-gdwarf-3">, Group<g_Group>;<br>-def gdwarf_4 : Flag<"-gdwarf-4">, Group<g_Group>;<br>-def gfull : Flag<"-gfull">, Group<g_Group>;<br>-def gused : Flag<"-gused">, Group<g_Group>;<br>-def gstabs : Joined<"-gstabs">, Group<g_Group>, Flags<[Unsupported]>;<br>-def gcoff : Joined<"-gcoff">, Group<g_Group>, Flags<[Unsupported]>;<br>-def gxcoff : Joined<"-gxcoff">, Group<g_Group>, Flags<[Unsupported]>;<br>-def gvms : Joined<"-gvms">, Group<g_Group>, Flags<[Unsupported]>;<br>-def gtoggle : Flag<"-gtoggle">, Group<g_flags_Group>, Flags<[Unsupported]>;<br>-def grecord_gcc_switches : Flag<"-grecord-gcc-switches">, Group<g_flags_Group>;<br>-def gno_record_gcc_switches : Flag<"-gno-record-gcc-switches">,<br>+def g0 : Flag<["-"], "g0">, Group<g_Group>;<br>+def g1 : Flag<["-"], "g1">, Group<g_Group>;<br>+def g2 : Flag<["-"], "g2">, Group<g_Group>;<br>+def g3 : Flag<["-"], "g3">, Group<g_Group>;<br>+def ggdb : Flag<["-"], "ggdb">, Group<g_Group>;<br>+def ggdb0 : Flag<["-"], "ggdb0">, Group<g_Group>;<br>+def ggdb1 : Flag<["-"], "ggdb1">, Group<g_Group>;<br>+def ggdb2 : Flag<["-"], "ggdb2">, Group<g_Group>;<br>+def ggdb3 : Flag<["-"], "ggdb3">, Group<g_Group>;<br>+def gdwarf_2 : Flag<["-"], "gdwarf-2">, Group<g_Group>;<br>+def gdwarf_3 : Flag<["-"], "gdwarf-3">, Group<g_Group>;<br>+def gdwarf_4 : Flag<["-"], "gdwarf-4">, Group<g_Group>;<br>+def gfull : Flag<["-"], "gfull">, Group<g_Group>;<br>+def gused : Flag<["-"], "gused">, Group<g_Group>;<br>+def gstabs : Joined<["-"], "gstabs">, Group<g_Group>, Flags<[Unsupported]>;<br>+def gcoff : Joined<["-"], "gcoff">, Group<g_Group>, Flags<[Unsupported]>;<br>+def gxcoff : Joined<["-"], "gxcoff">, Group<g_Group>, Flags<[Unsupported]>;<br>+def gvms : Joined<["-"], "gvms">, Group<g_Group>, Flags<[Unsupported]>;<br>+def gtoggle : Flag<["-"], "gtoggle">, Group<g_flags_Group>, Flags<[Unsupported]>;<br>+def grecord_gcc_switches : Flag<["-"], "grecord-gcc-switches">, Group<g_flags_Group>;<br>+def gno_record_gcc_switches : Flag<["-"], "gno-record-gcc-switches">,<br>   Group<g_flags_Group>;<br>-def gstrict_dwarf : Flag<"-gstrict-dwarf">, Group<g_flags_Group>;<br>-def gno_strict_dwarf : Flag<"-gno-strict-dwarf">, Group<g_flags_Group>;<br>-def gcolumn_info : Flag<"-gcolumn-info">, Group<g_flags_Group>;<br>-def headerpad__max__install__names : Joined<"-headerpad_max_install_names">;<br>-def help : Flag<"-help">, Flags<[CC1Option]>,<br>+def gstrict_dwarf : Flag<["-"], "gstrict-dwarf">, Group<g_flags_Group>;<br>+def gno_strict_dwarf : Flag<["-"], "gno-strict-dwarf">, Group<g_flags_Group>;<br>+def gcolumn_info : Flag<["-"], "gcolumn-info">, Group<g_flags_Group>;<br>+def headerpad__max__install__names : Joined<["-"], "headerpad_max_install_names">;<br>+def help : Flag<["-", "--"], "help">, Flags<[CC1Option]>,<br>   HelpText<"Display available options">;<br>-def index_header_map : Flag<"-index-header-map">, Flags<[CC1Option]>,<br>+def index_header_map : Flag<["-"], "index-header-map">, Flags<[CC1Option]>,<br>   HelpText<"Make the next included directory (-I or -F) an indexer header map">;<br>-def idirafter : JoinedOrSeparate<"-idirafter">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>+def idirafter : JoinedOrSeparate<["-"], "idirafter">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>   HelpText<"Add directory to AFTER include search path">;<br>-def iframework : JoinedOrSeparate<"-iframework">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>+def iframework : JoinedOrSeparate<["-"], "iframework">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>   HelpText<"Add directory to SYSTEM framework search path">;<br>-def imacros : JoinedOrSeparate<"-imacros">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>+def imacros : JoinedOrSeparate<["-", "--"], "imacros">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>   HelpText<"Include macros from file before parsing">, MetaVarName<"<file>">;<br>-def image__base : Separate<"-image_base">;<br>-def include_ : JoinedOrSeparate<"-include">, Group<clang_i_Group>, EnumName<"include">,<br>+def image__base : Separate<["-"], "image_base">;<br>+def include_ : JoinedOrSeparate<["-", "--"], "include">, Group<clang_i_Group>, EnumName<"include">,<br>     MetaVarName<"<file>">, HelpText<"Include file before parsing">, Flags<[CC1Option]>;<br>-def include_pch : Separate<"-include-pch">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>+def include_pch : Separate<["-"], "include-pch">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>   HelpText<"Include precompiled header file">, MetaVarName<"<file>">;<br>-def init : Separate<"-init">;<br>-def install__name : Separate<"-install_name">;<br>-def integrated_as : Flag<"-integrated-as">, Flags<[DriverOption]>;<br>-def iprefix : JoinedOrSeparate<"-iprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>+def init : Separate<["-"], "init">;<br>+def install__name : Separate<["-"], "install_name">;<br>+def integrated_as : Flag<["-"], "integrated-as">, Flags<[DriverOption]>;<br>+def iprefix : JoinedOrSeparate<["-"], "iprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>   HelpText<"Set the -iwithprefix/-iwithprefixbefore prefix">, MetaVarName<"<dir>">;<br>-def iquote : JoinedOrSeparate<"-iquote">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>+def iquote : JoinedOrSeparate<["-"], "iquote">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>   HelpText<"Add directory to QUOTE include search path">, MetaVarName<"<directory>">;<br>-def isysroot : JoinedOrSeparate<"-isysroot">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>+def isysroot : JoinedOrSeparate<["-"], "isysroot">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>   HelpText<"Set the system root directory (usually /)">, MetaVarName<"<dir>">;<br>-def isystem : JoinedOrSeparate<"-isystem">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>+def isystem : JoinedOrSeparate<["-"], "isystem">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>   HelpText<"Add directory to SYSTEM include search path">, MetaVarName<"<directory>">;<br>-def iwithprefixbefore : JoinedOrSeparate<"-iwithprefixbefore">, Group<clang_i_Group>,<br>+def iwithprefixbefore : JoinedOrSeparate<["-"], "iwithprefixbefore">, Group<clang_i_Group>,<br>   HelpText<"Set directory to include search path with prefix">, MetaVarName<"<dir>">,<br>   Flags<[CC1Option]>;<br>-def iwithprefix : JoinedOrSeparate<"-iwithprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>+def iwithprefix : JoinedOrSeparate<["-"], "iwithprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,<br>   HelpText<"Set directory to SYSTEM include search path with prefix">, MetaVarName<"<dir>">;<br>-def iwithsysroot : JoinedOrSeparate<"-iwithsysroot">, Group<clang_i_Group>,<br>+def iwithsysroot : JoinedOrSeparate<["-"], "iwithsysroot">, Group<clang_i_Group>,<br>   HelpText<"Add directory to SYSTEM include search path, "<br>            "absolute paths are relative to -isysroot">, MetaVarName<"<directory>">,<br>   Flags<[CC1Option]>;<br>-def i : Joined<"-i">, Group<i_Group>;<br>-def keep__private__externs : Flag<"-keep_private_externs">;<br>-def l : JoinedOrSeparate<"-l">, Flags<[LinkerInput, RenderJoined]>;<br>-def lazy__framework : Separate<"-lazy_framework">, Flags<[LinkerInput]>;<br>-def lazy__library : Separate<"-lazy_library">, Flags<[LinkerInput]>;<br>-def m32 : Flag<"-m32">, Group<m_Group>, Flags<[DriverOption]>;<br>-def mqdsp6_compat : Flag<"-mqdsp6-compat">, Group<m_Group>, Flags<[DriverOption,CC1Option]>,<br>+def i : Joined<["-"], "i">, Group<i_Group>;<br>+def keep__private__externs : Flag<["-"], "keep_private_externs">;<br>+def l : JoinedOrSeparate<["-"], "l">, Flags<[LinkerInput, RenderJoined]>;<br>+def lazy__framework : Separate<["-"], "lazy_framework">, Flags<[LinkerInput]>;<br>+def lazy__library : Separate<["-"], "lazy_library">, Flags<[LinkerInput]>;<br>+def m32 : Flag<["-"], "m32">, Group<m_Group>, Flags<[DriverOption]>;<br>+def mqdsp6_compat : Flag<["-"], "mqdsp6-compat">, Group<m_Group>, Flags<[DriverOption,CC1Option]>,<br>   HelpText<"Enable hexagon-qdsp6 backward compatibility">;<br>-def m3dnowa : Flag<"-m3dnowa">, Group<m_x86_Features_Group>;<br>-def m3dnow : Flag<"-m3dnow">, Group<m_x86_Features_Group>;<br>-def m64 : Flag<"-m64">, Group<m_Group>, Flags<[DriverOption]>;<br>-def mabi_EQ : Joined<"-mabi=">, Group<m_Group>;<br>-def march_EQ : Joined<"-march=">, Group<m_Group>;<br>-def maltivec : Flag<"-maltivec">, Alias<faltivec>;<br>-def mcmodel_EQ : Joined<"-mcmodel=">, Group<m_Group>;<br>-def mconstant_cfstrings : Flag<"-mconstant-cfstrings">, Group<clang_ignored_m_Group>;<br>-def mcpu_EQ : Joined<"-mcpu=">, Group<m_Group>;<br>-def mdynamic_no_pic : Joined<"-mdynamic-no-pic">, Group<m_Group>;<br>-def mfix_and_continue : Flag<"-mfix-and-continue">, Group<clang_ignored_m_Group>;<br>-def mfloat_abi_EQ : Joined<"-mfloat-abi=">, Group<m_Group>;<br>-def mfpmath_EQ : Joined<"-mfpmath=">, Group<m_Group>;<br>-def mfpu_EQ : Joined<"-mfpu=">, Group<m_Group>;<br>-def mglobal_merge : Flag<"-mglobal-merge">, Group<m_Group>;<br>-def mhard_float : Flag<"-mhard-float">, Group<m_Group>;<br>-def miphoneos_version_min_EQ : Joined<"-miphoneos-version-min=">, Group<m_Group>;<br>-def mios_version_min_EQ : Joined<"-mios-version-min=">, Alias<miphoneos_version_min_EQ>;<br>-def mios_simulator_version_min_EQ : Joined<"-mios-simulator-version-min=">, Group<m_Group>;<br>-def mkernel : Flag<"-mkernel">, Group<m_Group>;<br>-def mlinker_version_EQ : Joined<"-mlinker-version=">, Flags<[NoForward]>;<br>-def mllvm : Separate<"-mllvm">, Flags<[CC1Option]>,<br>+def m3dnowa : Flag<["-"], "m3dnowa">, Group<m_x86_Features_Group>;<br>+def m3dnow : Flag<["-"], "m3dnow">, Group<m_x86_Features_Group>;<br>+def m64 : Flag<["-"], "m64">, Group<m_Group>, Flags<[DriverOption]>;<br>+def mabi_EQ : Joined<["-"], "mabi=">, Group<m_Group>;<br>+def march_EQ : Joined<["-"], "march=">, Group<m_Group>;<br>+def maltivec : Flag<["-"], "maltivec">, Alias<faltivec>;<br>+def mcmodel_EQ : Joined<["-"], "mcmodel=">, Group<m_Group>;<br>+def mconstant_cfstrings : Flag<["-"], "mconstant-cfstrings">, Group<clang_ignored_m_Group>;<br>+def mcpu_EQ : Joined<["-"], "mcpu=">, Group<m_Group>;<br>+def mdynamic_no_pic : Joined<["-"], "mdynamic-no-pic">, Group<m_Group>;<br>+def mfix_and_continue : Flag<["-"], "mfix-and-continue">, Group<clang_ignored_m_Group>;<br>+def mfloat_abi_EQ : Joined<["-"], "mfloat-abi=">, Group<m_Group>;<br>+def mfpmath_EQ : Joined<["-"], "mfpmath=">, Group<m_Group>;<br>+def mfpu_EQ : Joined<["-"], "mfpu=">, Group<m_Group>;<br>+def mglobal_merge : Flag<["-"], "mglobal-merge">, Group<m_Group>;<br>+def mhard_float : Flag<["-"], "mhard-float">, Group<m_Group>;<br>+def miphoneos_version_min_EQ : Joined<["-"], "miphoneos-version-min=">, Group<m_Group>;<br>+def mios_version_min_EQ : Joined<["-"], "mios-version-min=">, Alias<miphoneos_version_min_EQ>;<br>+def mios_simulator_version_min_EQ : Joined<["-"], "mios-simulator-version-min=">, Group<m_Group>;<br>+def mkernel : Flag<["-"], "mkernel">, Group<m_Group>;<br>+def mlinker_version_EQ : Joined<["-"], "mlinker-version=">, Flags<[NoForward]>;<br>+def mllvm : Separate<["-"], "mllvm">, Flags<[CC1Option]>,<br>   HelpText<"Additional arguments to forward to LLVM's option processing">;<br>-def mmacosx_version_min_EQ : Joined<"-mmacosx-version-min=">, Group<m_Group>;<br>-def mms_bitfields : Flag<"-mms-bitfields">, Group<m_Group>, Flags<[CC1Option]>,<br>+def mmacosx_version_min_EQ : Joined<["-"], "mmacosx-version-min=">, Group<m_Group>;<br>+def mms_bitfields : Flag<["-"], "mms-bitfields">, Group<m_Group>, Flags<[CC1Option]>,<br>   HelpText<"Set the default structure layout to be compatible with the Microsoft compiler standard.">;<br>-def mstackrealign : Flag<"-mstackrealign">, Group<m_Group>, Flags<[CC1Option]>,<br>+def mstackrealign : Flag<["-"], "mstackrealign">, Group<m_Group>, Flags<[CC1Option]>,<br>   HelpText<"Force realign the stack at entry to every function.">;<br>-def mstack_alignment : Joined<"-mstack-alignment=">, Group<m_Group>, Flags<[CC1Option]>,<br>+def mstack_alignment : Joined<["-"], "mstack-alignment=">, Group<m_Group>, Flags<[CC1Option]>,<br>   HelpText<"Set the stack alignment">;<br>-def mmmx : Flag<"-mmmx">, Group<m_x86_Features_Group>;<br>-def mno_3dnowa : Flag<"-mno-3dnowa">, Group<m_x86_Features_Group>;<br>-def mno_3dnow : Flag<"-mno-3dnow">, Group<m_x86_Features_Group>;<br>-def mno_constant_cfstrings : Flag<"-mno-constant-cfstrings">, Group<m_Group>;<br>-def mno_global_merge : Flag<"-mno-global-merge">, Group<m_Group>, Flags<[CC1Option]>,<br>+def mmmx : Flag<["-"], "mmmx">, Group<m_x86_Features_Group>;<br>+def mno_3dnowa : Flag<["-"], "mno-3dnowa">, Group<m_x86_Features_Group>;<br>+def mno_3dnow : Flag<["-"], "mno-3dnow">, Group<m_x86_Features_Group>;<br>+def mno_constant_cfstrings : Flag<["-"], "mno-constant-cfstrings">, Group<m_Group>;<br>+def mno_global_merge : Flag<["-"], "mno-global-merge">, Group<m_Group>, Flags<[CC1Option]>,<br>   HelpText<"Disable merging of globals">;<br>-def mno_mmx : Flag<"-mno-mmx">, Group<m_x86_Features_Group>;<br>-def mno_pascal_strings : Flag<"-mno-pascal-strings">, Group<m_Group>;<br>-def mno_red_zone : Flag<"-mno-red-zone">, Group<m_Group>;<br>-def mno_relax_all : Flag<"-mno-relax-all">, Group<m_Group>;<br>-def mno_rtd: Flag<"-mno-rtd">, Group<m_Group>;<br>-def mno_soft_float : Flag<"-mno-soft-float">, Group<m_Group>;<br>-def mno_stackrealign : Flag<"-mno-stackrealign">, Group<m_Group>;<br>-def mno_sse2 : Flag<"-mno-sse2">, Group<m_x86_Features_Group>;<br>-def mno_sse3 : Flag<"-mno-sse3">, Group<m_x86_Features_Group>;<br>-def mno_sse4a : Flag<"-mno-sse4a">, Group<m_x86_Features_Group>;<br>-def mno_sse4 : Flag<"-mno-sse4">, Group<m_x86_Features_Group>;<br>-def mno_sse4_1 : Flag<"-mno-sse4.1">, Group<m_x86_Features_Group>;<br>-def mno_sse4_2 : Flag<"-mno-sse4.2">, Group<m_x86_Features_Group>;<br>-def mno_sse : Flag<"-mno-sse">, Group<m_x86_Features_Group>;<br>-def mno_ssse3 : Flag<"-mno-ssse3">, Group<m_x86_Features_Group>;<br>-def mno_aes : Flag<"-mno-aes">, Group<m_x86_Features_Group>;<br>-def mno_avx : Flag<"-mno-avx">, Group<m_x86_Features_Group>;<br>-def mno_avx2 : Flag<"-mno-avx2">, Group<m_x86_Features_Group>;<br>-def mno_pclmul : Flag<"-mno-pclmul">, Group<m_x86_Features_Group>;<br>-def mno_lzcnt : Flag<"-mno-lzcnt">, Group<m_x86_Features_Group>;<br>-def mno_rdrnd : Flag<"-mno-rdrnd">, Group<m_x86_Features_Group>;<br>-def mno_bmi : Flag<"-mno-bmi">, Group<m_x86_Features_Group>;<br>-def mno_bmi2 : Flag<"-mno-bmi2">, Group<m_x86_Features_Group>;<br>-def mno_popcnt : Flag<"-mno-popcnt">, Group<m_x86_Features_Group>;<br>-def mno_fma4 : Flag<"-mno-fma4">, Group<m_x86_Features_Group>;<br>-def mno_fma : Flag<"-mno-fma">, Group<m_x86_Features_Group>;<br>-def mno_xop : Flag<"-mno-xop">, Group<m_x86_Features_Group>;<br>-def mno_f16c : Flag<"-mno-f16c">, Group<m_x86_Features_Group>;<br>-<br>-def mno_thumb : Flag<"-mno-thumb">, Group<m_Group>;<br>-def marm : Flag<"-marm">, Alias<mno_thumb>;<br>-<br>-def mno_warn_nonportable_cfstrings : Flag<"-mno-warn-nonportable-cfstrings">, Group<m_Group>;<br>-def mno_omit_leaf_frame_pointer : Flag<"-mno-omit-leaf-frame-pointer">, Group<f_Group>;<br>-def momit_leaf_frame_pointer : Flag<"-momit-leaf-frame-pointer">, Group<f_Group>,<br>+def mno_mmx : Flag<["-"], "mno-mmx">, Group<m_x86_Features_Group>;<br>+def mno_pascal_strings : Flag<["-"], "mno-pascal-strings">, Group<m_Group>;<br>+def mno_red_zone : Flag<["-"], "mno-red-zone">, Group<m_Group>;<br>+def mno_relax_all : Flag<["-"], "mno-relax-all">, Group<m_Group>;<br>+def mno_rtd: Flag<["-"], "mno-rtd">, Group<m_Group>;<br>+def mno_soft_float : Flag<["-"], "mno-soft-float">, Group<m_Group>;<br>+def mno_stackrealign : Flag<["-"], "mno-stackrealign">, Group<m_Group>;<br>+def mno_sse2 : Flag<["-"], "mno-sse2">, Group<m_x86_Features_Group>;<br>+def mno_sse3 : Flag<["-"], "mno-sse3">, Group<m_x86_Features_Group>;<br>+def mno_sse4a : Flag<["-"], "mno-sse4a">, Group<m_x86_Features_Group>;<br>+def mno_sse4 : Flag<["-"], "mno-sse4">, Group<m_x86_Features_Group>;<br>+def mno_sse4_1 : Flag<["-"], "mno-sse4.1">, Group<m_x86_Features_Group>;<br>+def mno_sse4_2 : Flag<["-"], "mno-sse4.2">, Group<m_x86_Features_Group>;<br>+def mno_sse : Flag<["-"], "mno-sse">, Group<m_x86_Features_Group>;<br>+def mno_ssse3 : Flag<["-"], "mno-ssse3">, Group<m_x86_Features_Group>;<br>+def mno_aes : Flag<["-"], "mno-aes">, Group<m_x86_Features_Group>;<br>+def mno_avx : Flag<["-"], "mno-avx">, Group<m_x86_Features_Group>;<br>+def mno_avx2 : Flag<["-"], "mno-avx2">, Group<m_x86_Features_Group>;<br>+def mno_pclmul : Flag<["-"], "mno-pclmul">, Group<m_x86_Features_Group>;<br>+def mno_lzcnt : Flag<["-"], "mno-lzcnt">, Group<m_x86_Features_Group>;<br>+def mno_rdrnd : Flag<["-"], "mno-rdrnd">, Group<m_x86_Features_Group>;<br>+def mno_bmi : Flag<["-"], "mno-bmi">, Group<m_x86_Features_Group>;<br>+def mno_bmi2 : Flag<["-"], "mno-bmi2">, Group<m_x86_Features_Group>;<br>+def mno_popcnt : Flag<["-"], "mno-popcnt">, Group<m_x86_Features_Group>;<br>+def mno_fma4 : Flag<["-"], "mno-fma4">, Group<m_x86_Features_Group>;<br>+def mno_fma : Flag<["-"], "mno-fma">, Group<m_x86_Features_Group>;<br>+def mno_xop : Flag<["-"], "mno-xop">, Group<m_x86_Features_Group>;<br>+def mno_f16c : Flag<["-"], "mno-f16c">, Group<m_x86_Features_Group>;<br>+<br>+def mno_thumb : Flag<["-"], "mno-thumb">, Group<m_Group>;<br>+def marm : Flag<["-"], "marm">, Alias<mno_thumb>;<br>+<br>+def mno_warn_nonportable_cfstrings : Flag<["-"], "mno-warn-nonportable-cfstrings">, Group<m_Group>;<br>+def mno_omit_leaf_frame_pointer : Flag<["-"], "mno-omit-leaf-frame-pointer">, Group<f_Group>;<br>+def momit_leaf_frame_pointer : Flag<["-"], "momit-leaf-frame-pointer">, Group<f_Group>,<br>   HelpText<"Omit frame pointer setup for leaf functions.">, Flags<[CC1Option]>;<br>-def mpascal_strings : Flag<"-mpascal-strings">, Group<m_Group>;<br>-def mred_zone : Flag<"-mred-zone">, Group<m_Group>;<br>-def mregparm_EQ : Joined<"-mregparm=">, Group<m_Group>;<br>-def mrelax_all : Flag<"-mrelax-all">, Group<m_Group>, Flags<[CC1Option]>,<br>+def mpascal_strings : Flag<["-"], "mpascal-strings">, Group<m_Group>;<br>+def mred_zone : Flag<["-"], "mred-zone">, Group<m_Group>;<br>+def mregparm_EQ : Joined<["-"], "mregparm=">, Group<m_Group>;<br>+def mrelax_all : Flag<["-"], "mrelax-all">, Group<m_Group>, Flags<[CC1Option]>,<br>   HelpText<"(integrated-as) Relax all machine instructions">;<br>-def mrtd : Flag<"-mrtd">, Group<m_Group>, Flags<[CC1Option]>,<br>+def mrtd : Flag<["-"], "mrtd">, Group<m_Group>, Flags<[CC1Option]>,<br>   HelpText<"Make StdCall calling convention the default">;<br>-def msmall_data_threshold_EQ : Joined <"-msmall-data-threshold=">, Group<m_Group>;<br>-def msoft_float : Flag<"-msoft-float">, Group<m_Group>, Flags<[CC1Option]>,<br>+def msmall_data_threshold_EQ : Joined <["-"], "msmall-data-threshold=">, Group<m_Group>;<br>+def msoft_float : Flag<["-"], "msoft-float">, Group<m_Group>, Flags<[CC1Option]>,<br>   HelpText<"Use software floating point">;<br>-def mno_implicit_float : Flag<"-mno-implicit-float">, Group<m_Group>,<br>+def mno_implicit_float : Flag<["-"], "mno-implicit-float">, Group<m_Group>,<br>   HelpText<"Don't generate implicit floating point instructions">;<br>-def msse2 : Flag<"-msse2">, Group<m_x86_Features_Group>;<br>-def msse3 : Flag<"-msse3">, Group<m_x86_Features_Group>;<br>-def msse4a : Flag<"-msse4a">, Group<m_x86_Features_Group>;<br>-def msse4 : Flag<"-msse4">, Group<m_x86_Features_Group>;<br>-def msse4_1 : Flag<"-msse4.1">, Group<m_x86_Features_Group>;<br>-def msse4_2 : Flag<"-msse4.2">, Group<m_x86_Features_Group>;<br>-def msse : Flag<"-msse">, Group<m_x86_Features_Group>;<br>-def mssse3 : Flag<"-mssse3">, Group<m_x86_Features_Group>;<br>-def maes : Flag<"-maes">, Group<m_x86_Features_Group>;<br>-def mavx : Flag<"-mavx">, Group<m_x86_Features_Group>;<br>-def mavx2 : Flag<"-mavx2">, Group<m_x86_Features_Group>;<br>-def mpclmul : Flag<"-mpclmul">, Group<m_x86_Features_Group>;<br>-def mlzcnt : Flag<"-mlzcnt">, Group<m_x86_Features_Group>;<br>-def mrdrnd : Flag<"-mrdrnd">, Group<m_x86_Features_Group>;<br>-def mbmi : Flag<"-mbmi">, Group<m_x86_Features_Group>;<br>-def mbmi2 : Flag<"-mbmi2">, Group<m_x86_Features_Group>;<br>-def mpopcnt : Flag<"-mpopcnt">, Group<m_x86_Features_Group>;<br>-def mfma4 : Flag<"-mfma4">, Group<m_x86_Features_Group>;<br>-def mfma : Flag<"-mfma">, Group<m_x86_Features_Group>;<br>-def mxop : Flag<"-mxop">, Group<m_x86_Features_Group>;<br>-def mf16c : Flag<"-mf16c">, Group<m_x86_Features_Group>;<br>-def mips16 : Flag<"-mips16">, Group<m_Group>;<br>-def mno_mips16 : Flag<"-mno-mips16">, Group<m_Group>;<br>-def mdsp : Flag<"-mdsp">, Group<m_Group>;<br>-def mno_dsp : Flag<"-mno-dsp">, Group<m_Group>;<br>-def mdspr2 : Flag<"-mdspr2">, Group<m_Group>;<br>-def mno_dspr2 : Flag<"-mno-dspr2">, Group<m_Group>;<br>-def mips32 : Flag<"-mips32">, Group<mips_CPUs_Group>,<br>+def msse2 : Flag<["-"], "msse2">, Group<m_x86_Features_Group>;<br>+def msse3 : Flag<["-"], "msse3">, Group<m_x86_Features_Group>;<br>+def msse4a : Flag<["-"], "msse4a">, Group<m_x86_Features_Group>;<br>+def msse4 : Flag<["-"], "msse4">, Group<m_x86_Features_Group>;<br>+def msse4_1 : Flag<["-"], "msse4.1">, Group<m_x86_Features_Group>;<br>+def msse4_2 : Flag<["-"], "msse4.2">, Group<m_x86_Features_Group>;<br>+def msse : Flag<["-"], "msse">, Group<m_x86_Features_Group>;<br>+def mssse3 : Flag<["-"], "mssse3">, Group<m_x86_Features_Group>;<br>+def maes : Flag<["-"], "maes">, Group<m_x86_Features_Group>;<br>+def mavx : Flag<["-"], "mavx">, Group<m_x86_Features_Group>;<br>+def mavx2 : Flag<["-"], "mavx2">, Group<m_x86_Features_Group>;<br>+def mpclmul : Flag<["-"], "mpclmul">, Group<m_x86_Features_Group>;<br>+def mlzcnt : Flag<["-"], "mlzcnt">, Group<m_x86_Features_Group>;<br>+def mrdrnd : Flag<["-"], "mrdrnd">, Group<m_x86_Features_Group>;<br>+def mbmi : Flag<["-"], "mbmi">, Group<m_x86_Features_Group>;<br>+def mbmi2 : Flag<["-"], "mbmi2">, Group<m_x86_Features_Group>;<br>+def mpopcnt : Flag<["-"], "mpopcnt">, Group<m_x86_Features_Group>;<br>+def mfma4 : Flag<["-"], "mfma4">, Group<m_x86_Features_Group>;<br>+def mfma : Flag<["-"], "mfma">, Group<m_x86_Features_Group>;<br>+def mxop : Flag<["-"], "mxop">, Group<m_x86_Features_Group>;<br>+def mf16c : Flag<["-"], "mf16c">, Group<m_x86_Features_Group>;<br>+def mips16 : Flag<["-"], "mips16">, Group<m_Group>;<br>+def mno_mips16 : Flag<["-"], "mno-mips16">, Group<m_Group>;<br>+def mdsp : Flag<["-"], "mdsp">, Group<m_Group>;<br>+def mno_dsp : Flag<["-"], "mno-dsp">, Group<m_Group>;<br>+def mdspr2 : Flag<["-"], "mdspr2">, Group<m_Group>;<br>+def mno_dspr2 : Flag<["-"], "mno-dspr2">, Group<m_Group>;<br>+def mips32 : Flag<["-"], "mips32">, Group<mips_CPUs_Group>,<br>   HelpText<"Equivalent to -march=mips32">;<br>-def mips32r2 : Flag<"-mips32r2">, Group<mips_CPUs_Group>,<br>+def mips32r2 : Flag<["-"], "mips32r2">, Group<mips_CPUs_Group>,<br>   HelpText<"Equivalent to -march=mips32r2">;<br>-def mips64 : Flag<"-mips64">, Group<mips_CPUs_Group>,<br>+def mips64 : Flag<["-"], "mips64">, Group<mips_CPUs_Group>,<br>   HelpText<"Equivalent to -march=mips64">;<br>-def mips64r2 : Flag<"-mips64r2">, Group<mips_CPUs_Group>,<br>+def mips64r2 : Flag<["-"], "mips64r2">, Group<mips_CPUs_Group>,<br>   HelpText<"Equivalent to -march=mips64r2">;<br>-def mthumb : Flag<"-mthumb">, Group<m_Group>;<br>-def mtune_EQ : Joined<"-mtune=">, Group<m_Group>;<br>-def multi__module : Flag<"-multi_module">;<br>-def multiply__defined__unused : Separate<"-multiply_defined_unused">;<br>-def multiply__defined : Separate<"-multiply_defined">;<br>-def mwarn_nonportable_cfstrings : Flag<"-mwarn-nonportable-cfstrings">, Group<m_Group>;<br>-def m_Separate : Separate<"-m">, Group<m_Group>;<br>-def m_Joined : Joined<"-m">, Group<m_Group>;<br>-def no_canonical_prefixes : Flag<"-no-canonical-prefixes">, Flags<[HelpHidden]>,<br>+def mthumb : Flag<["-"], "mthumb">, Group<m_Group>;<br>+def mtune_EQ : Joined<["-"], "mtune=">, Group<m_Group>;<br>+def multi__module : Flag<["-"], "multi_module">;<br>+def multiply__defined__unused : Separate<["-"], "multiply_defined_unused">;<br>+def multiply__defined : Separate<["-"], "multiply_defined">;<br>+def mwarn_nonportable_cfstrings : Flag<["-"], "mwarn-nonportable-cfstrings">, Group<m_Group>;<br>+def m_Separate : Separate<["-"], "m">, Group<m_Group>;<br>+def m_Joined : Joined<["-"], "m">, Group<m_Group>;<br>+def no_canonical_prefixes : Flag<["-"], "no-canonical-prefixes">, Flags<[HelpHidden]>,<br>   HelpText<"Use relative instead of canonical paths">;<br>-def no_cpp_precomp : Flag<"-no-cpp-precomp">, Group<clang_ignored_f_Group>;<br>-def no_integrated_as : Flag<"-no-integrated-as">, Flags<[DriverOption]>;<br>-def no_integrated_cpp : Flag<"-no-integrated-cpp">, Flags<[DriverOption]>;<br>-def no_pedantic : Flag<"-no-pedantic">, Group<pedantic_Group>;<br>-def no__dead__strip__inits__and__terms : Flag<"-no_dead_strip_inits_and_terms">;<br>-def nobuiltininc : Flag<"-nobuiltininc">, Flags<[CC1Option]>,<br>+def no_cpp_precomp : Flag<["-"], "no-cpp-precomp">, Group<clang_ignored_f_Group>;<br>+def no_integrated_as : Flag<["-"], "no-integrated-as">, Flags<[DriverOption]>;<br>+def no_integrated_cpp : Flag<["-", "--"], "no-integrated-cpp">, Flags<[DriverOption]>;<br>+def no_pedantic : Flag<["-", "--"], "no-pedantic">, Group<pedantic_Group>;<br>+def no__dead__strip__inits__and__terms : Flag<["-"], "no_dead_strip_inits_and_terms">;<br>+def nobuiltininc : Flag<["-"], "nobuiltininc">, Flags<[CC1Option]>,<br>   HelpText<"Disable builtin #include directories">;<br>-def nodefaultlibs : Flag<"-nodefaultlibs">;<br>-def nofixprebinding : Flag<"-nofixprebinding">;<br>-def nolibc : Flag<"-nolibc">;<br>-def nomultidefs : Flag<"-nomultidefs">;<br>-def noprebind : Flag<"-noprebind">;<br>-def noseglinkedit : Flag<"-noseglinkedit">;<br>-def nostartfiles : Flag<"-nostartfiles">;<br>-def nostdinc : Flag<"-nostdinc">;<br>-def nostdlibinc : Flag<"-nostdlibinc">;<br>-def nostdincxx : Flag<"-nostdinc++">, Flags<[CC1Option]>,<br>+def nodefaultlibs : Flag<["-"], "nodefaultlibs">;<br>+def nofixprebinding : Flag<["-"], "nofixprebinding">;<br>+def nolibc : Flag<["-"], "nolibc">;<br>+def nomultidefs : Flag<["-"], "nomultidefs">;<br>+def noprebind : Flag<["-"], "noprebind">;<br>+def noseglinkedit : Flag<["-"], "noseglinkedit">;<br>+def nostartfiles : Flag<["-"], "nostartfiles">;<br>+def nostdinc : Flag<["-"], "nostdinc">;<br>+def nostdlibinc : Flag<["-"], "nostdlibinc">;<br>+def nostdincxx : Flag<["-"], "nostdinc++">, Flags<[CC1Option]>,<br>   HelpText<"Disable standard #include directories for the C++ standard library">;<br>-def nostdlib : Flag<"-nostdlib">;<br>-def object : Flag<"-object">;<br>-def o : JoinedOrSeparate<"-o">, Flags<[DriverOption, RenderAsInput, CC1Option]>,<br>+def nostdlib : Flag<["-"], "nostdlib">;<br>+def object : Flag<["-"], "object">;<br>+def o : JoinedOrSeparate<["-"], "o">, Flags<[DriverOption, RenderAsInput, CC1Option]>,<br>   HelpText<"Write output to <file>">, MetaVarName<"<file>">;<br>-def pagezero__size : JoinedOrSeparate<"-pagezero_size">;<br>-def pass_exit_codes : Flag<"-pass-exit-codes">, Flags<[Unsupported]>;<br>-def pedantic_errors : Flag<"-pedantic-errors">, Group<pedantic_Group>, Flags<[CC1Option]>;<br>-def pedantic : Flag<"-pedantic">, Group<pedantic_Group>, Flags<[CC1Option]>;<br>-def pg : Flag<"-pg">, HelpText<"Enable mcount instrumentation">, Flags<[CC1Option]>;<br>-def pipe : Flag<"-pipe">,<br>+def pagezero__size : JoinedOrSeparate<["-"], "pagezero_size">;<br>+def pass_exit_codes : Flag<["-", "--"], "pass-exit-codes">, Flags<[Unsupported]>;<br>+def pedantic_errors : Flag<["-", "--"], "pedantic-errors">, Group<pedantic_Group>, Flags<[CC1Option]>;<br>+def pedantic : Flag<["-", "--"], "pedantic">, Group<pedantic_Group>, Flags<[CC1Option]>;<br>+def pg : Flag<["-"], "pg">, HelpText<"Enable mcount instrumentation">, Flags<[CC1Option]>;<br>+def pipe : Flag<["-", "--"], "pipe">,<br>   HelpText<"Use pipes between commands, when possible">;<br>-def prebind__all__twolevel__modules : Flag<"-prebind_all_twolevel_modules">;<br>-def prebind : Flag<"-prebind">;<br>-def preload : Flag<"-preload">;<br>-def print_file_name_EQ : Joined<"-print-file-name=">,<br>+def prebind__all__twolevel__modules : Flag<["-"], "prebind_all_twolevel_modules">;<br>+def prebind : Flag<["-"], "prebind">;<br>+def preload : Flag<["-"], "preload">;<br>+def print_file_name_EQ : Joined<["-", "--"], "print-file-name=">,<br>   HelpText<"Print the full library path of <file>">, MetaVarName<"<file>">;<br>-def print_ivar_layout : Flag<"-print-ivar-layout">, Flags<[CC1Option]>,<br>+def print_ivar_layout : Flag<["-"], "print-ivar-layout">, Flags<[CC1Option]>,<br>   HelpText<"Enable Objective-C Ivar layout bitmap print trace">;<br>-def print_libgcc_file_name : Flag<"-print-libgcc-file-name">,<br>+def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">,<br>   HelpText<"Print the library path for \"libgcc.a\"">;<br>-def print_multi_directory : Flag<"-print-multi-directory">;<br>-def print_multi_lib : Flag<"-print-multi-lib">;<br>-def print_multi_os_directory : Flag<"-print-multi-os-directory">;<br>-def print_prog_name_EQ : Joined<"-print-prog-name=">,<br>+def print_multi_directory : Flag<["-", "--"], "print-multi-directory">;<br>+def print_multi_lib : Flag<["-", "--"], "print-multi-lib">;<br>+def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">;<br>+def print_prog_name_EQ : Joined<["-", "--"], "print-prog-name=">,<br>   HelpText<"Print the full program path of <name>">, MetaVarName<"<name>">;<br>-def print_search_dirs : Flag<"-print-search-dirs">,<br>+def print_search_dirs : Flag<["-", "--"], "print-search-dirs">,<br>   HelpText<"Print the paths used for finding libraries and programs">;<br>-def private__bundle : Flag<"-private_bundle">;<br>-def pthreads : Flag<"-pthreads">;<br>-def pthread : Flag<"-pthread">, Flags<[CC1Option]>,<br>+def private__bundle : Flag<["-"], "private_bundle">;<br>+def pthreads : Flag<["-"], "pthreads">;<br>+def pthread : Flag<["-"], "pthread">, Flags<[CC1Option]>,<br>   HelpText<"Support POSIX threads in generated code">;<br>-def p : Flag<"-p">;<br>-def pie : Flag<"-pie">;<br>-def read__only__relocs : Separate<"-read_only_relocs">;<br>-def remap : Flag<"-remap">;<br>-def rewrite_objc : Flag<"-rewrite-objc">, Flags<[DriverOption,CC1Option]>,<br>+def p : Flag<["-"], "p">;<br>+def pie : Flag<["-"], "pie">;<br>+def read__only__relocs : Separate<["-"], "read_only_relocs">;<br>+def remap : Flag<["-"], "remap">;<br>+def rewrite_objc : Flag<["-"], "rewrite-objc">, Flags<[DriverOption,CC1Option]>,<br>   HelpText<"Rewrite Objective-C source to C++">, Group<Action_Group>;<br>-def rewrite_legacy_objc : Flag<"-rewrite-legacy-objc">, Flags<[DriverOption]>,<br>+def rewrite_legacy_objc : Flag<["-"], "rewrite-legacy-objc">, Flags<[DriverOption]>,<br>   HelpText<"Rewrite Legacy Objective-C source to C++">;<br>-def rdynamic : Flag<"-rdynamic">;<br>-def rpath : Separate<"-rpath">, Flags<[LinkerInput]>;<br>-def rtlib_EQ : Joined<"-rtlib=">;<br>-def r : Flag<"-r">;<br>-def save_temps : Flag<"-save-temps">, Flags<[DriverOption]>,<br>+def rdynamic : Flag<["-"], "rdynamic">;<br>+def rpath : Separate<["-"], "rpath">, Flags<[LinkerInput]>;<br>+def rtlib_EQ : Joined<["-", "--"], "rtlib=">;<br>+def r : Flag<["-"], "r">;<br>+def save_temps : Flag<["-", "--"], "save-temps">, Flags<[DriverOption]>,<br>   HelpText<"Save intermediate compilation results">;<br>-def sectalign : MultiArg<"-sectalign", 3>;<br>-def sectcreate : MultiArg<"-sectcreate", 3>;<br>-def sectobjectsymbols : MultiArg<"-sectobjectsymbols", 2>;<br>-def sectorder : MultiArg<"-sectorder", 3>;<br>-def seg1addr : JoinedOrSeparate<"-seg1addr">;<br>-def seg__addr__table__filename : Separate<"-seg_addr_table_filename">;<br>-def seg__addr__table : Separate<"-seg_addr_table">;<br>-def segaddr : MultiArg<"-segaddr", 2>;<br>-def segcreate : MultiArg<"-segcreate", 3>;<br>-def seglinkedit : Flag<"-seglinkedit">;<br>-def segprot : MultiArg<"-segprot", 3>;<br>-def segs__read__only__addr : Separate<"-segs_read_only_addr">;<br>-def segs__read__write__addr : Separate<"-segs_read_write_addr">;<br>-def segs__read__ : Joined<"-segs_read_">;<br>-def shared_libgcc : Flag<"-shared-libgcc">;<br>-def shared : Flag<"-shared">;<br>-def single__module : Flag<"-single_module">;<br>-def specs_EQ : Joined<"-specs=">;<br>-def specs : Separate<"-specs">, Flags<[Unsupported]>;<br>-def static_libgcc : Flag<"-static-libgcc">;<br>-def static_libstdcxx : Flag<"-static-libstdc++">;<br>-def static : Flag<"-static">, Flags<[NoArgumentUnused]>;<br>-def std_default_EQ : Joined<"-std-default=">;<br>-def std_EQ : Joined<"-std=">, Flags<[CC1Option]>, Group<L_Group>,<br>+def sectalign : MultiArg<["-"], "sectalign", 3>;<br>+def sectcreate : MultiArg<["-"], "sectcreate", 3>;<br>+def sectobjectsymbols : MultiArg<["-"], "sectobjectsymbols", 2>;<br>+def sectorder : MultiArg<["-"], "sectorder", 3>;<br>+def seg1addr : JoinedOrSeparate<["-"], "seg1addr">;<br>+def seg__addr__table__filename : Separate<["-"], "seg_addr_table_filename">;<br>+def seg__addr__table : Separate<["-"], "seg_addr_table">;<br>+def segaddr : MultiArg<["-"], "segaddr", 2>;<br>+def segcreate : MultiArg<["-"], "segcreate", 3>;<br>+def seglinkedit : Flag<["-"], "seglinkedit">;<br>+def segprot : MultiArg<["-"], "segprot", 3>;<br>+def segs__read__only__addr : Separate<["-"], "segs_read_only_addr">;<br>+def segs__read__write__addr : Separate<["-"], "segs_read_write_addr">;<br>+def segs__read__ : Joined<["-"], "segs_read_">;<br>+def shared_libgcc : Flag<["-"], "shared-libgcc">;<br>+def shared : Flag<["-", "--"], "shared">;<br>+def single__module : Flag<["-"], "single_module">;<br>+def specs_EQ : Joined<["-", "--"], "specs=">;<br>+def specs : Separate<["-", "--"], "specs">, Flags<[Unsupported]>;<br>+def static_libgcc : Flag<["-"], "static-libgcc">;<br>+def static_libstdcxx : Flag<["-"], "static-libstdc++">;<br>+def static : Flag<["-", "--"], "static">, Flags<[NoArgumentUnused]>;<br>+def std_default_EQ : Joined<["-"], "std-default=">;<br>+def std_EQ : Joined<["-", "--"], "std=">, Flags<[CC1Option]>, Group<L_Group>,<br>   HelpText<"Language standard to compile for">;<br>-def stdlib_EQ : Joined<"-stdlib=">, Flags<[CC1Option]>,<br>+def stdlib_EQ : Joined<["-", "--"], "stdlib=">, Flags<[CC1Option]>,<br>   HelpText<"C++ standard library to use">;<br>-def sub__library : JoinedOrSeparate<"-sub_library">;<br>-def sub__umbrella : JoinedOrSeparate<"-sub_umbrella">;<br>-def s : Flag<"-s">;<br>-def target : Separate<"-target">, Flags<[DriverOption]>,<br>+def sub__library : JoinedOrSeparate<["-"], "sub_library">;<br>+def sub__umbrella : JoinedOrSeparate<["-"], "sub_umbrella">;<br>+def s : Flag<["-"], "s">;<br>+def target : Separate<["-"], "target">, Flags<[DriverOption]>,<br>   HelpText<"Generate code for the given target">;<br>-def gcc_toolchain : Separate<"-gcc-toolchain">, Flags<[DriverOption]>,<br>+def gcc_toolchain : Separate<["-"], "gcc-toolchain">, Flags<[DriverOption]>,<br>   HelpText<"Use the gcc toolchain at the given directory">;<br> // We should deprecate the use of -ccc-host-triple, and then remove.<br>-def ccc_host_triple : Separate<"-ccc-host-triple">, Alias<target>;<br>-def time : Flag<"-time">,<br>+def ccc_host_triple : Separate<["-"], "ccc-host-triple">, Alias<target>;<br>+def time : Flag<["-"], "time">,<br>   HelpText<"Time individual commands">;<br>-def traditional_cpp : Flag<"-traditional-cpp">, Flags<[CC1Option]>,<br>+def traditional_cpp : Flag<["-", "--"], "traditional-cpp">, Flags<[CC1Option]>,<br>   HelpText<"Enable some traditional CPP emulation">;<br>-def traditional : Flag<"-traditional">;<br>-def trigraphs : Flag<"-trigraphs">, Flags<[CC1Option]>,<br>+def traditional : Flag<["-", "--"], "traditional">;<br>+def trigraphs : Flag<["-", "--"], "trigraphs">, Flags<[CC1Option]>,<br>   HelpText<"Process trigraph sequences">;<br>-def twolevel__namespace__hints : Flag<"-twolevel_namespace_hints">;<br>-def twolevel__namespace : Flag<"-twolevel_namespace">;<br>-def t : Flag<"-t">;<br>-def umbrella : Separate<"-umbrella">;<br>-def undefined : JoinedOrSeparate<"-undefined">, Group<u_Group>;<br>-def undef : Flag<"-undef">, Group<u_Group>, Flags<[CC1Option]>,<br>+def twolevel__namespace__hints : Flag<["-"], "twolevel_namespace_hints">;<br>+def twolevel__namespace : Flag<["-"], "twolevel_namespace">;<br>+def t : Flag<["-"], "t">;<br>+def umbrella : Separate<["-"], "umbrella">;<br>+def undefined : JoinedOrSeparate<["-"], "undefined">, Group<u_Group>;<br>+def undef : Flag<["-"], "undef">, Group<u_Group>, Flags<[CC1Option]>,<br>   HelpText<"undef all system defines">;<br>-def unexported__symbols__list : Separate<"-unexported_symbols_list">;<br>-def u : JoinedOrSeparate<"-u">, Group<u_Group>;<br>-def use_gold_plugin : Flag<"-use-gold-plugin">;<br>-def v : Flag<"-v">, Flags<[CC1Option]>,<br>+def unexported__symbols__list : Separate<["-"], "unexported_symbols_list">;<br>+def u : JoinedOrSeparate<["-"], "u">, Group<u_Group>;<br>+def use_gold_plugin : Flag<["-"], "use-gold-plugin">;<br>+def v : Flag<["-"], "v">, Flags<[CC1Option]>,<br>   HelpText<"Show commands to run and use verbose output">;<br>-def verify : Flag<"-verify">, Flags<[DriverOption,CC1Option]>,<br>+def verify : Flag<["-"], "verify">, Flags<[DriverOption,CC1Option]>,<br>   HelpText<"Verify output using a verifier.">;<br>-def weak_l : Joined<"-weak-l">, Flags<[LinkerInput]>;<br>-def weak__framework : Separate<"-weak_framework">, Flags<[LinkerInput]>;<br>-def weak__library : Separate<"-weak_library">, Flags<[LinkerInput]>;<br>-def weak__reference__mismatches : Separate<"-weak_reference_mismatches">;<br>-def whatsloaded : Flag<"-whatsloaded">;<br>-def whyload : Flag<"-whyload">;<br>-def w : Flag<"-w">, HelpText<"Suppress all warnings.">, Flags<[CC1Option]>;<br>-def x : JoinedOrSeparate<"-x">, Flags<[DriverOption,CC1Option]>,<br>+def weak_l : Joined<["-"], "weak-l">, Flags<[LinkerInput]>;<br>+def weak__framework : Separate<["-"], "weak_framework">, Flags<[LinkerInput]>;<br>+def weak__library : Separate<["-"], "weak_library">, Flags<[LinkerInput]>;<br>+def weak__reference__mismatches : Separate<["-"], "weak_reference_mismatches">;<br>+def whatsloaded : Flag<["-"], "whatsloaded">;<br>+def whyload : Flag<["-"], "whyload">;<br>+def w : Flag<["-"], "w">, HelpText<"Suppress all warnings.">, Flags<[CC1Option]>;<br>+def x : JoinedOrSeparate<["-"], "x">, Flags<[DriverOption,CC1Option]>,<br>   HelpText<"Treat subsequent input files as having type <language>">,<br>   MetaVarName<"<language>">;<br>-def y : Joined<"-y">;<br>+def y : Joined<["-"], "y">;<br><br>-def working_directory : JoinedOrSeparate<"-working-directory">, Flags<[CC1Option]>,<br>+def working_directory : JoinedOrSeparate<["-"], "working-directory">, Flags<[CC1Option]>,<br>   HelpText<"Resolve file paths relative to the specified directory">;<br>-def working_directory_EQ : Joined<"-working-directory=">, Flags<[CC1Option]>,<br>+def working_directory_EQ : Joined<["-"], "working-directory=">, Flags<[CC1Option]>,<br>   Alias<working_directory>;<br><br> // Double dash options, which are usually an alias for one of the previous<br> // options.<br><br>-def _CLASSPATH_EQ : Joined<"--CLASSPATH=">, Alias<fclasspath_EQ>;<br>-def _CLASSPATH : Separate<"--CLASSPATH">, Alias<fclasspath_EQ>;<br>-def _all_warnings : Flag<"--all-warnings">, Alias<Wall>;<br>-def _analyze_auto : Flag<"--analyze-auto">, Flags<[DriverOption]>;<br>-def _analyzer_no_default_checks : Flag<"--analyzer-no-default-checks">, Flags<[DriverOption]>;<br>-def _analyzer_output : JoinedOrSeparate<"--analyzer-output">, Flags<[DriverOption]>;<br>-def _analyze : Flag<"--analyze">, Flags<[DriverOption]>,<br>+def _CLASSPATH_EQ : Joined<["--"], "CLASSPATH=">, Alias<fclasspath_EQ>;<br>+def _CLASSPATH : Separate<["--"], "CLASSPATH">, Alias<fclasspath_EQ>;<br>+def _all_warnings : Flag<["--"], "all-warnings">, Alias<Wall>;<br>+def _analyze_auto : Flag<["--"], "analyze-auto">, Flags<[DriverOption]>;<br>+def _analyzer_no_default_checks : Flag<["--"], "analyzer-no-default-checks">, Flags<[DriverOption]>;<br>+def _analyzer_output : JoinedOrSeparate<["--"], "analyzer-output">, Flags<[DriverOption]>;<br>+def _analyze : Flag<["--"], "analyze">, Flags<[DriverOption]>,<br>   HelpText<"Run the static analyzer">;<br>-def _ansi : Flag<"--ansi">, Alias<ansi>;<br>-def _assemble : Flag<"--assemble">, Alias<S>;<br>-def _assert_EQ : Joined<"--assert=">, Alias<A>;<br>-def _assert : Separate<"--assert">, Alias<A>;<br>-def _bootclasspath_EQ : Joined<"--bootclasspath=">, Alias<fbootclasspath_EQ>;<br>-def _bootclasspath : Separate<"--bootclasspath">, Alias<fbootclasspath_EQ>;<br>-def _classpath_EQ : Joined<"--classpath=">, Alias<fclasspath_EQ>;<br>-def _classpath : Separate<"--classpath">, Alias<fclasspath_EQ>;<br>-def _combine : Flag<"--combine">, Alias<combine>;<br>-def _comments_in_macros : Flag<"--comments-in-macros">, Alias<CC>;<br>-def _comments : Flag<"--comments">, Alias<C>;<br>-def _compile : Flag<"--compile">, Alias<c>;<br>-def _constant_cfstrings : Flag<"--constant-cfstrings">;<br>-def _coverage : Flag<"--coverage">, Alias<coverage>;<br>-def _debug_EQ : Joined<"--debug=">, Alias<g_Flag>;<br>-def _debug : Flag<"--debug">, Alias<g_Flag>;<br>-def _define_macro_EQ : Joined<"--define-macro=">, Alias<D>;<br>-def _define_macro : Separate<"--define-macro">, Alias<D>;<br>-def _dependencies : Flag<"--dependencies">, Alias<M>;<br>-def _encoding_EQ : Joined<"--encoding=">, Alias<fencoding_EQ>;<br>-def _encoding : Separate<"--encoding">, Alias<fencoding_EQ>;<br>-def _entry : Flag<"--entry">, Alias<e>;<br>-def _extdirs_EQ : Joined<"--extdirs=">, Alias<fextdirs_EQ>;<br>-def _extdirs : Separate<"--extdirs">, Alias<fextdirs_EQ>;<br>-def _extra_warnings : Flag<"--extra-warnings">, Alias<W_Joined>;<br>-def _for_linker_EQ : Joined<"--for-linker=">, Alias<Xlinker>;<br>-def _for_linker : Separate<"--for-linker">, Alias<Xlinker>;<br>-def _force_link_EQ : Joined<"--force-link=">, Alias<u>;<br>-def _force_link : Separate<"--force-link">, Alias<u>;<br>-def _help_hidden : Flag<"--help-hidden">;<br>-def _help : Flag<"--help">, Alias<help>;<br>-def _imacros_EQ : Joined<"--imacros=">, Alias<imacros>;<br>-def _imacros : Separate<"--imacros">, Alias<imacros>;<br>-def _include_barrier : Flag<"--include-barrier">, Alias<I_>;<br>-def _include_directory_after_EQ : Joined<"--include-directory-after=">, Alias<idirafter>;<br>-def _include_directory_after : Separate<"--include-directory-after">, Alias<idirafter>;<br>-def _include_directory_EQ : Joined<"--include-directory=">, Alias<I>;<br>-def _include_directory : Separate<"--include-directory">, Alias<I>;<br>-def _include_prefix_EQ : Joined<"--include-prefix=">, Alias<iprefix>;<br>-def _include_prefix : Separate<"--include-prefix">, Alias<iprefix>;<br>-def _include_with_prefix_after_EQ : Joined<"--include-with-prefix-after=">, Alias<iwithprefix>;<br>-def _include_with_prefix_after : Separate<"--include-with-prefix-after">, Alias<iwithprefix>;<br>-def _include_with_prefix_before_EQ : Joined<"--include-with-prefix-before=">, Alias<iwithprefixbefore>;<br>-def _include_with_prefix_before : Separate<"--include-with-prefix-before">, Alias<iwithprefixbefore>;<br>-def _include_with_prefix_EQ : Joined<"--include-with-prefix=">, Alias<iwithprefix>;<br>-def _include_with_prefix : Separate<"--include-with-prefix">, Alias<iwithprefix>;<br>-def _include_EQ : Joined<"--include=">, Alias<include_>;<br>-def _include : Separate<"--include">, Alias<include_>;<br>-def _language_EQ : Joined<"--language=">, Alias<x>;<br>-def _language : Separate<"--language">, Alias<x>;<br>-def _library_directory_EQ : Joined<"--library-directory=">, Alias<L>;<br>-def _library_directory : Separate<"--library-directory">, Alias<L>;<br>-def _machine__EQ : Joined<"--machine-=">, Alias<m_Joined>;<br>-def _machine_ : Joined<"--machine-">, Alias<m_Joined>;<br>-def _machine_EQ : Joined<"--machine=">, Alias<m_Joined>;<br>-def _machine : Separate<"--machine">, Alias<m_Joined>;<br>-def _no_integrated_cpp : Flag<"--no-integrated-cpp">, Alias<no_integrated_cpp>;<br>-def _no_line_commands : Flag<"--no-line-commands">, Alias<P>;<br>-def _no_pedantic : Flag<"--no-pedantic">, Alias<no_pedantic>;<br>-def _no_standard_includes : Flag<"--no-standard-includes">, Alias<nostdinc>;<br>-def _no_standard_libraries : Flag<"--no-standard-libraries">, Alias<nostdlib>;<br>-def _no_undefined : Flag<"--no-undefined">, Flags<[LinkerInput]>;<br>-def _no_warnings : Flag<"--no-warnings">, Alias<w>;<br>-def _optimize_EQ : Joined<"--optimize=">, Alias<O>;<br>-def _optimize : Flag<"--optimize">, Alias<O>;<br>-def _output_class_directory_EQ : Joined<"--output-class-directory=">, Alias<foutput_class_dir_EQ>;<br>-def _output_class_directory : Separate<"--output-class-directory">, Alias<foutput_class_dir_EQ>;<br>-def _output_EQ : Joined<"--output=">, Alias<o>;<br>-def _output : Separate<"--output">, Alias<o>;<br>-def _param : Separate<"--param">;<br>-def _param_EQ : Joined<"--param=">, Alias<_param>;<br>-def _pass_exit_codes : Flag<"--pass-exit-codes">, Alias<pass_exit_codes>;<br>-def _pedantic_errors : Flag<"--pedantic-errors">, Alias<pedantic_errors>;<br>-def _pedantic : Flag<"--pedantic">, Alias<pedantic>;<br>-def _pipe : Flag<"--pipe">, Alias<pipe>;<br>-def _prefix_EQ : Joined<"--prefix=">, Alias<B>;<br>-def _prefix : Separate<"--prefix">, Alias<B>;<br>-def _preprocess : Flag<"--preprocess">, Alias<E>;<br>-def _print_diagnostic_categories : Flag<"--print-diagnostic-categories">;<br>-def _print_file_name_EQ : Joined<"--print-file-name=">, Alias<print_file_name_EQ>;<br>-def _print_file_name : Separate<"--print-file-name">, Alias<print_file_name_EQ>;<br>-def _print_libgcc_file_name : Flag<"--print-libgcc-file-name">, Alias<print_libgcc_file_name>;<br>-def _print_missing_file_dependencies : Flag<"--print-missing-file-dependencies">, Alias<MG>;<br>-def _print_multi_directory : Flag<"--print-multi-directory">, Alias<print_multi_directory>;<br>-def _print_multi_lib : Flag<"--print-multi-lib">, Alias<print_multi_lib>;<br>-def _print_multi_os_directory : Flag<"--print-multi-os-directory">, Alias<print_multi_os_directory>;<br>-def _print_prog_name_EQ : Joined<"--print-prog-name=">, Alias<print_prog_name_EQ>;<br>-def _print_prog_name : Separate<"--print-prog-name">, Alias<print_prog_name_EQ>;<br>-def _print_search_dirs : Flag<"--print-search-dirs">, Alias<print_search_dirs>;<br>-def _profile_blocks : Flag<"--profile-blocks">, Alias<a>;<br>-def _profile : Flag<"--profile">, Alias<p>;<br>-def _relocatable_pch : Flag<"--relocatable-pch">,<br>-  HelpText<"Build a relocatable precompiled header">;<br>-def _resource_EQ : Joined<"--resource=">, Alias<fcompile_resource_EQ>;<br>-def _resource : Separate<"--resource">, Alias<fcompile_resource_EQ>;<br>-def _rtlib_EQ : Joined<"--rtlib=">, Alias<rtlib_EQ>;<br>-def _rtlib : Separate<"--rtlib">, Alias<rtlib_EQ>;<br>-def _save_temps : Flag<"--save-temps">, Alias<save_temps>;<br>-def _serialize_diags : Separate<"--serialize-diagnostics">, Flags<[DriverOption]>,<br>+def _assemble : Flag<["--"], "assemble">, Alias<S>;<br>+def _assert_EQ : Joined<["--"], "assert=">, Alias<A>;<br>+def _assert : Separate<["--"], "assert">, Alias<A>;<br>+def _bootclasspath_EQ : Joined<["--"], "bootclasspath=">, Alias<fbootclasspath_EQ>;<br>+def _bootclasspath : Separate<["--"], "bootclasspath">, Alias<fbootclasspath_EQ>;<br>+def _classpath_EQ : Joined<["--"], "classpath=">, Alias<fclasspath_EQ>;<br>+def _classpath : Separate<["--"], "classpath">, Alias<fclasspath_EQ>;<br>+def _comments_in_macros : Flag<["--"], "comments-in-macros">, Alias<CC>;<br>+def _comments : Flag<["--"], "comments">, Alias<C>;<br>+def _compile : Flag<["--"], "compile">, Alias<c>;<br>+def _constant_cfstrings : Flag<["--"], "constant-cfstrings">;<br>+def _debug_EQ : Joined<["--"], "debug=">, Alias<g_Flag>;<br>+def _debug : Flag<["--"], "debug">, Alias<g_Flag>;<br>+def _define_macro_EQ : Joined<["--"], "define-macro=">, Alias<D>;<br>+def _define_macro : Separate<["--"], "define-macro">, Alias<D>;<br>+def _dependencies : Flag<["--"], "dependencies">, Alias<M>;<br>+def _encoding_EQ : Joined<["--"], "encoding=">, Alias<fencoding_EQ>;<br>+def _encoding : Separate<["--"], "encoding">, Alias<fencoding_EQ>;<br>+def _entry : Flag<["--"], "entry">, Alias<e>;<br>+def _extdirs_EQ : Joined<["--"], "extdirs=">, Alias<fextdirs_EQ>;<br>+def _extdirs : Separate<["--"], "extdirs">, Alias<fextdirs_EQ>;<br>+def _extra_warnings : Flag<["--"], "extra-warnings">, Alias<W_Joined>;<br>+def _for_linker_EQ : Joined<["--"], "for-linker=">, Alias<Xlinker>;<br>+def _for_linker : Separate<["--"], "for-linker">, Alias<Xlinker>;<br>+def _force_link_EQ : Joined<["--"], "force-link=">, Alias<u>;<br>+def _force_link : Separate<["--"], "force-link">, Alias<u>;<br>+def _help_hidden : Flag<["--"], "help-hidden">;<br>+def _imacros_EQ : Joined<["--"], "imacros=">, Alias<imacros>;<br>+def _include_barrier : Flag<["--"], "include-barrier">, Alias<I_>;<br>+def _include_directory_after_EQ : Joined<["--"], "include-directory-after=">, Alias<idirafter>;<br>+def _include_directory_after : Separate<["--"], "include-directory-after">, Alias<idirafter>;<br>+def _include_directory_EQ : Joined<["--"], "include-directory=">, Alias<I>;<br>+def _include_directory : Separate<["--"], "include-directory">, Alias<I>;<br>+def _include_prefix_EQ : Joined<["--"], "include-prefix=">, Alias<iprefix>;<br>+def _include_prefix : Separate<["--"], "include-prefix">, Alias<iprefix>;<br>+def _include_with_prefix_after_EQ : Joined<["--"], "include-with-prefix-after=">, Alias<iwithprefix>;<br>+def _include_with_prefix_after : Separate<["--"], "include-with-prefix-after">, Alias<iwithprefix>;<br>+def _include_with_prefix_before_EQ : Joined<["--"], "include-with-prefix-before=">, Alias<iwithprefixbefore>;<br>+def _include_with_prefix_before : Separate<["--"], "include-with-prefix-before">, Alias<iwithprefixbefore>;<br>+def _include_with_prefix_EQ : Joined<["--"], "include-with-prefix=">, Alias<iwithprefix>;<br>+def _include_with_prefix : Separate<["--"], "include-with-prefix">, Alias<iwithprefix>;<br>+def _include_EQ : Joined<["--"], "include=">, Alias<include_>;<br>+def _language_EQ : Joined<["--"], "language=">, Alias<x>;<br>+def _language : Separate<["--"], "language">, Alias<x>;<br>+def _library_directory_EQ : Joined<["--"], "library-directory=">, Alias<L>;<br>+def _library_directory : Separate<["--"], "library-directory">, Alias<L>;<br>+def _machine__EQ : Joined<["--"], "machine-=">, Alias<m_Joined>;<br>+def _machine_ : Joined<["--"], "machine-">, Alias<m_Joined>;<br>+def _machine_EQ : Joined<["--"], "machine=">, Alias<m_Joined>;<br>+def _machine : Separate<["--"], "machine">, Alias<m_Joined>;<br>+def _no_line_commands : Flag<["--"], "no-line-commands">, Alias<P>;<br>+def _no_standard_includes : Flag<["--"], "no-standard-includes">, Alias<nostdinc>;<br>+def _no_standard_libraries : Flag<["--"], "no-standard-libraries">, Alias<nostdlib>;<br>+def _no_undefined : Flag<["--"], "no-undefined">, Flags<[LinkerInput]>;<br>+def _no_warnings : Flag<["--"], "no-warnings">, Alias<w>;<br>+def _optimize_EQ : Joined<["--"], "optimize=">, Alias<O>;<br>+def _optimize : Flag<["--"], "optimize">, Alias<O>;<br>+def _output_class_directory_EQ : Joined<["--"], "output-class-directory=">, Alias<foutput_class_dir_EQ>;<br>+def _output_class_directory : Separate<["--"], "output-class-directory">, Alias<foutput_class_dir_EQ>;<br>+def _output_EQ : Joined<["--"], "output=">, Alias<o>;<br>+def _output : Separate<["--"], "output">, Alias<o>;<br>+def _param : Separate<["--"], "param">;<br>+def _param_EQ : Joined<["--"], "param=">, Alias<_param>;<br>+def _prefix_EQ : Joined<["--"], "prefix=">, Alias<B>;<br>+def _prefix : Separate<["--"], "prefix">, Alias<B>;<br>+def _preprocess : Flag<["--"], "preprocess">, Alias<E>;<br>+def _print_diagnostic_categories : Flag<["--"], "print-diagnostic-categories">;<br>+def _print_file_name : Separate<["--"], "print-file-name">, Alias<print_file_name_EQ>;<br>+def _print_missing_file_dependencies : Flag<["--"], "print-missing-file-dependencies">, Alias<MG>;<br>+def _print_prog_name : Separate<["--"], "print-prog-name">, Alias<print_prog_name_EQ>;<br>+def _profile_blocks : Flag<["--"], "profile-blocks">, Alias<a>;<br>+def _profile : Flag<["--"], "profile">, Alias<p>;<br>+def _resource_EQ : Joined<["--"], "resource=">, Alias<fcompile_resource_EQ>;<br>+def _resource : Separate<["--"], "resource">, Alias<fcompile_resource_EQ>;<br>+def _rtlib : Separate<["--"], "rtlib">, Alias<rtlib_EQ>;<br>+def _serialize_diags : Separate<["-", "--"], "serialize-diagnostics">, Flags<[DriverOption]>,<br>   HelpText<"Serialize compiler diagnostics to a file">;<br>-def _shared : Flag<"--shared">, Alias<shared>;<br>-def _signed_char : Flag<"--signed-char">, Alias<fsigned_char>;<br>-def _specs_EQ : Joined<"--specs=">, Alias<specs_EQ>;<br>-def _specs : Separate<"--specs">, Alias<specs_EQ>;<br>-def _static : Flag<"--static">, Alias<static>;<br>-def _std_EQ : Joined<"--std=">, Alias<std_EQ>;<br>-def _std : Separate<"--std">, Alias<std_EQ>;<br>-def _stdlib_EQ : Joined<"--stdlib=">, Alias<stdlib_EQ>;<br>-def _stdlib : Separate<"--stdlib">, Alias<stdlib_EQ>;<br>-def _sysroot_EQ : Joined<"--sysroot=">;<br>-def _sysroot : Separate<"--sysroot">, Alias<_sysroot_EQ>;<br>-def _target_help : Flag<"--target-help">;<br>-def _trace_includes : Flag<"--trace-includes">, Alias<H>;<br>-def _traditional_cpp : Flag<"--traditional-cpp">, Alias<traditional_cpp>;<br>-def _traditional : Flag<"--traditional">, Alias<traditional>;<br>-def _trigraphs : Flag<"--trigraphs">, Alias<trigraphs>;<br>-def _undefine_macro_EQ : Joined<"--undefine-macro=">, Alias<U>;<br>-def _undefine_macro : Separate<"--undefine-macro">, Alias<U>;<br>-def _unsigned_char : Flag<"--unsigned-char">, Alias<funsigned_char>;<br>-def _user_dependencies : Flag<"--user-dependencies">, Alias<MM>;<br>-def _verbose : Flag<"--verbose">, Alias<v>;<br>-def _version : Flag<"--version">,  Flags<[CC1Option]>;<br>-def _warn__EQ : Joined<"--warn-=">, Alias<W_Joined>;<br>-def _warn_ : Joined<"--warn-">, Alias<W_Joined>;<br>-def _write_dependencies : Flag<"--write-dependencies">, Alias<MD>;<br>-def _write_user_dependencies : Flag<"--write-user-dependencies">, Alias<MMD>;<br>-def _ : Joined<"--">, Flags<[Unsupported]>;<br>-def mieee_rnd_near : Flag<"-mieee-rnd-near">, Group<m_hexagon_Features_Group>;<br>-def serialize_diags : Separate<"-serialize-diagnostics">, Alias<_serialize_diags>;<br>+// We give --version different semantics from -version.<br>+def _version : Flag<["--"], "version">,  Flags<[CC1Option]>;<br>+def _signed_char : Flag<["--"], "signed-char">, Alias<fsigned_char>;<br>+def _std : Separate<["--"], "std">, Alias<std_EQ>;<br>+def _stdlib : Separate<["--"], "stdlib">, Alias<stdlib_EQ>;<br>+def _sysroot_EQ : Joined<["--"], "sysroot=">;<br>+def _sysroot : Separate<["--"], "sysroot">, Alias<_sysroot_EQ>;<br>+def _target_help : Flag<["--"], "target-help">;<br>+def _trace_includes : Flag<["--"], "trace-includes">, Alias<H>;<br>+def _undefine_macro_EQ : Joined<["--"], "undefine-macro=">, Alias<U>;<br>+def _undefine_macro : Separate<["--"], "undefine-macro">, Alias<U>;<br>+def _unsigned_char : Flag<["--"], "unsigned-char">, Alias<funsigned_char>;<br>+def _user_dependencies : Flag<["--"], "user-dependencies">, Alias<MM>;<br>+def _verbose : Flag<["--"], "verbose">, Alias<v>;<br>+def _warn__EQ : Joined<["--"], "warn-=">, Alias<W_Joined>;<br>+def _warn_ : Joined<["--"], "warn-">, Alias<W_Joined>;<br>+def _write_dependencies : Flag<["--"], "write-dependencies">, Alias<MD>;<br>+def _write_user_dependencies : Flag<["--"], "write-user-dependencies">, Alias<MMD>;<br>+def _ : Joined<["--"], "">, Flags<[Unsupported]>;<br>+def mieee_rnd_near : Flag<["-"], "mieee-rnd-near">, Group<m_hexagon_Features_Group>;<br><br> // Special internal option to handle -Xlinker --no-demangle.<br>-def Z_Xlinker__no_demangle : Flag<"-Z-Xlinker-no-demangle">,<br>+def Z_Xlinker__no_demangle : Flag<["-"], "Z-Xlinker-no-demangle">,<br>     Flags<[Unsupported, NoArgumentUnused]>;<br><br> // Special internal option to allow forwarding arbitrary arguments to linker.<br>-def Zlinker_input : Separate<"-Zlinker-input">,<br>+def Zlinker_input : Separate<["-"], "Zlinker-input">,<br>     Flags<[Unsupported, NoArgumentUnused]>;<br><br> // Reserved library options.<br>-def Z_reserved_lib_stdcxx : Flag<"-Z-reserved-lib-stdc++">,<br>+def Z_reserved_lib_stdcxx : Flag<["-"], "Z-reserved-lib-stdc++">,<br>     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;<br>-def Z_reserved_lib_cckext : Flag<"-Z-reserved-lib-cckext">,<br>+def Z_reserved_lib_cckext : Flag<["-"], "Z-reserved-lib-cckext">,<br>     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;<br><br> include "CC1Options.td"<br><br>Modified: cfe/trunk/lib/Driver/Arg.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Arg.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Arg.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Driver/Arg.cpp (original)<br>+++ cfe/trunk/lib/Driver/Arg.cpp Mon Oct 22 17:13:48 2012<br>@@ -8,6 +8,7 @@<br> //===----------------------------------------------------------------------===//<br><br> #include "clang/Driver/Arg.h"<br>+#include "clang/Basic/LLVM.h"<br> #include "clang/Driver/ArgList.h"<br> #include "clang/Driver/Option.h"<br> #include "llvm/ADT/SmallString.h"<br>@@ -15,22 +16,23 @@<br> #include "llvm/Support/raw_ostream.h"<br><br> using namespace clang::driver;<br>+using clang::StringRef;<br><br>-Arg::Arg(const Option _Opt, unsigned _Index, const Arg *_BaseArg)<br>-  : Opt(_Opt), BaseArg(_BaseArg), Index(_Index),<br>+Arg::Arg(const Option _Opt, StringRef S, unsigned _Index, const Arg *_BaseArg)<br>+  : Opt(_Opt), BaseArg(_BaseArg), Spelling(S), Index(_Index),<br>     Claimed(false), OwnsValues(false) {<br> }<br><br>-Arg::Arg(const Option _Opt, unsigned _Index,<br>+Arg::Arg(const Option _Opt, StringRef S, unsigned _Index,<br>          const char *Value0, const Arg *_BaseArg)<br>-  : Opt(_Opt), BaseArg(_BaseArg), Index(_Index),<br>+  : Opt(_Opt), BaseArg(_BaseArg), Spelling(S), Index(_Index),<br>     Claimed(false), OwnsValues(false) {<br>   Values.push_back(Value0);<br> }<br><br>-Arg::Arg(const Option _Opt, unsigned _Index,<br>+Arg::Arg(const Option _Opt, StringRef S, unsigned _Index,<br>          const char *Value0, const char *Value1, const Arg *_BaseArg)<br>-  : Opt(_Opt), BaseArg(_BaseArg), Index(_Index),<br>+  : Opt(_Opt), BaseArg(_BaseArg), Spelling(S), Index(_Index),<br>     Claimed(false), OwnsValues(false) {<br>   Values.push_back(Value0);<br>   Values.push_back(Value1);<br>@@ -96,7 +98,7 @@<br>   case Option::RenderCommaJoinedStyle: {<br>     SmallString<256> Res;<br>     llvm::raw_svector_ostream OS(Res);<br>-    OS << getOption().getName();<br>+    OS << getSpelling();<br>     for (unsigned i = 0, e = getNumValues(); i != e; ++i) {<br>       if (i) OS << ',';<br>       OS << getValue(Args, i);<br>@@ -107,13 +109,13 @@<br><br>  case Option::RenderJoinedStyle:<br>     Output.push_back(Args.GetOrMakeJoinedArgString(<br>-                       getIndex(), getOption().getName(), getValue(Args, 0)));<br>+                       getIndex(), getSpelling(), getValue(Args, 0)));<br>     for (unsigned i = 1, e = getNumValues(); i != e; ++i)<br>       Output.push_back(getValue(Args, i));<br>     break;<br><br>   case Option::RenderSeparateStyle:<br>-    Output.push_back(getOption().getName().data());<br>+    Output.push_back(Args.MakeArgString(getSpelling()));<br>     for (unsigned i = 0, e = getNumValues(); i != e; ++i)<br>       Output.push_back(getValue(Args, i));<br>     break;<br><br></blockquote><div><br></div><div><div>Hi Michael,</div><div><br></div><div>It looks like you are doing "render" using the spelling of the original option, but what if the option was aliased to another one with a different spelling ?</div><div>For example your commit broke this case:</div><div><br></div><div>$ clang  -working-directory=. -fsyntax-only t.cpp -v</div></div><div><div>[...]</div><div>"clang" -cc1 -triple x86_64-apple-macosx10.8.0 -fsyntax-only [...] -<b>working-directory= .</b> -fmodule-cache-path [...]</div><div>[...]</div><div>error: error reading '.'</div><div><br></div><div>Notice that there's a space between "-working-directory=" and the path.</div><div>"-working-directory=" (joined) is aliased to "-working-directory" (separated) but you "render" the separated option using the spelling of the original joined one.</div><div><br></div><div>-Argyrios</div><div><br></div></div><br><blockquote type="cite">Modified: cfe/trunk/lib/Driver/ArgList.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ArgList.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ArgList.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Driver/ArgList.cpp (original)<br>+++ cfe/trunk/lib/Driver/ArgList.cpp Mon Oct 22 17:13:48 2012<br>@@ -363,7 +363,9 @@<br> }<br><br> Arg *DerivedArgList::MakeFlagArg(const Arg *BaseArg, const Option Opt) const {<br>-  Arg *A = new Arg(Opt, BaseArgs.MakeIndex(Opt.getName()), BaseArg);<br>+  Arg *A = new Arg(Opt, ArgList::MakeArgString(Twine(Opt.getPrefix()) +<br>+                                               Twine(Opt.getName())),<br>+                   BaseArgs.MakeIndex(Opt.getName()), BaseArg);<br>   SynthesizedArgs.push_back(A);<br>   return A;<br> }<br>@@ -371,7 +373,9 @@<br> Arg *DerivedArgList::MakePositionalArg(const Arg *BaseArg, const Option Opt,<br>                                        StringRef Value) const {<br>   unsigned Index = BaseArgs.MakeIndex(Value);<br>-  Arg *A = new Arg(Opt, Index, BaseArgs.getArgString(Index), BaseArg);<br>+  Arg *A = new Arg(Opt, ArgList::MakeArgString(Twine(Opt.getPrefix()) +<br>+                                               Twine(Opt.getName())),<br>+                   Index, BaseArgs.getArgString(Index), BaseArg);<br>   SynthesizedArgs.push_back(A);<br>   return A;<br> }<br>@@ -379,7 +383,9 @@<br> Arg *DerivedArgList::MakeSeparateArg(const Arg *BaseArg, const Option Opt,<br>                                      StringRef Value) const {<br>   unsigned Index = BaseArgs.MakeIndex(Opt.getName(), Value);<br>-  Arg *A = new Arg(Opt, Index, BaseArgs.getArgString(Index + 1), BaseArg);<br>+  Arg *A = new Arg(Opt, ArgList::MakeArgString(Twine(Opt.getPrefix()) +<br>+                                               Twine(Opt.getName())),<br>+                   Index, BaseArgs.getArgString(Index + 1), BaseArg);<br>   SynthesizedArgs.push_back(A);<br>   return A;<br> }<br>@@ -387,7 +393,8 @@<br> Arg *DerivedArgList::MakeJoinedArg(const Arg *BaseArg, const Option Opt,<br>                                    StringRef Value) const {<br>   unsigned Index = BaseArgs.MakeIndex(Opt.getName().str() + Value.str());<br>-  Arg *A = new Arg(Opt, Index,<br>+  Arg *A = new Arg(Opt, ArgList::MakeArgString(Twine(Opt.getPrefix()) +<br>+                                               Twine(Opt.getName())), Index,<br>                    BaseArgs.getArgString(Index) + Opt.getName().size(),<br>                    BaseArg);<br>   SynthesizedArgs.push_back(A);<br><br>Modified: cfe/trunk/lib/Driver/CC1AsOptions.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/CC1AsOptions.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/CC1AsOptions.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Driver/CC1AsOptions.cpp (original)<br>+++ cfe/trunk/lib/Driver/CC1AsOptions.cpp Mon Oct 22 17:13:48 2012<br>@@ -15,11 +15,19 @@<br> using namespace clang::driver::options;<br> using namespace clang::driver::cc1asoptions;<br><br>+#define PREFIX(NAME, VALUE) const char *const NAME[] = VALUE;<br>+#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>+               HELPTEXT, METAVAR)<br>+#include "clang/Driver/CC1AsOptions.inc"<br>+#undef OPTION<br>+#undef PREFIX<br>+<br> static const OptTable::Info CC1AsInfoTable[] = {<br>-#define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>+#define PREFIX(NAME, VALUE)<br>+#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>                HELPTEXT, METAVAR)   \<br>-  { NAME, HELPTEXT, METAVAR, OPT_##ID, Option::KIND##Class, PARAM, FLAGS, \<br>-    OPT_##GROUP, OPT_##ALIAS },<br>+  { PREFIX, NAME, HELPTEXT, METAVAR, OPT_##ID, Option::KIND##Class, PARAM, \<br>+    FLAGS, OPT_##GROUP, OPT_##ALIAS },<br> #include "clang/Driver/CC1AsOptions.inc"<br> };<br><br><br>Modified: cfe/trunk/lib/Driver/Driver.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Driver/Driver.cpp (original)<br>+++ cfe/trunk/lib/Driver/Driver.cpp Mon Oct 22 17:13:48 2012<br>@@ -608,7 +608,7 @@<br>        it != ie; ++it, ++i) {<br>     Arg *A = *it;<br>     llvm::errs() << "Option " << i << " - "<br>-                 << "Name: \"" << A->getOption().getName() << "\", "<br>+                 << "Name: \"" << A->getOption().getPrefixedName() << "\", "<br>                  << "Values: {";<br>     for (unsigned j = 0; j < A->getNumValues(); ++j) {<br>       if (j)<br><br>Modified: cfe/trunk/lib/Driver/DriverOptions.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/DriverOptions.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/DriverOptions.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Driver/DriverOptions.cpp (original)<br>+++ cfe/trunk/lib/Driver/DriverOptions.cpp Mon Oct 22 17:13:48 2012<br>@@ -14,11 +14,19 @@<br> using namespace clang::driver;<br> using namespace clang::driver::options;<br><br>+#define PREFIX(NAME, VALUE) const char *const NAME[] = VALUE;<br>+#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>+               HELPTEXT, METAVAR)<br>+#include "clang/Driver/Options.inc"<br>+#undef OPTION<br>+#undef PREFIX<br>+<br> static const OptTable::Info InfoTable[] = {<br>-#define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>+#define PREFIX(NAME, VALUE)<br>+#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \<br>                HELPTEXT, METAVAR)   \<br>-  { NAME, HELPTEXT, METAVAR, OPT_##ID, Option::KIND##Class, PARAM, FLAGS, \<br>-    OPT_##GROUP, OPT_##ALIAS },<br>+  { PREFIX, NAME, HELPTEXT, METAVAR, OPT_##ID, Option::KIND##Class, PARAM, \<br>+    FLAGS, OPT_##GROUP, OPT_##ALIAS },<br> #include "clang/Driver/Options.inc"<br> };<br><br><br>Modified: cfe/trunk/lib/Driver/OptTable.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/OptTable.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/OptTable.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Driver/OptTable.cpp (original)<br>+++ cfe/trunk/lib/Driver/OptTable.cpp Mon Oct 22 17:13:48 2012<br>@@ -55,6 +55,13 @@<br>   if (int N = StrCmpOptionName(A.Name, B.Name))<br>     return N == -1;<br><br>+  for (const char * const *APre = A.Prefixes,<br>+                  * const *BPre = B.Prefixes;<br>+                          *APre != 0 && *BPre != 0; ++APre, ++BPre) {<br>+    if (int N = StrCmpOptionName(*APre, *BPre))<br>+      return N == -1;<br>+  }<br>+<br>   // Names are the same, check that classes are in order; exactly one<br>   // should be joined, and it should succeed the other.<br>   assert(((A.Kind == Option::JoinedClass) ^ (B.Kind == Option::JoinedClass)) &&<br>@@ -123,6 +130,26 @@<br>     }<br>   }<br> #endif<br>+<br>+  // Build prefixes.<br>+  for (unsigned i = FirstSearchableIndex+1, e = getNumOptions(); i != e; ++i) {<br>+    if (const char *const *P = getInfo(i).Prefixes) {<br>+      for (; *P != 0; ++P) {<br>+        PrefixesUnion.insert(*P);<br>+      }<br>+    }<br>+  }<br>+<br>+  // Build prefix chars.<br>+  for (llvm::StringSet<>::const_iterator I = PrefixesUnion.begin(),<br>+                                         E = PrefixesUnion.end(); I != E; ++I) {<br>+    StringRef Prefix = I->getKey();<br>+    for (StringRef::const_iterator C = Prefix.begin(), CE = Prefix.end();<br>+                                   C != CE; ++C)<br>+      if (std::find(PrefixChars.begin(), PrefixChars.end(), *C)<br>+            == PrefixChars.end())<br>+        PrefixChars.push_back(*C);<br>+  }<br> }<br><br> OptTable::~OptTable() {<br>@@ -140,19 +167,41 @@<br>   return getInfo(id).Flags & options::HelpHidden;<br> }<br><br>+static bool isInput(const llvm::StringSet<> &Prefixes, StringRef Arg) {<br>+  if (Arg == "-")<br>+    return true;<br>+  for (llvm::StringSet<>::const_iterator I = Prefixes.begin(),<br>+                                         E = Prefixes.end(); I != E; ++I)<br>+    if (Arg.startswith(I->getKey()))<br>+      return false;<br>+  return true;<br>+}<br>+<br>+/// \returns Matched size. 0 means no match.<br>+static unsigned matchOption(const OptTable::Info *I, StringRef Str) {<br>+  for (const char * const *Pre = I->Prefixes; *Pre != 0; ++Pre) {<br>+    StringRef Prefix(*Pre);<br>+    if (Str.startswith(Prefix) && Str.substr(Prefix.size()).startswith(I->Name))<br>+      return Prefix.size() + StringRef(I->Name).size();<br>+  }<br>+  return 0;<br>+}<br>+<br> Arg *OptTable::ParseOneArg(const ArgList &Args, unsigned &Index) const {<br>   unsigned Prev = Index;<br>   const char *Str = Args.getArgString(Index);<br><br>-  // Anything that doesn't start with '-' is an input, as is '-' itself.<br>-  if (Str[0] != '-' || Str[1] == '\0')<br>-    return new Arg(getOption(TheInputOptionID), Index++, Str);<br>+  // Anything that doesn't start with PrefixesUnion is an input, as is '-'<br>+  // itself.<br>+  if (isInput(PrefixesUnion, Str))<br>+    return new Arg(getOption(TheInputOptionID), Str, Index++, Str);<br><br>   const Info *Start = OptionInfos + FirstSearchableIndex;<br>   const Info *End = OptionInfos + getNumOptions();<br>+  StringRef Name = StringRef(Str).ltrim(PrefixChars);<br><br>   // Search for the first next option which could be a prefix.<br>-  Start = std::lower_bound(Start, End, Str);<br>+  Start = std::lower_bound(Start, End, Name.data());<br><br>   // Options are stored in sorted order, with '\0' at the end of the<br>   // alphabet. Since the only options which can accept a string must<br>@@ -162,17 +211,17 @@<br>   // FIXME: This is searching much more than necessary, but I am<br>   // blanking on the simplest way to make it fast. We can solve this<br>   // problem when we move to TableGen.<br>-  StringRef StrRef(Str);<br>   for (; Start != End; ++Start) {<br>+    unsigned ArgSize = 0;<br>     // Scan for first option which is a proper prefix.<br>     for (; Start != End; ++Start)<br>-      if (StrRef.startswith(Start->Name))<br>+      if ((ArgSize = matchOption(Start, Str)))<br>         break;<br>     if (Start == End)<br>       break;<br><br>     // See if this option matches.<br>-    if (Arg *A = getOption(Start - OptionInfos + 1).accept(Args, Index))<br>+    if (Arg *A = Option(Start, this).accept(Args, Index, ArgSize))<br>       return A;<br><br>     // Otherwise, see if this argument was missing values.<br>@@ -180,7 +229,7 @@<br>       return 0;<br>   }<br><br>-  return new Arg(getOption(TheUnknownOptionID), Index++, Str);<br>+  return new Arg(getOption(TheUnknownOptionID), Str, Index++, Str);<br> }<br><br> InputArgList *OptTable::ParseArgs(const char* const *ArgBegin,<br>@@ -220,10 +269,11 @@<br> }<br><br> static std::string getOptionHelpName(const OptTable &Opts, OptSpecifier Id) {<br>-  std::string Name = Opts.getOptionName(Id);<br>+  const Option O = Opts.getOption(Id);<br>+  std::string Name = O.getPrefixedName();<br><br>   // Add metavar, if used.<br>-  switch (Opts.getOptionKind(Id)) {<br>+  switch (O.getKind()) {<br>   case Option::GroupClass: case Option::InputClass: case Option::UnknownClass:<br>     llvm_unreachable("Invalid option with help text.");<br><br><br>Modified: cfe/trunk/lib/Driver/Option.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Option.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Option.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Driver/Option.cpp (original)<br>+++ cfe/trunk/lib/Driver/Option.cpp Mon Oct 22 17:13:48 2012<br>@@ -48,6 +48,12 @@<br> #undef P<br>   }<br><br>+  llvm::errs() << " Prefixes:[";<br>+  for (const char * const *Pre = Info->Prefixes; *Pre != 0; ++Pre) {<br>+    llvm::errs() << '"' << *Pre << (*(Pre + 1) == 0 ? "\"" : "\", ");<br>+  }<br>+  llvm::errs() << ']';<br>+<br>   llvm::errs() << " Name:\"" << getName() << '"';<br><br>   const Option Group = getGroup();<br>@@ -84,21 +90,24 @@<br>   return false;<br> }<br><br>-Arg *Option::accept(const ArgList &Args, unsigned &Index) const {<br>+Arg *Option::accept(const ArgList &Args,<br>+                    unsigned &Index,<br>+                    unsigned ArgSize) const {<br>+  StringRef Spelling(Args.getArgString(Index), ArgSize);<br>   switch (getKind()) {<br>   case FlagClass:<br>-    if (getName().size() != strlen(Args.getArgString(Index)))<br>+    if (ArgSize != strlen(Args.getArgString(Index)))<br>       return 0;<br><br>-    return new Arg(getUnaliasedOption(), Index++);<br>+    return new Arg(getUnaliasedOption(), Spelling, Index++);<br>   case JoinedClass: {<br>-    const char *Value = Args.getArgString(Index) + getName().size();<br>-    return new Arg(getUnaliasedOption(), Index++, Value);<br>+    const char *Value = Args.getArgString(Index) + ArgSize;<br>+    return new Arg(getUnaliasedOption(), Spelling, Index++, Value);<br>   }<br>   case CommaJoinedClass: {<br>     // Always matches.<br>-    const char *Str = Args.getArgString(Index) + getName().size();<br>-    Arg *A = new Arg(getUnaliasedOption(), Index++);<br>+    const char *Str = Args.getArgString(Index) + ArgSize;<br>+    Arg *A = new Arg(getUnaliasedOption(), Spelling, Index++);<br><br>     // Parse out the comma separated values.<br>     const char *Prev = Str;<br>@@ -126,26 +135,26 @@<br>   case SeparateClass:<br>     // Matches iff this is an exact match.<br>     // FIXME: Avoid strlen.<br>-    if (getName().size() != strlen(Args.getArgString(Index)))<br>+    if (ArgSize != strlen(Args.getArgString(Index)))<br>       return 0;<br><br>     Index += 2;<br>     if (Index > Args.getNumInputArgStrings())<br>       return 0;<br><br>-    return new Arg(getUnaliasedOption(),<br>+    return new Arg(getUnaliasedOption(), Spelling,<br>                    Index - 2, Args.getArgString(Index - 1));<br>   case MultiArgClass: {<br>     // Matches iff this is an exact match.<br>     // FIXME: Avoid strlen.<br>-    if (getName().size() != strlen(Args.getArgString(Index)))<br>+    if (ArgSize != strlen(Args.getArgString(Index)))<br>       return 0;<br><br>     Index += 1 + getNumArgs();<br>     if (Index > Args.getNumInputArgStrings())<br>       return 0;<br><br>-    Arg *A = new Arg(getUnaliasedOption(), Index - 1 - getNumArgs(),<br>+    Arg *A = new Arg(getUnaliasedOption(), Spelling, Index - 1 - getNumArgs(),<br>                       Args.getArgString(Index - getNumArgs()));<br>     for (unsigned i = 1; i != getNumArgs(); ++i)<br>       A->getValues().push_back(Args.getArgString(Index - getNumArgs() + i));<br>@@ -154,9 +163,9 @@<br>   case JoinedOrSeparateClass: {<br>     // If this is not an exact match, it is a joined arg.<br>     // FIXME: Avoid strlen.<br>-    if (getName().size() != strlen(Args.getArgString(Index))) {<br>-      const char *Value = Args.getArgString(Index) + getName().size();<br>-      return new Arg(*this, Index++, Value);<br>+    if (ArgSize != strlen(Args.getArgString(Index))) {<br>+      const char *Value = Args.getArgString(Index) + ArgSize;<br>+      return new Arg(*this, Spelling, Index++, Value);<br>     }<br><br>     // Otherwise it must be separate.<br>@@ -164,7 +173,7 @@<br>     if (Index > Args.getNumInputArgStrings())<br>       return 0;<br><br>-    return new Arg(getUnaliasedOption(),<br>+    return new Arg(getUnaliasedOption(), Spelling,<br>                    Index - 2, Args.getArgString(Index - 1));<br>   }<br>   case JoinedAndSeparateClass:<br>@@ -173,9 +182,9 @@<br>     if (Index > Args.getNumInputArgStrings())<br>       return 0;<br><br>-    return new Arg(getUnaliasedOption(), Index - 2,<br>-                   Args.getArgString(Index-2)+getName().size(),<br>-                   Args.getArgString(Index-1));<br>+    return new Arg(getUnaliasedOption(), Spelling, Index - 2,<br>+                   Args.getArgString(Index - 2) + ArgSize,<br>+                   Args.getArgString(Index - 1));<br>   default:<br>     llvm_unreachable("Invalid option kind!");<br>   }<br><br>Modified: cfe/trunk/lib/Driver/Tools.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Driver/Tools.cpp (original)<br>+++ cfe/trunk/lib/Driver/Tools.cpp Mon Oct 22 17:13:48 2012<br>@@ -1175,8 +1175,8 @@<br>     (*it)->claim();<br><br>     // Skip over "-m".<br>-    assert(Name.startswith("-m") && "Invalid feature name.");<br>-    Name = Name.substr(2);<br>+    assert(Name.startswith("m") && "Invalid feature name.");<br>+    Name = Name.substr(1);<br><br>     bool IsNegative = Name.startswith("no-");<br>     if (IsNegative)<br>@@ -2283,7 +2283,7 @@<br>       CmdArgs.push_back("-fbounds-checking=1");<br>   }<br><br>-  if (Args.hasArg(options::OPT__relocatable_pch))<br>+  if (Args.hasArg(options::OPT_relocatable_pch))<br>     CmdArgs.push_back("-relocatable-pch");<br><br>   if (Arg *A = Args.getLastArg(options::OPT_fconstant_string_class_EQ)) {<br><br>Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)<br>+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Mon Oct 22 17:13:48 2012<br>@@ -1001,10 +1001,10 @@<br>   for (arg_iterator I = Args.filtered_begin(OPT_W_Group),<br>          E = Args.filtered_end(); I != E; ++I) {<br>     Arg *A = *I;<br>-    // If the argument is a pure flag, add its name (minus the "-W" at the beginning)<br>+    // If the argument is a pure flag, add its name (minus the "W" at the beginning)<br>     // to the warning list. Else, add its value (for the OPT_W case).<br>     if (A->getOption().getKind() == Option::FlagClass) {<br>-      Warnings.push_back(A->getOption().getName().substr(2));<br>+      Warnings.push_back(A->getOption().getName().substr(1));<br>     } else {<br>       for (unsigned Idx = 0, End = A->getNumValues();<br>            Idx < End; ++Idx) {<br><br>Modified: cfe/trunk/utils/TableGen/OptParserEmitter.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/OptParserEmitter.cpp?rev=166444&r1=166443&r2=166444&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/OptParserEmitter.cpp?rev=166444&r1=166443&r2=166444&view=diff</a><br>==============================================================================<br>--- cfe/trunk/utils/TableGen/OptParserEmitter.cpp (original)<br>+++ cfe/trunk/utils/TableGen/OptParserEmitter.cpp Mon Oct 22 17:13:48 2012<br>@@ -7,9 +7,15 @@<br> //<br> //===----------------------------------------------------------------------===//<br><br>+#include "llvm/TableGen/Error.h"<br> #include "llvm/TableGen/Record.h"<br> #include "llvm/TableGen/TableGenBackend.h"<br> #include "llvm/ADT/STLExtras.h"<br>+#include "llvm/ADT/SmallString.h"<br>+#include "llvm/ADT/Twine.h"<br>+<br>+#include <map><br>+<br> using namespace llvm;<br><br> static int StrCmpOptionName(const char *A, const char *B) {<br>@@ -47,10 +53,32 @@<br>                                    B->getValueAsString("Name").c_str()))<br>     return Cmp;<br><br>+  if (!ASent) {<br>+    std::vector<std::string> APrefixes = A->getValueAsListOfStrings("Prefixes");<br>+    std::vector<std::string> BPrefixes = B->getValueAsListOfStrings("Prefixes");<br>+<br>+    for (std::vector<std::string>::const_iterator APre = APrefixes.begin(),<br>+                                                  AEPre = APrefixes.end(),<br>+                                                  BPre = BPrefixes.begin(),<br>+                                                  BEPre = BPrefixes.end();<br>+                                                  APre != AEPre &&<br>+                                                  BPre != BEPre;<br>+                                                  ++APre, ++BPre) {<br>+      if (int Cmp = StrCmpOptionName(APre->c_str(), BPre->c_str()))<br>+        return Cmp;<br>+    }<br>+  }<br>+<br>   // Then by the kind precedence;<br>   int APrec = A->getValueAsDef("Kind")->getValueAsInt("Precedence");<br>   int BPrec = B->getValueAsDef("Kind")->getValueAsInt("Precedence");<br>-  assert(APrec != BPrec && "Options are equivalent!");<br>+  if (APrec == BPrec &&<br>+      A->getValueAsListOfStrings("Prefixes") ==<br>+      B->getValueAsListOfStrings("Prefixes")) {<br>+    PrintError(A->getLoc(), Twine("Option is equivilent to"));<br>+    PrintError(B->getLoc(), Twine("Other defined here"));<br>+    throw "Eqivilant Options found.";<br>+  }<br>   return APrec < BPrec ? -1 : 1;<br> }<br><br>@@ -86,6 +114,48 @@<br><br>   array_pod_sort(Opts.begin(), Opts.end(), CompareOptionRecords);<br>   if (GenDefs) {<br>+    // Generate prefix groups.<br>+    typedef SmallVector<SmallString<2>, 2> PrefixKeyT;<br>+    typedef std::map<PrefixKeyT, std::string> PrefixesT;<br>+    PrefixesT Prefixes;<br>+    Prefixes.insert(std::make_pair(PrefixKeyT(), "prefix_0"));<br>+    unsigned CurPrefix = 0;<br>+    for (unsigned i = 0, e = Opts.size(); i != e; ++i) {<br>+      const Record &R = *Opts[i];<br>+      std::vector<std::string> prf = R.getValueAsListOfStrings("Prefixes");<br>+      PrefixKeyT prfkey(prf.begin(), prf.end());<br>+      unsigned NewPrefix = CurPrefix + 1;<br>+      if (Prefixes.insert(std::make_pair(prfkey, (Twine("prefix_") +<br>+                                               Twine(NewPrefix)).str())).second)<br>+        CurPrefix = NewPrefix;<br>+    }<br>+<br>+    OS << "#ifndef PREFIX\n";<br>+    OS << "#error \"Define PREFIX prior to including this file!\"\n";<br>+    OS << "#endif\n\n";<br>+<br>+    // Dump prefixes.<br>+    OS << "/////////\n";<br>+    OS << "// Prefixes\n\n";<br>+    OS << "#define COMMA ,\n";<br>+    for (PrefixesT::const_iterator I = Prefixes.begin(), E = Prefixes.end();<br>+                                   I != E; ++I) {<br>+      OS << "PREFIX(";<br>+<br>+      // Prefix name.<br>+      OS << I->second;<br>+<br>+      // Prefix values.<br>+      OS << ", {";<br>+      for (PrefixKeyT::const_iterator PI = I->first.begin(),<br>+                                      PE = I->first.end(); PI != PE; ++PI) {<br>+        OS << "\"" << *PI << "\" COMMA ";<br>+      }<br>+      OS << "0})\n";<br>+    }<br>+    OS << "#undef COMMA\n";<br>+    OS << "\n";<br>+<br>     OS << "#ifndef OPTION\n";<br>     OS << "#error \"Define OPTION prior to including this file!\"\n";<br>     OS << "#endif\n\n";<br>@@ -98,8 +168,11 @@<br>       // Start a single option entry.<br>       OS << "OPTION(";<br><br>+      // The option prefix;<br>+      OS << "0";<br>+<br>       // The option string.<br>-      OS << '"' << R.getValueAsString("Name") << '"';<br>+      OS << ", \"" << R.getValueAsString("Name") << '"';<br><br>       // The option identifier name.<br>       OS  << ", "<< getOptionName(R);<br>@@ -138,6 +211,10 @@<br>       // Start a single option entry.<br>       OS << "OPTION(";<br><br>+      // The option prefix;<br>+      std::vector<std::string> prf = R.getValueAsListOfStrings("Prefixes");<br>+      OS << Prefixes[PrefixKeyT(prf.begin(), prf.end())] << ", ";<br>+<br>       // The option string.<br>       write_cstring(OS, R.getValueAsString("Name"));<br><br><br><br>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits<br></blockquote></div><br></body></html>