@@ -17,51 +17,35 @@ public enum CLanguageStandard: String, Encodable {
17
17
/// ISO C 1990.
18
18
case c90
19
19
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
-
32
20
/// ISO C 1999.
33
21
case c99
34
22
35
- /// ISO C 1999.
36
- case iso9899_1999 = " iso9899:1999 "
37
-
38
- /// ISO C 1999 with GNU extensions.
39
- case gnu99
40
-
41
23
/// ISO C 2011.
42
24
case c11
43
25
44
- /// ISO C 2011.
45
- case iso9899_2011 = " iso9899:2011 "
46
-
47
- /// ISO C 2011 with GNU extensions.
48
- case gnu11
49
-
50
26
/// ISO C 2017.
51
27
@available ( _PackageDescription, introduced: 999.0 )
52
28
case c17
53
29
54
- /// ISO C 2017.
55
- @available ( _PackageDescription, introduced: 999.0 )
56
- case iso9899_2017 = " iso9899:2017 "
57
-
58
30
/// ISO C 2017.
59
31
@available ( _PackageDescription, introduced: 999.0 )
60
32
case c18
61
33
62
- /// ISO C 2017 .
34
+ /// Working Draft for ISO C2x .
63
35
@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
65
49
66
50
/// ISO C 2017 with GNU extensions.
67
51
@available ( _PackageDescription, introduced: 999.0 )
@@ -71,13 +55,29 @@ public enum CLanguageStandard: String, Encodable {
71
55
@available ( _PackageDescription, introduced: 999.0 )
72
56
case gnu18
73
57
74
- /// Working Draft for ISO C2x.
75
- @available ( _PackageDescription, introduced: 999.0 )
76
- case c2x
77
-
78
58
/// Working Draft for ISO C2x with GNU extensions.
79
59
@available ( _PackageDescription, introduced: 999.0 )
80
60
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 "
81
81
}
82
82
83
83
/// The supported C++ language standards to use for compiling C++ sources in the package.
@@ -89,43 +89,43 @@ public enum CXXLanguageStandard: String, Encodable {
89
89
/// ISO C++ 1998 with amendments.
90
90
case cxx03 = " c++03 "
91
91
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
-
98
92
/// ISO C++ 2011 with amendments.
99
93
case cxx11 = " c++11 "
100
94
101
- /// ISO C++ 2011 with amendments and GNU extensions.
102
- case gnucxx11 = " gnu++11 "
103
-
104
95
/// ISO C++ 2014 with amendments.
105
96
case cxx14 = " c++14 "
106
97
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 "
109
101
110
102
/// ISO C++ 2017 with amendments.
111
103
@available ( _PackageDescription, introduced: 4 , deprecated: 999.0 , renamed: " cxx17 " )
112
104
case cxx1z = " c++1z "
113
105
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.
119
107
@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 "
121
121
122
122
/// ISO C++ 2017 with amendments and GNU extensions.
123
123
@available ( _PackageDescription, introduced: 999.0 )
124
124
case gnucxx17 = " gnu++17 "
125
125
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 "
129
129
130
130
/// ISO C++ 2020 DIS with GNU extensions.
131
131
@available ( _PackageDescription, introduced: 999.0 )
0 commit comments