Clang: Add clang refactoring

Change-Id: I2e3f36f810276da3f8dc7dcc587b06f8edb586d3
GPush-Base: d02f51b48fc752fddcdef6dcb32b3f7f6c0195a3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2016-08-04 15:26:53 +02:00
parent 2b9edb35ea
commit 4cdb5bab15
103 changed files with 5434 additions and 112 deletions

View File

@@ -35,6 +35,7 @@
QT_BEGIN_NAMESPACE
class QProcess;
class QTemporaryDir;
QT_END_NAMESPACE
class Utf8String;
@@ -79,9 +80,14 @@ signals:
protected:
QIODevice *ioDevice();
const QTemporaryDir &temporaryDirectory() const;
LinePrefixer &stdErrPrefixer();
LinePrefixer &stdOutPrefixer();
virtual void sendEndCommand() = 0;
virtual void resetCounter() = 0;
virtual QString connectionName() const = 0;
virtual QString outputName() const = 0;
private:
std::unique_ptr<QProcess> startProcess();
@@ -108,6 +114,9 @@ private:
QProcessEnvironment processEnvironment() const;
private:
LinePrefixer stdErrPrefixer_;
LinePrefixer stdOutPrefixer_;
mutable std::unique_ptr<QProcess> process_;
QLocalSocket localSocket;
QTimer processAliveTimer;
@@ -115,8 +124,6 @@ private:
bool isAliveTimerResetted = false;
bool processIsStarting = false;
LinePrefixer stdErrPrefixer = QByteArrayLiteral("clangbackend.stderr: ");
LinePrefixer stdOutPrefixer = QByteArrayLiteral("clangbackend.stdout: ");
};
} // namespace ClangBackEnd