[PATCH] D136036: [Clang] Add __has_constexpr_builtin support

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 17 10:05:04 PDT 2022


shafik added a comment.

In D136036#3860945 <https://reviews.llvm.org/D136036#3860945>, @Izaron wrote:

> This macro will be needed because we are making constexpr `<cmath>` and `<cstdlib>`. We will conditionally make the functions constexpr until all supported compilers have full support.
>
> We had a discussion where we found out that we need `__has_builtin_constexpr`: https://discourse.llvm.org/t/how-do-we-plan-to-make-constexpr-cmath-and-cstdlib/65930 Please read it if you wonder why we need it =) Thank you for your attention!

Please add some of this context to the release notes and/or documentation, thank you.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136036/new/

https://reviews.llvm.org/D136036



More information about the cfe-commits mailing list