AK: Use consteval String factories on macOS

Xcode 14.3 ships with clang 15, which supports our usage of consteval to
validate short strings at compile time.
This commit is contained in:
Timothy Flynn 2023-05-07 12:49:37 -04:00 committed by Andrew Kaster
parent 872e18f660
commit d6b786b3fe

View file

@ -29,8 +29,8 @@ namespace Detail {
class StringData;
}
// FIXME: Remove this when Apple Clang and OpenBSD Clang fully supports consteval.
#if defined(AK_OS_MACOS) || defined(AK_OS_OPENBSD)
// FIXME: Remove this when OpenBSD Clang fully supports consteval.
#if defined(AK_OS_OPENBSD)
# define AK_SHORT_STRING_CONSTEVAL constexpr
#else
# define AK_SHORT_STRING_CONSTEVAL consteval