[clang] [clang][sema] Add support and documentation for `__has_extension(c_fixed_enum)` (PR #117507)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 27 10:30:50 PST 2024


================
@@ -1998,6 +1998,9 @@ value, is ``unsigned char``.
 Use ``__has_feature(objc_fixed_enum)`` to determine whether support for fixed
 underlying types is available in Objective-C.
 
+Use ``__has_extension(c_fixed_enum)`` to determine whether support for fixed
+underlying types is available in C.
----------------
AaronBallman wrote:

We should probably update the wording here to mention `__has_feature` and language version behavior.

https://github.com/llvm/llvm-project/pull/117507


More information about the cfe-commits mailing list