1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators
Timothy Flynn b543c3e490 Meta: Don't assume how each generator wants to generate keyed map names
The generate_mapping helper generates a series of structs like:

    Array<SomeType, 1> s_mapping_key_0 {};
    Array<SomeType, 2> s_mapping_key_1 {};
    Array<SomeType, 3> s_mapping_key_2 {};
    Array<Span<SomeType const>> s_mapping { {
        s_mapping_key_0.span(),
        s_mapping_key_1.span(),
        s_mapping_key_2.span(),
    } };

Where the names of the struct were generated by the format_mapping_name
lambda inside the helper. Rather than this lambda making assumptions on
how each generator wants to name its structs, add a parameter for the
caller to provide a naming formatter.

This is because the TimeZoneData generator will want pretty specific
identifier formatting rules.
2022-01-11 00:36:45 +01:00
..
IPCCompiler IPCCompiler: Default initialize all parameter member variables 2021-12-22 13:29:31 -08:00
LibTimeZone LibTimeZone: Remove accidental pluralization of generator variable names 2022-01-11 00:36:45 +01:00
LibUnicode Meta: Don't assume how each generator wants to generate keyed map names 2022-01-11 00:36:45 +01:00
LibWeb Everywhere: Fix many spelling errors 2022-01-07 10:56:59 +01:00
StateMachineGenerator Meta: Define and use lagom_tool() CMake helper function for all Tools 2021-09-15 19:04:52 +04:30
CMakeLists.txt LibTimeZone+Meta: Add plumbing for an IANA Time Zone Database generator 2022-01-08 12:45:34 +01:00