mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
AK: Update clang workaround for consteval StringView literals
The underlying issue was fixed in clang-15. See:
a4f8590247
However, Apple and BSD distributions do not yet have this patch.
This commit is contained in:
parent
9f907ebb43
commit
2714f99c1c
Notes:
sideshowbarker
2024-07-17 04:01:41 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/2714f99c1c Pull-request: https://github.com/SerenityOS/serenity/pull/19482 Reviewed-by: https://github.com/BertalanD ✅ Reviewed-by: https://github.com/caoimhebyrne ✅ Reviewed-by: https://github.com/nico ✅
1 changed files with 4 additions and 3 deletions
|
@ -371,9 +371,10 @@ struct CaseInsensitiveASCIIStringViewTraits : public Traits<StringView> {
|
|||
|
||||
}
|
||||
|
||||
// FIXME: Remove this when clang fully supports consteval (specifically in the context of default parameter initialization).
|
||||
// See: https://stackoverflow.com/questions/68789984/immediate-function-as-default-function-argument-initializer-in-clang
|
||||
#if defined(AK_COMPILER_CLANG)
|
||||
// FIXME: Remove this when clang on BSD distributions fully support consteval (specifically in the context of default parameter initialization).
|
||||
// Note that this is fixed in clang-15, but is not yet picked up by all downstream distributions.
|
||||
// See: https://github.com/llvm/llvm-project/issues/48230
|
||||
#if defined(AK_OS_BSD_GENERIC)
|
||||
# define AK_STRING_VIEW_LITERAL_CONSTEVAL constexpr
|
||||
#else
|
||||
# define AK_STRING_VIEW_LITERAL_CONSTEVAL consteval
|
||||
|
|
Loading…
Reference in a new issue