mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Userland: Rename IPC ClientConnection => ConnectionFromClient
This was done with CLion's automatic rename feature and with: find . -name ClientConnection.h | rename 's/ClientConnection\.h/ConnectionFromClient.h/' find . -name ClientConnection.cpp | rename 's/ClientConnection\.cpp/ConnectionFromClient.cpp/'
This commit is contained in:
parent
efac862570
commit
3a71748e5d
137 changed files with 896 additions and 896 deletions
|
@ -7,16 +7,16 @@
|
|||
#pragma once
|
||||
|
||||
#include "CppComprehensionEngine.h"
|
||||
#include <DevTools/HackStudio/LanguageServers/ClientConnection.h>
|
||||
#include <DevTools/HackStudio/LanguageServers/ConnectionFromClient.h>
|
||||
|
||||
namespace LanguageServers::Cpp {
|
||||
|
||||
class ClientConnection final : public LanguageServers::ClientConnection {
|
||||
C_OBJECT(ClientConnection);
|
||||
class ConnectionFromClient final : public LanguageServers::ConnectionFromClient {
|
||||
C_OBJECT(ConnectionFromClient);
|
||||
|
||||
private:
|
||||
ClientConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
|
||||
: LanguageServers::ClientConnection(move(socket))
|
||||
ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
|
||||
: LanguageServers::ConnectionFromClient(move(socket))
|
||||
{
|
||||
m_autocomplete_engine = make<CppComprehensionEngine>(m_filedb);
|
||||
m_autocomplete_engine->set_declarations_of_document_callback = [this](const String& filename, Vector<GUI::AutocompleteProvider::Declaration>&& declarations) {
|
||||
|
@ -27,6 +27,6 @@ private:
|
|||
};
|
||||
}
|
||||
|
||||
virtual ~ClientConnection() override = default;
|
||||
virtual ~ConnectionFromClient() override = default;
|
||||
};
|
||||
}
|
|
@ -16,7 +16,7 @@
|
|||
#include <LibCpp/Parser.h>
|
||||
#include <LibCpp/Preprocessor.h>
|
||||
#include <LibRegex/Regex.h>
|
||||
#include <Userland/DevTools/HackStudio/LanguageServers/ClientConnection.h>
|
||||
#include <Userland/DevTools/HackStudio/LanguageServers/ConnectionFromClient.h>
|
||||
|
||||
namespace LanguageServers::Cpp {
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "ClientConnection.h"
|
||||
#include "ConnectionFromClient.h"
|
||||
#include "Tests.h"
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/EventLoop.h>
|
||||
|
@ -34,7 +34,7 @@ ErrorOr<int> mode_server()
|
|||
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::ClientConnection>());
|
||||
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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue