mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 01:10:28 +03:00
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:
parent
872e18f660
commit
d6b786b3fe
Notes:
sideshowbarker
2024-07-16 23:52:22 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/d6b786b3fe Pull-request: https://github.com/SerenityOS/serenity/pull/18708 Reviewed-by: https://github.com/ADKaster ✅
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user