From 2b32f945275f148abe64d0c47ac493d4e5b90d7d Mon Sep 17 00:00:00 2001 From: rmg-x Date: Sat, 22 Feb 2025 09:19:23 -0600 Subject: [PATCH] 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 --- Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSEnums.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSEnums.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSEnums.cpp index ae8797552d0..7d2022197fb 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSEnums.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSEnums.cpp @@ -111,7 +111,7 @@ ErrorOr 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();