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:
Nikolai Kosjar
2014-10-28 09:52:52 +01:00
parent c9feffd2a0
commit cb49d04f46

View File

@@ -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);