Skip to content

Commit f4b8548

Browse files
committed
Update Xcode support for C2y
1 parent 6f8fa37 commit f4b8548

1 file changed

Lines changed: 26 additions & 8 deletions

File tree

features_c2y.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ features:
1313
support:
1414
- GCC ?
1515
- Clang (partial)
16-
- Xcode ?
16+
- Xcode 16.3 (partial)
1717
hints:
1818
- target: Clang
1919
msg: "Clang does not document the implementation-defined behavior for decay of an array with the register storage class specifier. Clang does not diagnose an extern inline function with no definition in the TU. Clang accepts and rejects redeclarations with/without an alignment specifier, depending on the order of the declarations."
20+
- target: Xcode 16.3
21+
msg: "See hint for Clang."
2022

2123
- desc: "Accessing byte arrays"
2224
paper: N3254
@@ -53,12 +55,14 @@ features:
5355
support:
5456
- GCC
5557
- Clang
56-
- Xcode ?
58+
- Xcode
5759
hints:
5860
- target: GCC
5961
msg: "GCC has never supported imaginary types."
6062
- target: Clang
6163
msg: "Clang has never supported imaginary types."
64+
- target: Xcode
65+
msg: "Apple Clang has never supported imaginary types."
6266

6367
- desc: "Floating-point exceptions for macro replacements"
6468
paper: N3286
@@ -125,7 +129,7 @@ features:
125129
support:
126130
- Clang
127131
- GCC
128-
- Xcode ?
132+
- Xcode 16.3
129133

130134
- desc: "Slay Some Earthly Demons IX"
131135
paper: N3347
@@ -145,7 +149,7 @@ features:
145149
support:
146150
- GCC 15
147151
- Clang 21
148-
- Xcode ?
152+
- Xcode 26.4
149153

150154
- desc: "Named loops"
151155
paper: N3355
@@ -189,6 +193,7 @@ features:
189193
support:
190194
- GCC 16
191195
- Clang 21
196+
- Xcode 26.4
192197

193198
- desc: "Restartable Functions for Efficient Character Conversions"
194199
paper: N3366
@@ -219,6 +224,7 @@ features:
219224
paper: N3409
220225
support:
221226
- Clang 21
227+
- Xcode 26.4
222228

223229
- desc: "Slay Some Earthly Demons XI"
224230
paper: N3410
@@ -237,6 +243,11 @@ features:
237243
- desc: "Const integer declarations as implicit `constexpr`"
238244
paper: N3443
239245
content: c-const-constexpr.md
246+
support:
247+
- Xcode 16.3 (partial)
248+
hints:
249+
- target: Xcode 16.3
250+
msg: "Constant folding of const integers works via a GNU extension, not native C2y constexpr semantics. Issues a `-Wgnu-folding-constant` warning under `-pedantic`."
240251

241252
- desc: "Anonymous structure/union initialization"
242253
paper: N3451
@@ -248,6 +259,10 @@ features:
248259
content: c-counter-macro.md
249260
support:
250261
- Clang 22
262+
- Xcode 16.3 (hint)
263+
hints:
264+
- target: Xcode 16.3
265+
msg: "Supported as a pre-existing GNU extension prior to C2y standardization."
251266

252267
- desc: "Complex operators"
253268
paper: N3460
@@ -314,7 +329,7 @@ features:
314329
paper: N3525
315330
support:
316331
- Clang
317-
- Xcode ?
332+
- Xcode 16.3
318333

319334
- desc: "Member access of an incomplete object"
320335
paper: N3532
@@ -336,20 +351,23 @@ features:
336351
paper: N3605
337352
support:
338353
- Clang
339-
- Xcode ?
354+
- Xcode 26.4
340355

341356
- desc: "Allow calling `static inline` within `extern inline`"
342357
paper: N3622
343358
support:
344359
- Clang 22
345-
- Xcode ?
360+
- Xcode 16.3 (partial)
361+
hints:
362+
- target: Xcode 16.3
363+
msg: "Code compiles but emits `-Wstatic-in-inline` warning. Full C2y semantics (warning suppression in `c2y` mode) require Clang 22."
346364

347365
- desc: "Earthly Demon XV: Definition of Main"
348366
paper: N3623
349367
support:
350368
- GCC
351369
- Clang
352-
- Xcode ?
370+
- Xcode 16.3
353371

354372
- desc: "Composite types"
355373
paper: N3652

0 commit comments

Comments
 (0)