1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

CodeGenerators: Fix clang-18 crash by specifying types explicitly

clang 18.1.8 was crashing during the build without this change.

Filed a bug report here:
https://github.com/llvm/llvm-project/issues/128359

Co-authored-by: Tim Flynn <trflynn89@pm.me>
This commit is contained in:
rmg-x 2025-02-22 09:19:23 -06:00 committed by Tim Flynn
parent ff1ef07160
commit 2b32f94527
Notes: github-actions[bot] 2025-02-22 17:39:09 +00:00

View file

@ -111,7 +111,7 @@ ErrorOr<void> generate_implementation_file(JsonObject& enums_data, Core::File& f
namespace Web::CSS {
)~~~");
enums_data.for_each_member([&](auto& name, auto& value) -> void {
enums_data.for_each_member([&](String const& name, JsonValue const& value) {
VERIFY(value.is_array());
auto& members = value.as_array();