forked from qt-creator/qt-creator
Clang: Remove ClangCodeModelClientDispatcher
We always use one client and the dispatching is removing to possibility of moving commands. Moving the client to IpcServerInterface improves the code sharing. Change-Id: I5f102ab7907239572534b7d4c2848abbaade69b6 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -29,10 +29,27 @@
|
||||
|
||||
namespace ClangBackEnd {
|
||||
|
||||
template <typename ClientInterface>
|
||||
class CMBIPC_EXPORT IpcServerInterface : public IpcInterface
|
||||
{
|
||||
public:
|
||||
void setClient(ClientInterface *client)
|
||||
{
|
||||
client_ = client;
|
||||
}
|
||||
|
||||
void resetClient()
|
||||
{
|
||||
client_ = nullptr;
|
||||
}
|
||||
|
||||
ClientInterface *client()
|
||||
{
|
||||
return client_;
|
||||
}
|
||||
|
||||
private:
|
||||
ClientInterface *client_;
|
||||
};
|
||||
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
Reference in New Issue
Block a user