From: Alp Toker Date: Sun, 22 Dec 2013 22:38:57 +0000 (+0000) Subject: Make some f_Group definitions anonymous and test an alternative spelling X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8db0486c50cb6369ac1f67b7e94454871f017a76;p=clang Make some f_Group definitions anonymous and test an alternative spelling These names weren't referred to anywhere in the source so don't need a written name. Depends on the TableGen fix for anonymous records in LLVM r197869. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197896 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 091e25fa9a..897db8e7c4 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -188,7 +188,8 @@ def objcmt_migrate_designated_init : Flag<["-"], "objcmt-migrate-designated-init HelpText<"Enable migration to infer NS_DESIGNATED_INITIALIZER for initializer methods">; def objcmt_whitelist_dir_path: Joined<["-"], "objcmt-whitelist-dir-path=">, Flags<[CC1Option]>, HelpText<"Only modify files with a filename contained in the provided directory path">; -def objcmt_white_list_dir_path: Joined<["-"], "objcmt-white-list-dir-path=">, Flags<[CC1Option]>, +// The misspelt "white-list" [sic] alias is due for removal. +def : Joined<["-"], "objcmt-white-list-dir-path=">, Flags<[CC1Option]>, Alias; // Make sure all other -ccc- options are rejected. @@ -516,9 +517,9 @@ def fhonor_nans : Flag<["-"], "fhonor-nans">, Group; def fno_honor_nans : Flag<["-"], "fno-honor-nans">, Group; def fhonor_infinities : Flag<["-"], "fhonor-infinities">, Group; def fno_honor_infinities : Flag<["-"], "fno-honor-infinities">, Group; -// Sic. This option was misspelled originally. -def fhonor_infinites : Flag<["-"], "fhonor-infinites">, Alias; -def fno_honor_infinites : Flag<["-"], "fno-honor-infinites">, Alias; +// This option was originally misspelt "infinites" [sic]. +def : Flag<["-"], "fhonor-infinites">, Alias; +def : Flag<["-"], "fno-honor-infinites">, Alias; def ftrapping_math : Flag<["-"], "ftrapping-math">, Group; def fno_trapping_math : Flag<["-"], "fno-trapping-math">, Group; def ffp_contract : Joined<["-"], "ffp-contract=">, Group, @@ -759,7 +760,7 @@ def frtti : Flag<["-"], "frtti">, Group; def fsched_interblock : Flag<["-"], "fsched-interblock">, Group; def fshort_enums : Flag<["-"], "fshort-enums">, Group, Flags<[CC1Option]>, HelpText<"Allocate to an enum type only as many bytes as it needs for the declared range of possible values">; -def freorder_blocks : Flag<["-"], "freorder-blocks">, Group; +def : Flag<["-"], "freorder-blocks">, Group; def fshort_wchar : Flag<["-"], "fshort-wchar">, Group, Flags<[CC1Option]>, HelpText<"Force wchar_t to be a short unsigned int">; def fshow_overloads_EQ : Joined<["-"], "fshow-overloads=">, Group, Flags<[CC1Option]>, diff --git a/test/Driver/fast-math.c b/test/Driver/fast-math.c index eba25c8fe8..16b1efcfde 100644 --- a/test/Driver/fast-math.c +++ b/test/Driver/fast-math.c @@ -8,6 +8,9 @@ // REQUIRES: clang-driver // // RUN: %clang -### -fno-honor-infinities -c %s 2>&1 \ +// RUN: FileCheck --check-prefix=CHECK-NO-INFS %s +// infinites [sic] is a supported alternative spelling of infinities. +// RUN: %clang -### -fno-honor-infinites -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NO-INFS %s // CHECK-NO-INFS: "-cc1" // CHECK-NO-INFS: "-menable-no-infs"