Skip to content

Commit 1d57496

Browse files
committed
Update the CLanguageStandard and CXXLanguageStandard enums
1 parent 642834d commit 1d57496

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

Sources/PackageDescription/LanguageStandardSettings.swift

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -17,51 +17,35 @@ public enum CLanguageStandard: String, Encodable {
1717
/// ISO C 1990.
1818
case c90
1919

20-
/// ISO C 1990.
21-
case iso9899_1990 = "iso9899:1990"
22-
23-
/// ISO C 1990 with amendment 1.
24-
case iso9899_199409 = "iso9899:199409"
25-
26-
/// ISO C 1990 with GNU extensions.
27-
case gnu89
28-
29-
/// ISO C 1990 with GNU extensions.
30-
case gnu90
31-
3220
/// ISO C 1999.
3321
case c99
3422

35-
/// ISO C 1999.
36-
case iso9899_1999 = "iso9899:1999"
37-
38-
/// ISO C 1999 with GNU extensions.
39-
case gnu99
40-
4123
/// ISO C 2011.
4224
case c11
4325

44-
/// ISO C 2011.
45-
case iso9899_2011 = "iso9899:2011"
46-
47-
/// ISO C 2011 with GNU extensions.
48-
case gnu11
49-
5026
/// ISO C 2017.
5127
@available(_PackageDescription, introduced: 999.0)
5228
case c17
5329

54-
/// ISO C 2017.
55-
@available(_PackageDescription, introduced: 999.0)
56-
case iso9899_2017 = "iso9899:2017"
57-
5830
/// ISO C 2017.
5931
@available(_PackageDescription, introduced: 999.0)
6032
case c18
6133

62-
/// ISO C 2017.
34+
/// Working Draft for ISO C2x.
6335
@available(_PackageDescription, introduced: 999.0)
64-
case iso9899_2018 = "iso9899:2018"
36+
case c2x
37+
38+
/// ISO C 1990 with GNU extensions.
39+
case gnu89
40+
41+
/// ISO C 1990 with GNU extensions.
42+
case gnu90
43+
44+
/// ISO C 1999 with GNU extensions.
45+
case gnu99
46+
47+
/// ISO C 2011 with GNU extensions.
48+
case gnu11
6549

6650
/// ISO C 2017 with GNU extensions.
6751
@available(_PackageDescription, introduced: 999.0)
@@ -71,13 +55,29 @@ public enum CLanguageStandard: String, Encodable {
7155
@available(_PackageDescription, introduced: 999.0)
7256
case gnu18
7357

74-
/// Working Draft for ISO C2x.
75-
@available(_PackageDescription, introduced: 999.0)
76-
case c2x
77-
7858
/// Working Draft for ISO C2x with GNU extensions.
7959
@available(_PackageDescription, introduced: 999.0)
8060
case gnu2x
61+
62+
/// ISO C 1990.
63+
case iso9899_1990 = "iso9899:1990"
64+
65+
/// ISO C 1990 with amendment 1.
66+
case iso9899_199409 = "iso9899:199409"
67+
68+
/// ISO C 1999.
69+
case iso9899_1999 = "iso9899:1999"
70+
71+
/// ISO C 2011.
72+
case iso9899_2011 = "iso9899:2011"
73+
74+
/// ISO C 2017.
75+
@available(_PackageDescription, introduced: 999.0)
76+
case iso9899_2017 = "iso9899:2017"
77+
78+
/// ISO C 2017.
79+
@available(_PackageDescription, introduced: 999.0)
80+
case iso9899_2018 = "iso9899:2018"
8181
}
8282

8383
/// The supported C++ language standards to use for compiling C++ sources in the package.
@@ -89,43 +89,43 @@ public enum CXXLanguageStandard: String, Encodable {
8989
/// ISO C++ 1998 with amendments.
9090
case cxx03 = "c++03"
9191

92-
/// ISO C++ 1998 with amendments and GNU extensions.
93-
case gnucxx98 = "gnu++98"
94-
95-
/// ISO C++ 1998 with amendments and GNU extensions.
96-
case gnucxx03 = "gnu++03"
97-
9892
/// ISO C++ 2011 with amendments.
9993
case cxx11 = "c++11"
10094

101-
/// ISO C++ 2011 with amendments and GNU extensions.
102-
case gnucxx11 = "gnu++11"
103-
10495
/// ISO C++ 2014 with amendments.
10596
case cxx14 = "c++14"
10697

107-
/// ISO C++ 2014 with amendments and GNU extensions.
108-
case gnucxx14 = "gnu++14"
98+
/// ISO C++ 2017 with amendments.
99+
@available(_PackageDescription, introduced: 999.0)
100+
case cxx17 = "c++17"
109101

110102
/// ISO C++ 2017 with amendments.
111103
@available(_PackageDescription, introduced: 4, deprecated: 999.0, renamed: "cxx17")
112104
case cxx1z = "c++1z"
113105

114-
/// ISO C++ 2017 with amendments and GNU extensions.
115-
@available(_PackageDescription, introduced: 4, deprecated: 999.0, renamed: "gnucxx17")
116-
case gnucxx1z = "gnu++1z"
117-
118-
/// ISO C++ 2017 with amendments.
106+
/// ISO C++ 2020 DIS.
119107
@available(_PackageDescription, introduced: 999.0)
120-
case cxx17 = "c++17"
108+
case cxx20 = "c++20"
109+
110+
/// ISO C++ 1998 with amendments and GNU extensions.
111+
case gnucxx98 = "gnu++98"
112+
113+
/// ISO C++ 1998 with amendments and GNU extensions.
114+
case gnucxx03 = "gnu++03"
115+
116+
/// ISO C++ 2011 with amendments and GNU extensions.
117+
case gnucxx11 = "gnu++11"
118+
119+
/// ISO C++ 2014 with amendments and GNU extensions.
120+
case gnucxx14 = "gnu++14"
121121

122122
/// ISO C++ 2017 with amendments and GNU extensions.
123123
@available(_PackageDescription, introduced: 999.0)
124124
case gnucxx17 = "gnu++17"
125125

126-
/// ISO C++ 2020 DIS.
127-
@available(_PackageDescription, introduced: 999.0)
128-
case cxx20 = "c++20"
126+
/// ISO C++ 2017 with amendments and GNU extensions.
127+
@available(_PackageDescription, introduced: 4, deprecated: 999.0, renamed: "gnucxx17")
128+
case gnucxx1z = "gnu++1z"
129129

130130
/// ISO C++ 2020 DIS with GNU extensions.
131131
@available(_PackageDescription, introduced: 999.0)

0 commit comments

Comments
 (0)