forked from qt-creator/qt-creator
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:
@@ -233,12 +233,12 @@ void ConnectionClient::printLocalSocketError(QLocalSocket::LocalSocketError sock
|
||||
|
||||
void ConnectionClient::printStandardOutput()
|
||||
{
|
||||
QTextStream(stdout) << stdOutPrefixer.prefix(process_->readAllStandardOutput());
|
||||
qDebug("%s", stdOutPrefixer.prefix(process_->readAllStandardOutput()).constData());
|
||||
}
|
||||
|
||||
void ConnectionClient::printStandardError()
|
||||
{
|
||||
QTextStream(stderr) << stdErrPrefixer.prefix(process_->readAllStandardError());
|
||||
qDebug("%s", stdErrPrefixer.prefix(process_->readAllStandardError()).constData());
|
||||
}
|
||||
|
||||
void ConnectionClient::finishProcess()
|
||||
|
Reference in New Issue
Block a user