[PATCH] D52339: Support enums with a fixed underlying type in all language modes

Erik Pilkington via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 20 19:02:30 PDT 2018


erik.pilkington created this revision.
erik.pilkington added reviewers: rsmith, rjmccall.
Herald added a subscriber: dexonsmith.

A significant number of internal C users have been complaining about the lack of support for fixed enums. We already support this in Objective-C mode, as well as in C mode with -fms-extensions. Supporting this in C makes us more consistent, and provides a useful feature to C users!

If there is some doubt as to whether we want this, I can start a thread on cfe-dev for the wider audience.

rdar://43831380

Thanks for taking a look!


Repository:
  rC Clang

https://reviews.llvm.org/D52339

Files:
  clang/include/clang/Basic/DiagnosticParseKinds.td
  clang/include/clang/Basic/Features.def
  clang/lib/Parse/ParseDecl.cpp
  clang/test/Sema/fixed-enum.c
  clang/test/SemaObjC/enum-fixed-type.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52339.166397.patch
Type: text/x-patch
Size: 6258 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180921/e9256f4e/attachment.bin>


More information about the cfe-commits mailing list