forked from qt-creator/qt-creator
Utils: Rename FileName to FilePath
More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -299,7 +299,7 @@ void ClangToolRunControl::start()
|
||||
return;
|
||||
}
|
||||
|
||||
const Utils::FileName projectFile = m_projectInfo.project()->projectFilePath();
|
||||
const Utils::FilePath projectFile = m_projectInfo.project()->projectFilePath();
|
||||
appendMessage(tr("Running %1 on %2").arg(toolName).arg(projectFile.toUserOutput()),
|
||||
Utils::NormalMessageFormat);
|
||||
|
||||
@@ -386,13 +386,13 @@ void ClangToolRunControl::analyzeNextFile()
|
||||
QTC_ASSERT(runner->run(unit.file, unit.arguments), return);
|
||||
|
||||
appendMessage(tr("Analyzing \"%1\".").arg(
|
||||
Utils::FileName::fromString(unit.file).toUserOutput()),
|
||||
Utils::FilePath::fromString(unit.file).toUserOutput()),
|
||||
Utils::StdOutFormat);
|
||||
}
|
||||
|
||||
static Utils::FileName cleanPath(const Utils::FileName &filePath)
|
||||
static Utils::FilePath cleanPath(const Utils::FilePath &filePath)
|
||||
{
|
||||
return Utils::FileName::fromString(QDir::cleanPath(filePath.toString()));
|
||||
return Utils::FilePath::fromString(QDir::cleanPath(filePath.toString()));
|
||||
}
|
||||
|
||||
void ClangToolRunControl::onRunnerFinishedWithSuccess(const QString &filePath)
|
||||
@@ -401,7 +401,7 @@ void ClangToolRunControl::onRunnerFinishedWithSuccess(const QString &filePath)
|
||||
qCDebug(LOG) << "onRunnerFinishedWithSuccess:" << logFilePath;
|
||||
|
||||
QTC_ASSERT(m_projectInfo.project(), return);
|
||||
const Utils::FileName projectRootDir = cleanPath(m_projectInfo.project()->projectDirectory());
|
||||
const Utils::FilePath projectRootDir = cleanPath(m_projectInfo.project()->projectDirectory());
|
||||
|
||||
QString errorMessage;
|
||||
const QList<Diagnostic> diagnostics = tool()->read(filePath,
|
||||
|
||||
Reference in New Issue
Block a user