forked from qt-creator/qt-creator
Runner: Print command line with quoted arguments
...for easier debugging. Change-Id: I53d4128defd9ac03350ce38d4d3f687191921a15 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -100,7 +100,7 @@ bool ClangStaticAnalyzerRunner::run(const QString &filePath, const QStringList &
|
|||||||
QTC_ASSERT(!m_logFile.isEmpty(), return false);
|
QTC_ASSERT(!m_logFile.isEmpty(), return false);
|
||||||
const QStringList arguments = constructCommandLineArguments(filePath, m_logFile,
|
const QStringList arguments = constructCommandLineArguments(filePath, m_logFile,
|
||||||
compilerOptions);
|
compilerOptions);
|
||||||
m_commandLine = m_clangExecutable + QLatin1Char(' ') + arguments.join(QLatin1Char(' '));
|
m_commandLine = (QStringList(m_clangExecutable) + arguments).join(QLatin1String("\" \""));
|
||||||
|
|
||||||
qCDebug(LOG) << "Starting" << m_commandLine;
|
qCDebug(LOG) << "Starting" << m_commandLine;
|
||||||
m_process.start(m_clangExecutable, arguments);
|
m_process.start(m_clangExecutable, arguments);
|
||||||
|
Reference in New Issue
Block a user