Clang: Fix progress bar

Sometimes the messages are not send immediately, so we force it.

Task-number: QTCREATORBUG-21957
Change-Id: I9526cb4b4e3dd8b7a02e15f77bffdc51917d47c8
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Marco Bubke
2019-02-19 19:20:57 +01:00
parent 256d140933
commit 8c781f7e6a
26 changed files with 157 additions and 102 deletions

View File

@@ -44,9 +44,8 @@ QString currentProcessId()
RefactoringConnectionClient::RefactoringConnectionClient(RefactoringClientInterface *client)
: ConnectionClient(Utils::TemporaryDirectory::masterDirectoryPath()
+ QStringLiteral("/ClangRefactoringBackEnd-")
+ currentProcessId()),
m_serverProxy(client, nullptr)
+ QStringLiteral("/ClangRefactoringBackEnd-") + currentProcessId())
, m_serverProxy(client)
{
m_processCreator.setTemporaryDirectoryPattern("clangrefactoringbackend-XXXXXX");
m_processCreator.setArguments({connectionName(),
@@ -81,9 +80,9 @@ QString RefactoringConnectionClient::outputName() const
return QStringLiteral("RefactoringConnectionClient");
}
void RefactoringConnectionClient::newConnectedServer(QIODevice *ioDevice)
void RefactoringConnectionClient::newConnectedServer(QLocalSocket *localSocket)
{
m_serverProxy.setIoDevice(ioDevice);
m_serverProxy.setLocalSocket(localSocket);
}
} // namespace ClangBackEnd

View File

@@ -44,7 +44,7 @@ protected:
void sendEndCommand() override;
void resetState() override;
QString outputName() const override;
void newConnectedServer(QIODevice *ioDevice) override;
void newConnectedServer(QLocalSocket *localSocket) override;
private:
RefactoringServerProxy m_serverProxy;