mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-30 23:12:45 +00:00 
			
		
		
		
	 b35293d945
			
		
	
	
		b35293d945
		
	
	
	
	
		
			
			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.
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			796 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			796 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Itamar S. <itamar8910@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include "ConnectionFromClient.h"
 | |
| #include <LibCore/ArgsParser.h>
 | |
| #include <LibCore/EventLoop.h>
 | |
| #include <LibCore/LocalServer.h>
 | |
| #include <LibCore/System.h>
 | |
| #include <LibIPC/SingleServer.h>
 | |
| #include <LibMain/Main.h>
 | |
| 
 | |
| ErrorOr<int> serenity_main(Main::Arguments)
 | |
| {
 | |
|     Core::EventLoop event_loop;
 | |
|     TRY(Core::System::pledge("stdio unix recvfd rpath"));
 | |
| 
 | |
|     auto client = TRY(IPC::take_over_accepted_client_from_system_server<LanguageServers::Cpp::ConnectionFromClient>());
 | |
| 
 | |
|     TRY(Core::System::pledge("stdio recvfd rpath"));
 | |
|     TRY(Core::System::unveil("/usr/include", "r"));
 | |
| 
 | |
|     // unveil will be sealed later, when we know the project's root path.
 | |
|     return event_loop.exec();
 | |
| }
 |