[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-22 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
redcode wrote: @jrtc27 has explained to me that the `{{$}}` expressions in `init-v7k-compat.c` are not due to a bug, so I have updated that file as well. https://github.com/llvm/llvm-project/pull/123514 ___ cfe-commits mailing list cfe-commits@lists.l

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-22 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
https://github.com/redcode updated https://github.com/llvm/llvm-project/pull/123514 From 507b9804cc748a2441db8d1eb36a01be34bc21ce Mon Sep 17 00:00:00 2001 From: redcode Date: Sun, 19 Jan 2025 15:29:01 +0100 Subject: [PATCH 1/2] [Clang] Add predefined macros `__INT_C`, `__UINT_C`, `__INTMAX_C`

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-22 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
https://github.com/redcode updated https://github.com/llvm/llvm-project/pull/123514 From 507b9804cc748a2441db8d1eb36a01be34bc21ce Mon Sep 17 00:00:00 2001 From: redcode Date: Sun, 19 Jan 2025 15:29:01 +0100 Subject: [PATCH] [Clang] Add predefined macros `__INT_C`, `__UINT_C`, `__INTMAX_C` and

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-22 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
redcode wrote: > Thank you for the fix! Can you also add test coverage for the changes to > `clang/test/Headers` and a release note so users know about the fix to > `clang/docs/ReleaseNotes.rst`? > > Also, precommit CI found relevant failures: > > ``` > TEST 'Clang :: Pre

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
redcode wrote: > > > This seems related to #85995. Do you plan to fix that issue together? > > > > > > I wasn't planning on fixing Clang's ``, I thought it would be > > better handled by the maintainers of the standard library, but I can do it > > if you want. > > Do you want me to do it? >

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
redcode wrote: > This seems related to #85995. Do you plan to fix that issue together? I wasn't planning on fixing Clang's ``, I thought it would be better handled by the maintainers of the standard library, but I can do it if you want. Do you want me to do it? https://github.com/llvm/llvm-pr

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
https://github.com/redcode created https://github.com/llvm/llvm-project/pull/123514 This small PR makes Clang predefine the following macros: ``` __INT8_C(c) __INT16_C(c) __INT32_C(c) __INT64_C(c) __INTMAX_C(c) __UINT8_C(c) __UINT16_C(c) __UINT32_C(c) __UINT64_C(c) __UINTMAX_C(c) ``` Which imp