|
10 | 10 | //
|
11 | 11 | //===----------------------------------------------------------------------===//
|
12 | 12 |
|
13 |
| -/// The supported C language standard to use for compiling C sources in the package. |
14 |
| -/// |
15 |
| -/// Aliases are available for some C language standards. For example, |
16 |
| -/// use `c89`, `c90`, or `iso9899_1990` for the "ISO C 1990" standard. |
17 |
| -/// To learn more, read the [Clang Compiler User's Manual][1]. |
18 |
| -/// |
19 |
| -/// [1]: <https://clang.llvm.org/docs/UsersManual.html#differences-between-various-standard-modes> |
| 13 | +/// The supported C language standard you use to compile C sources in the |
| 14 | +/// package. |
20 | 15 | public enum CLanguageStandard: String, Encodable {
|
21 | 16 |
|
22 |
| - /// ISO C 1990. |
| 17 | + /// The identifier for the ISO C 1990 language standard. |
23 | 18 | case c89
|
24 | 19 |
|
25 |
| - /// ISO C 1990. |
| 20 | + /// The identifier for the ISO C 1990 language standard. |
26 | 21 | case c90
|
27 | 22 |
|
28 |
| - /// ISO C 1999. |
| 23 | + /// The identifier for the ISO C 1999 language standard. |
29 | 24 | case c99
|
30 | 25 |
|
31 |
| - /// ISO C 2011. |
| 26 | + /// The identifier for the ISO C 2011 language standard. |
32 | 27 | case c11
|
33 | 28 |
|
34 |
| - /// ISO C 2017. |
| 29 | + /// The identifier for the ISO C 2017 language stadard. |
35 | 30 | @available(_PackageDescription, introduced: 5.4)
|
36 | 31 | case c17
|
37 | 32 |
|
38 |
| - /// ISO C 2017. |
| 33 | + /// The identifier for the ISO C 2017 language standard. |
39 | 34 | @available(_PackageDescription, introduced: 5.4)
|
40 | 35 | case c18
|
41 | 36 |
|
42 |
| - /// Working Draft for ISO C2x. |
| 37 | + /// The identifier for the ISO C2x draft language standard. |
43 | 38 | @available(_PackageDescription, introduced: 5.4)
|
44 | 39 | case c2x
|
45 | 40 |
|
46 |
| - /// ISO C 1990 with GNU extensions. |
| 41 | + /// The identifier for the ISO C 1990 language standard with GNU extensions. |
47 | 42 | case gnu89
|
48 | 43 |
|
49 |
| - /// ISO C 1990 with GNU extensions. |
| 44 | + /// The identifier for the ISO C 1990 language standard with GNU extensions. |
50 | 45 | case gnu90
|
51 | 46 |
|
52 |
| - /// ISO C 1999 with GNU extensions. |
| 47 | + /// The identifier for the ISO C 1999 language standard with GNU extensions. |
53 | 48 | case gnu99
|
54 | 49 |
|
55 |
| - /// ISO C 2011 with GNU extensions. |
| 50 | + /// The identifier for the ISO C 2011 language standard with GNU extensions. |
56 | 51 | case gnu11
|
57 | 52 |
|
58 |
| - /// ISO C 2017 with GNU extensions. |
| 53 | + /// The identifier for the ISO C 2017 language standard with GNU extensions. |
59 | 54 | @available(_PackageDescription, introduced: 5.4)
|
60 | 55 | case gnu17
|
61 | 56 |
|
62 |
| - /// ISO C 2017 with GNU extensions. |
| 57 | + /// The identifier for the ISO C 2017 language standard with GNU extensions. |
63 | 58 | @available(_PackageDescription, introduced: 5.4)
|
64 | 59 | case gnu18
|
65 | 60 |
|
66 |
| - /// Working Draft for ISO C2x with GNU extensions. |
| 61 | + /// The identifier for the ISO C2x draft language standard with GNU extensions. |
67 | 62 | @available(_PackageDescription, introduced: 5.4)
|
68 | 63 | case gnu2x
|
69 | 64 |
|
70 |
| - /// ISO C 1990. |
| 65 | + /// The identifier for the ISO C 1990 language standard. |
71 | 66 | case iso9899_1990 = "iso9899:1990"
|
72 | 67 |
|
73 |
| - /// ISO C 1990 with amendment 1. |
| 68 | + /// The identifier for the ISO C 1990 language standard with amendment 1. |
74 | 69 | case iso9899_199409 = "iso9899:199409"
|
75 | 70 |
|
76 |
| - /// ISO C 1999. |
| 71 | + /// The identifier for the ISO C 1999 language standard. |
77 | 72 | case iso9899_1999 = "iso9899:1999"
|
78 | 73 |
|
79 |
| - /// ISO C 2011. |
| 74 | + /// The identifier for the ISO C 2011 language standard. |
80 | 75 | case iso9899_2011 = "iso9899:2011"
|
81 | 76 |
|
82 |
| - /// ISO C 2017. |
| 77 | + /// The identifier for the ISO C 2017 language standard. |
83 | 78 | @available(_PackageDescription, introduced: 5.4)
|
84 | 79 | case iso9899_2017 = "iso9899:2017"
|
85 | 80 |
|
86 |
| - /// ISO C 2017. |
| 81 | + /// The identifier for the ISO C 2017 language standard. |
87 | 82 | @available(_PackageDescription, introduced: 5.4)
|
88 | 83 | case iso9899_2018 = "iso9899:2018"
|
89 | 84 | }
|
90 | 85 |
|
91 |
| -/// The supported C++ language standard to use for compiling C++ sources in the package. |
| 86 | +/// The supported C++ language standard you use to compile C++ sources in the |
| 87 | +/// package. |
92 | 88 | ///
|
93 | 89 | /// Aliases are available for some C++ language standards. For example,
|
94 | 90 | /// use `cxx98` or `cxx03` for the "ISO C++ 1998 with amendments" standard.
|
95 |
| -/// To learn more, read the [C++ Support in Clang][1] status page. |
96 |
| -/// |
97 |
| -/// [1]: <https://clang.llvm.org/cxx_status.html> |
| 91 | +/// To learn more, see [C++ Support in Clang](https://clang.llvm.org/cxx_status.html). |
98 | 92 | public enum CXXLanguageStandard: String, Encodable {
|
99 | 93 |
|
100 |
| - /// ISO C++ 1998 with amendments. |
| 94 | + /// The identifier for the ISO C++ 1998 language standard with amendments. |
101 | 95 | case cxx98 = "c++98"
|
102 | 96 |
|
103 |
| - /// ISO C++ 1998 with amendments. |
| 97 | + /// The identifier for the ISO C++ 1998 language standard with amendments. |
104 | 98 | case cxx03 = "c++03"
|
105 | 99 |
|
106 |
| - /// ISO C++ 2011 with amendments. |
| 100 | + /// The identifier for the ISO C++ 2011 language standard with amendments. |
107 | 101 | case cxx11 = "c++11"
|
108 | 102 |
|
109 |
| - /// ISO C++ 2014 with amendments. |
| 103 | + /// The identifier for the ISO C++ 2014 language standard with amendments. |
110 | 104 | case cxx14 = "c++14"
|
111 | 105 |
|
112 |
| - /// ISO C++ 2017 with amendments. |
| 106 | + /// The identifier for the ISO C++ 2017 language standard with amendments. |
113 | 107 | @available(_PackageDescription, introduced: 5.4)
|
114 | 108 | case cxx17 = "c++17"
|
115 | 109 |
|
116 |
| - /// ISO C++ 2017 with amendments. |
| 110 | + /// The identifier for the ISO C++ 2017 language standard with amendments. |
117 | 111 | @available(_PackageDescription, introduced: 4, deprecated: 5.4, renamed: "cxx17")
|
118 | 112 | case cxx1z = "c++1z"
|
119 | 113 |
|
120 |
| - /// ISO C++ 2020 DIS. |
| 114 | + /// The identifier for the ISO C++ 2020 language standard. |
121 | 115 | @available(_PackageDescription, introduced: 5.4)
|
122 | 116 | case cxx20 = "c++20"
|
123 | 117 |
|
124 |
| - /// Working draft for ISO C++ 2023 DIS. |
| 118 | + /// The identifier for the ISO C++ 2023 draft language standard. |
125 | 119 | @available(_PackageDescription, introduced: 5.6)
|
126 | 120 | case cxx2b = "c++2b"
|
127 | 121 |
|
128 |
| - /// ISO C++ 1998 with amendments and GNU extensions. |
| 122 | + /// The identifier for the ISO C++ 1998 language standard with amendments and GNU extensions. |
129 | 123 | case gnucxx98 = "gnu++98"
|
130 | 124 |
|
131 |
| - /// ISO C++ 1998 with amendments and GNU extensions. |
| 125 | + /// The identifier for the ISO C++ 1998 language standard with amendments and GNU extensions. |
132 | 126 | case gnucxx03 = "gnu++03"
|
133 | 127 |
|
134 |
| - /// ISO C++ 2011 with amendments and GNU extensions. |
| 128 | + /// The identifier for the ISO C++ 2011 language standard with amendments and GNU extensions. |
135 | 129 | case gnucxx11 = "gnu++11"
|
136 | 130 |
|
137 |
| - /// ISO C++ 2014 with amendments and GNU extensions. |
| 131 | + /// The identifier for the ISO C++ 2014 language standard with amendments and GNU extensions. |
138 | 132 | case gnucxx14 = "gnu++14"
|
139 | 133 |
|
140 |
| - /// ISO C++ 2017 with amendments and GNU extensions. |
| 134 | + /// The identifier for the ISO C++ 2017 language standard with amendments and GNU extensions. |
141 | 135 | @available(_PackageDescription, introduced: 5.4)
|
142 | 136 | case gnucxx17 = "gnu++17"
|
143 | 137 |
|
144 |
| - /// ISO C++ 2017 with amendments and GNU extensions. |
| 138 | + /// The identifier for the ISO C++ 2017 language standard with amendments and GNU extensions. |
145 | 139 | @available(_PackageDescription, introduced: 4, deprecated: 5.4, renamed: "gnucxx17")
|
146 | 140 | case gnucxx1z = "gnu++1z"
|
147 | 141 |
|
148 |
| - /// ISO C++ 2020 DIS with GNU extensions. |
| 142 | + /// The identifier for the ISO C++ 2020 language standard with GNU extensions. |
149 | 143 | @available(_PackageDescription, introduced: 5.4)
|
150 | 144 | case gnucxx20 = "gnu++20"
|
151 | 145 |
|
152 |
| - /// Working draft for ISO C++ 2023 DIS with GNU extensions. |
| 146 | + /// The identifier for the ISO C++ 2023 draft language standard with GNU extensions. |
153 | 147 | @available(_PackageDescription, introduced: 5.6)
|
154 | 148 | case gnucxx2b = "gnu++2b"
|
155 | 149 | }
|
156 | 150 |
|
157 |
| -/// The version of the Swift language to use for compiling Swift sources in the package. |
| 151 | +/// The version of the Swift language you use to compile Swift sources in the |
| 152 | +/// package. |
158 | 153 | public enum SwiftVersion {
|
| 154 | + /// The identifier for the Swift 3 language version. |
159 | 155 | @available(_PackageDescription, introduced: 4, obsoleted: 5)
|
160 | 156 | case v3
|
161 | 157 |
|
| 158 | + /// The identifier for the Swift 4 language version. |
162 | 159 | @available(_PackageDescription, introduced: 4)
|
163 | 160 | case v4
|
164 | 161 |
|
| 162 | + /// The identifier for the Swift 4.2 language version. |
165 | 163 | @available(_PackageDescription, introduced: 4)
|
166 | 164 | case v4_2
|
167 | 165 |
|
| 166 | + /// The identifier for the Swift 5 language version. |
168 | 167 | @available(_PackageDescription, introduced: 5)
|
169 | 168 | case v5
|
170 | 169 |
|
|
0 commit comments