Skip to content

Commit 728a2d9

Browse files
Update clang/docs/LanguageExtensions.rst
Co-authored-by: Aaron Ballman <[email protected]>
1 parent 4a467b9 commit 728a2d9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,13 +1996,15 @@ This specifies that the underlying type, which is used to store the enumeration
19961996
value, is ``unsigned char``.
19971997
19981998
Use ``__has_feature(objc_fixed_enum)`` to determine whether support for fixed
1999-
underlying types is available in Objective-C
1999+
underlying types is available in Objective-C.
20002000
20012001
Use ``__has_extension(c_fixed_enum)`` to determine whether support for fixed
2002-
underlying types is available in C prior to C23
2002+
underlying types is available in C prior to C23. This will also report ``true`` in C23
2003+
and later modes as the functionality is available even if it's not an extension in
2004+
those modes.
20032005
20042006
Use ``__has_feature(c_fixed_enum)`` to determine whether support for fixed
2005-
underlying types is available in C23 and later
2007+
underlying types is available in C23 and later.
20062008
20072009
Interoperability with C++11 lambdas
20082010
-----------------------------------

0 commit comments

Comments
 (0)