1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-31 13:32:45 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator
Timothy Flynn c3abb1396c LibJS+LibWeb: Convert string view PrimitiveString instances to String
First, this adds an overload of PrimitiveString::create for StringView.
This overload will throw an OOM completion if creating a String fails.
This is not only a bit more convenient, but it also ensures at compile
time that all PrimitiveString::create(string_view) invocations will be
handled as String and OOM-aware.

Next, this wraps all invocations to PrimitiveString::create(string_view)
with MUST_OR_THROW_OOM.

A small PrimitiveString::create(DeprecatedFlyString) overload also had
to be added to disambiguate between the StringView and DeprecatedString
overloads.
2023-02-09 17:13:33 +00:00
..
CMakeLists.txt BindingsGenerator: Write generated code to disk instead of stdout 2022-12-13 11:31:24 +01:00
IDLGenerators.cpp LibJS+LibWeb: Convert string view PrimitiveString instances to String 2023-02-09 17:13:33 +00:00
main.cpp BindingsGenerator+CMake: Keep track of IDL dependencies 2022-12-13 11:31:24 +01:00
Namespaces.h LibWeb: Add namespace qualifier to type names equal to a C++ namespace 2022-12-10 00:21:10 +00:00