Revert "[libc++] Remove _LIBCPP_CONSTEVAL"
authorHans Wennborg <hans@chromium.org>
Mon, 13 Feb 2023 15:17:02 +0000 (16:17 +0100)
committerHans Wennborg <hans@chromium.org>
Mon, 13 Feb 2023 15:29:57 +0000 (16:29 +0100)
commitbbff77a14ef2e36a7fda9e0bda3c256be503865a
tree046506590a7378eddac67c16b65939242b0bfe82
parent04a2baf58f2362cac85edbd55747cecb135b9ae5
Revert "[libc++] Remove _LIBCPP_CONSTEVAL"

It causes mysterious memory leaks when comparing std::string, see GitHub
Issue #60709 and the code review.

> All supported compilers support `consteval`, so there is no more need for the macro.
>
> Reviewed By: ldionne, Mordante, #libc
>
> Spies: libcxx-commits
>
> Differential Revision: https://reviews.llvm.org/D143489

This reverts commit aaef3b82f4f0dd3924a3491b381d5015ff472b86.
libcxx/.clang-format
libcxx/include/__compare/ordering.h
libcxx/include/__config