ladybird/Userland/Libraries/LibIPC
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
..
CMakeLists.txt Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
Concepts.h LibIPC+Everywhere: Change IPC decoders to construct values in-place 2022-12-26 09:36:16 +01:00
Connection.cpp LibIPC: Only run responsiveness timer when there is an event loop 2022-12-15 00:21:00 -07:00
Connection.h IPCCompiler+LibIPC: Generate message decoders with better TRY semantics 2022-12-26 09:36:16 +01:00
ConnectionFromClient.h LibIPC: Make noise when shutting down because of an error 2022-06-10 16:35:05 +01:00
ConnectionToServer.h SystemServer+LoginServer+Userland: Switch to sid-based sockets 2022-10-03 11:11:29 +02:00
Decoder.cpp LibIPC+Everywhere: Change IPC decoders to construct values in-place 2022-12-26 09:36:16 +01:00
Decoder.h LibIPC+Everywhere: Change IPC decoders to construct values in-place 2022-12-26 09:36:16 +01:00
Dictionary.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Encoder.cpp LibIPC: Support sending Variants over IPC 2022-12-13 10:24:59 -05:00
Encoder.h LibIPC: Support sending Variants over IPC 2022-12-13 10:24:59 -05:00
File.h LibIPC: Use default instead of an empty constructor/destructor 2021-09-16 17:17:13 +02:00
Forward.h LibIPC+Everywhere: Change IPC decoders to construct values in-place 2022-12-26 09:36:16 +01:00
Message.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
MultiServer.h LibIPC: Add a hook to MultiServer to inform owners of new clients 2022-12-11 10:08:17 -05:00
SingleServer.h Userland: Rename IPC ClientConnection => ConnectionFromClient 2022-02-25 22:35:12 +01:00
Stub.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00