1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:47:45 +00:00
serenity/Userland/DevTools/HackStudio
Timothy Flynn 9b483625e6 LibIPC+Everywhere: Change IPC decoders to construct values in-place
Currently, the generated IPC decoders will default-construct the type to
be decoded, then pass that value by reference to the concrete decoder.
This, of course, requires that the type is default-constructible. This
was an issue for decoding Variants, which had to require the first type
in the Variant list is Empty, to ensure it is default constructible.

Further, this made it possible for values to become uninitialized in
user-defined decoders.

This patch makes the decoder interface such that the concrete decoders
themselves contruct the decoded type upon return from the decoder. To do
so, the default decoders in IPC::Decoder had to be moved to the IPC
namespace scope, as these decoders are now specializations instead of
overloaded methods (C++ requires specializations to be in a namespace
scope).
2022-12-26 09:36:16 +01:00
..
Debugger HackStudio: Add a factory function for DebugInfoWidget 2022-12-16 09:58:51 +01:00
Dialogs AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Git HackStudio: Open projects after the action tab was created 2022-12-23 23:27:45 +01:00
LanguageClients AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LanguageServers HackStudio: Port to Core::Stream::File :^) 2022-12-20 10:58:54 +01:00
AutoCompleteResponse.h LibIPC+Everywhere: Change IPC decoders to construct values in-place 2022-12-26 09:36:16 +01:00
ClassViewWidget.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
ClassViewWidget.h LibCodeComprehension: Re-organize code comprehension related code 2022-05-21 18:15:58 +02:00
CMakeLists.txt HackStudio: Remove FindWidget 2022-11-29 15:39:13 +00:00
CodeDocument.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CodeDocument.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Editor.cpp HackStudio: Port to Core::Stream::File :^) 2022-12-20 10:58:54 +01:00
Editor.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
EditorWrapper.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
EditorWrapper.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FindInFilesWidget.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
FindInFilesWidget.h HackStudio: Make FindInFilesWidget reset when opening new project 2021-08-22 10:30:06 +02:00
GMLPreviewWidget.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
GMLPreviewWidget.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
HackStudio.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
HackStudioWidget.cpp HackStudio: Remove release_values_but_fixme_should_propogate_errorss 2022-12-26 04:57:02 +03:30
HackStudioWidget.h HackStudio: Remove release_values_but_fixme_should_propogate_errorss 2022-12-26 04:57:02 +03:30
Language.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Language.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LanguageClient.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LanguageClient.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Locator.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Locator.h DevTools: Use default constructors/destructors 2022-02-16 07:33:15 -05:00
main.cpp HackStudio: Remove release_values_but_fixme_should_propogate_errorss 2022-12-26 04:57:02 +03:30
Project.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Project.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectBuilder.cpp LibCore: Remove the force parameter from File::remove 2022-12-23 10:38:14 -05:00
ProjectBuilder.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectConfig.cpp HackStudio: Port to Core::Stream::File :^) 2022-12-20 10:58:54 +01:00
ProjectConfig.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectDeclarations.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectDeclarations.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectFile.cpp HackStudio: Port to Core::Stream::File :^) 2022-12-20 10:58:54 +01:00
ProjectFile.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectTemplate.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectTemplate.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TerminalWrapper.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TerminalWrapper.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ToDoEntries.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ToDoEntries.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ToDoEntriesWidget.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ToDoEntriesWidget.h HackStudio: Clear ToDo entries upon opening new project 2021-08-22 10:30:06 +02:00