ladybird/Userland/DevTools/HackStudio
Ali Mohammad Pur 51c2c69357 AK+Everywhere: Disallow constructing Functions from incompatible types
Previously, AK::Function would accept _any_ callable type, and try to
call it when called, first with the given set of arguments, then with
zero arguments, and if all of those failed, it would simply not call the
function and **return a value-constructed Out type**.
This lead to many, many, many hard to debug situations when someone
forgot a `const` in their lambda argument types, and many cases of
people taking zero arguments in their lambdas to ignore them.
This commit reworks the Function interface to not include any such
surprising behaviour, if your function instance is not callable with
the declared argument set of the Function, it can simply not be
assigned to that Function instance, end of story.
2021-06-06 00:27:30 +04:30
..
Debugger LibGUI/AbstractView: Remove on_selection 2021-05-26 17:39:13 +04:30
Dialogs AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
Git LibGUI/AbstractView: Remove on_selection 2021-05-26 17:39:13 +04:30
LanguageClients Userland: Mark subclasses of IPC::{Client,Server}Connection final 2021-05-23 09:53:55 +02:00
LanguageServers CppLanguageServer: Work with a HashMap of Symbols in each document 2021-06-01 22:20:13 +02:00
AutoCompleteResponse.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ClassViewWidget.cpp HackStudio: Add comment about lexicographical insertion to ClassView 2021-06-04 19:29:22 +02:00
ClassViewWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CMakeLists.txt HackStudio: Remove the visual form editor 2021-05-10 12:43:34 +02:00
CodeDocument.cpp AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
CodeDocument.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Editor.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
Editor.h LibGUI: Some tweaks for TextEditor's will-execute-command virtual 2021-05-08 22:17:50 +02:00
EditorWrapper.cpp HackStudio: Remove unused includes 2021-06-02 23:15:52 +01:00
EditorWrapper.h HackStudio: Show dialog on build and exit if there are unsaved changes 2021-05-02 22:49:25 +02:00
FindInFilesWidget.cpp AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
FindInFilesWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HackStudio.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HackStudioWidget.cpp Userland: Rename LibThread => LibThreading 2021-05-22 18:54:22 +02:00
HackStudioWidget.h Userland: Rename LibThread => LibThreading 2021-05-22 18:54:22 +02:00
Language.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Language.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LanguageClient.cpp LibIPC: Remove unnecessary IPC::ServerConnection::handshake() 2021-05-23 09:53:55 +02:00
LanguageClient.h LibIPC: Remove unnecessary IPC::ServerConnection::handshake() 2021-05-23 09:53:55 +02:00
Locator.cpp HackStudio: Make locator lose focus on close 2021-06-02 23:15:52 +01:00
Locator.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
main.cpp HackStudio: Remove unused includes 2021-06-02 23:15:52 +01:00
Project.cpp DevTools: Remove redundant default destructor and forward declarations 2021-05-21 22:53:33 +01:00
Project.h DevTools: Remove redundant default destructor and forward declarations 2021-05-21 22:53:33 +01:00
ProjectDeclarations.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProjectDeclarations.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProjectFile.cpp HackStudio: Remove unused includes 2021-06-02 23:15:52 +01:00
ProjectFile.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
ProjectTemplate.cpp HackStudio: Remove unused includes 2021-06-02 23:15:52 +01:00
ProjectTemplate.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
TerminalWrapper.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
TerminalWrapper.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00