mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
LibCodeComprehension: Re-organize code comprehension related code
This moves all code comprehension-related code to a new library, LibCodeComprehension. This also moves some types related to code comprehension tasks (such as autocomplete, find declaration) out of LibGUI and into LibCodeComprehension.
This commit is contained in:
parent
a2c34554cd
commit
b35293d945
Notes:
sideshowbarker
2024-07-17 10:45:06 +09:00
Author: https://github.com/itamar8910
Commit: b35293d945
Pull-request: https://github.com/SerenityOS/serenity/pull/14038
Reviewed-by: https://github.com/kleinesfilmroellchen
65 changed files with 685 additions and 491 deletions
|
@ -5,7 +5,6 @@
|
|||
*/
|
||||
|
||||
#include "ConnectionFromClient.h"
|
||||
#include "Tests.h"
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/EventLoop.h>
|
||||
#include <LibCore/LocalServer.h>
|
||||
|
@ -13,23 +12,7 @@
|
|||
#include <LibIPC/SingleServer.h>
|
||||
#include <LibMain/Main.h>
|
||||
|
||||
static ErrorOr<int> mode_server();
|
||||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
bool tests = false;
|
||||
|
||||
Core::ArgsParser parser;
|
||||
parser.add_option(tests, "Run tests", "tests", 't');
|
||||
parser.parse(arguments);
|
||||
|
||||
if (tests)
|
||||
return run_tests();
|
||||
|
||||
return mode_server();
|
||||
}
|
||||
|
||||
ErrorOr<int> mode_server()
|
||||
ErrorOr<int> serenity_main(Main::Arguments)
|
||||
{
|
||||
Core::EventLoop event_loop;
|
||||
TRY(Core::System::pledge("stdio unix recvfd rpath"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue