Use QtcProcess for clangbackend

Change-Id: Ifdcdba765409a09861f81dd3dff405115a986801
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2021-08-31 10:14:22 +02:00
parent 21fabfeeb6
commit 8724a4efbb
9 changed files with 70 additions and 43 deletions

View File

@@ -39,9 +39,13 @@
QT_BEGIN_NAMESPACE
class QTemporaryDir;
class QProcessEnvironment;
QT_END_NAMESPACE
namespace Utils {
class Environment;
class QtcProcess;
}
namespace ClangBackEnd {
class CLANGSUPPORT_EXPORT ProcessCreator
@@ -62,12 +66,12 @@ public:
private:
void checkIfProcessPathExists() const;
void checkIfProcessWasStartingSuccessful(QProcess *process) const;
[[noreturn]] void dispatchProcessError(QProcess *process) const;
void checkIfProcessWasStartingSuccessful(Utils::QtcProcess *process) const;
[[noreturn]] void dispatchProcessError(Utils::QtcProcess *process) const;
void postProcessStartedEvent() const;
[[noreturn]] void throwProcessException(const QString &message) const;
QProcessEnvironment processEnvironment() const;
Utils::Environment processEnvironment() const;
private:
std::unique_ptr<Utils::TemporaryDirectory> m_temporaryDirectory;