mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 17:58:59 +00: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: d6b786b3fe
Pull-request: https://github.com/SerenityOS/serenity/pull/18708
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue