forked from qt-creator/qt-creator
ProjectExplorer: Pass extra project files as QSet
They are available in some cases as such, and consumed as such. Change-Id: I9866c7d7bd817fb19a8b11a0efbe583ed55fe393 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -700,13 +700,13 @@ void QbsBuildSystem::updateDocuments()
|
||||
OpTimer opTimer("updateDocuments");
|
||||
const FilePath buildDir = FilePath::fromString(
|
||||
m_projectData.value("build-directory").toString());
|
||||
const auto filePaths = transform<QVector<FilePath>>(
|
||||
const auto filePaths = transform<QSet<FilePath>>(
|
||||
m_projectData.value("build-system-files").toArray(),
|
||||
[](const QJsonValue &v) { return FilePath::fromString(v.toString()); });
|
||||
|
||||
// A changed qbs file (project, module etc) should trigger a re-parse, but not if
|
||||
// the file was generated by qbs itself, in which case that might cause an infinite loop.
|
||||
const QVector<FilePath> nonBuildDirFilePaths = filtered(filePaths,
|
||||
const QSet<FilePath> nonBuildDirFilePaths = filtered(filePaths,
|
||||
[buildDir](const FilePath &p) {
|
||||
return !p.isChildOf(buildDir);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user