From: Daniel Dunbar Date: Sun, 29 Nov 2009 09:32:20 +0000 (+0000) Subject: clang -cc1: Allow -triple= as an alias for -triple, -code-compiletion-at= as an alias... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce6bf1ecdaca15450d8c0424724cc1558b847364;p=clang clang -cc1: Allow -triple= as an alias for -triple, -code-compiletion-at= as an alias for -code-completion-at, and spell "-std=" option correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90068 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CC1Options.td b/include/clang/Driver/CC1Options.td index cdc31e9251..eda6e4ff40 100644 --- a/include/clang/Driver/CC1Options.td +++ b/include/clang/Driver/CC1Options.td @@ -26,6 +26,7 @@ def target_feature : Separate<"-target-feature">, HelpText<"Target specific attributes">; def triple : Separate<"-triple">, HelpText<"Specify target triple (e.g. i686-apple-darwin9)">; +def triple_EQ : Joined<"-triple=">, Alias; //===----------------------------------------------------------------------===// // Analyzer Options @@ -183,6 +184,8 @@ def verify : Flag<"-verify">, def code_completion_at : Separate<"-code-completion-at">, MetaVarName<"file:line:column">, HelpText<"Dump code-completion information at a location">; +def code_completion_at_EQ : Joined<"-code-completion-at=">, + Alias; def no_code_completion_debug_printer : Flag<"-no-code-completion-debug-printer">, HelpText<"Don't the \"debug\" code-completion print">; def code_completion_macros : Flag<"-code-completion-macros">, @@ -289,7 +292,7 @@ def ffreestanding : Flag<"-ffreestanding">, HelpText<"Assert that the compilation takes place in a freestanding environment">; def fgnu_runtime : Flag<"-fgnu-runtime">, HelpText<"Generate output compatible with the standard GNU Objective-C runtime">; -def std_EQ : Joined<"-std">, +def std_EQ : Joined<"-std=">, HelpText<"Language standard to compile for">; def fms_extensions : Flag<"-fms-extensions">, HelpText<"Accept some non-standard constructs used in Microsoft header files ">;