[cfe-dev] Patch for enum sizes
Keith Bauer
onesadcookie at gmail.com
Sun Aug 26 02:35:53 PDT 2007
Well, a start, anyway. Enough to prevent clang asserting when
switching on an enumerated type, at least.
No idea if this is a sensible approach or not. Feel free to flame ;)
I think the code dealing with finding the minimum and maximum enum
constants is really ugly, but I can't see a better way to do it with
the current APSInt API. Anyone have ideas?
-Keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enum-sizing.diff
Type: application/octet-stream
Size: 4367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20070826/38968bdd/attachment.obj>
More information about the cfe-dev
mailing list