Clang: Forward clangbackend output to qDebug instead of stdout/stderr

Now the output of the clangbackend can be viewed with DebugView on Windows.

Downside is that qDebug() will append newlines. This can't be turned off
easily. We accept that.

Change-Id: I7d68bfcf05780c8bcb4a05a538d2d1542a6a6f22
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2016-04-08 11:36:42 +02:00
parent 441d8d29a5
commit 70e3665c86

View File

@@ -233,12 +233,12 @@ void ConnectionClient::printLocalSocketError(QLocalSocket::LocalSocketError sock
void ConnectionClient::printStandardOutput() void ConnectionClient::printStandardOutput()
{ {
QTextStream(stdout) << stdOutPrefixer.prefix(process_->readAllStandardOutput()); qDebug("%s", stdOutPrefixer.prefix(process_->readAllStandardOutput()).constData());
} }
void ConnectionClient::printStandardError() void ConnectionClient::printStandardError()
{ {
QTextStream(stderr) << stdErrPrefixer.prefix(process_->readAllStandardError()); qDebug("%s", stdErrPrefixer.prefix(process_->readAllStandardError()).constData());
} }
void ConnectionClient::finishProcess() void ConnectionClient::finishProcess()