[clang] [clang][Sema] Fix for enums overflowing (#24667) (PR #78742)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 5 09:19:58 PST 2024
================
@@ -135,6 +135,12 @@ C23 Feature Support
``__TYPE_FMTb__`` (e.g., ``__UINT_FAST64_FMTB__``) in C23 mode for use with
macros typically exposed from ``<inttypes.h>``, such as ``PRIb8``.
(`#81896: <https://github.com/llvm/llvm-project/issues/81896>`_).
+- Enumerations should allow values greater than INT_MAX and smaller than
+ INT_MIN, in order to provide a value-preserved set of integer constants. `N3029 Improved Normal Enumerations <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3029.htm>`_
----------------
AaronBallman wrote:
```suggestion
- Enumerations should allow values greater than ``INT_MAX`` and smaller than
``INT_MIN``, in order to provide a value-preserved set of integer constants. `N3029 Improved Normal Enumerations <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3029.htm>`_
```
https://github.com/llvm/llvm-project/pull/78742
More information about the cfe-commits
mailing list