forked from qt-creator/qt-creator
Use native dir separators in user visible paths
Change-Id: Ifc54be09fae6125a65a016d7030ca1d291e308c2 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -237,9 +237,9 @@ bool ClangStaticAnalyzerRunControl::startEngine()
|
|||||||
emit starting(this);
|
emit starting(this);
|
||||||
|
|
||||||
QTC_ASSERT(m_projectInfo.isValid(), emit finished(); return false);
|
QTC_ASSERT(m_projectInfo.isValid(), emit finished(); return false);
|
||||||
const QString projectFile = m_projectInfo.project()->projectFilePath().toString();
|
const Utils::FileName projectFile = m_projectInfo.project()->projectFilePath();
|
||||||
appendMessage(tr("Running Clang Static Analyzer on %1").arg(projectFile) + QLatin1Char('\n'),
|
appendMessage(tr("Running Clang Static Analyzer on %1").arg(projectFile.toUserOutput())
|
||||||
Utils::NormalMessageFormat);
|
+ QLatin1Char('\n'), Utils::NormalMessageFormat);
|
||||||
|
|
||||||
// Check clang executable
|
// Check clang executable
|
||||||
bool isValidClangExecutable;
|
bool isValidClangExecutable;
|
||||||
@@ -344,7 +344,8 @@ void ClangStaticAnalyzerRunControl::analyzeNextFile()
|
|||||||
m_runners.insert(runner);
|
m_runners.insert(runner);
|
||||||
QTC_ASSERT(runner->run(unit.file, unit.arguments), return);
|
QTC_ASSERT(runner->run(unit.file, unit.arguments), return);
|
||||||
|
|
||||||
appendMessage(tr("Analyzing \"%1\".").arg(unit.file) + QLatin1Char('\n'),
|
appendMessage(tr("Analyzing \"%1\".").arg(
|
||||||
|
Utils::FileName::fromString(unit.file).toUserOutput()) + QLatin1Char('\n'),
|
||||||
Utils::StdOutFormat);
|
Utils::StdOutFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user