forked from qt-creator/qt-creator
ProjectExplorer: Further tree node related simplification
Drop the list sorting and difference generation which is not needed in the "build from scratch" setup. This also removes some of the intermediately introduced convienience functions and fixes a regression that led to missing project files. Change-Id: I39d1966324917f466fb347da3a52552393ca4a01 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -270,10 +270,6 @@ void TeaLeafReader::generateProjectTree(CMakeListsNode *root, const QList<const
|
||||
m_watchedFiles.insert(cm);
|
||||
}
|
||||
|
||||
QList<const FileNode *> added;
|
||||
QList<FileNode *> deleted; // Unused!
|
||||
ProjectExplorer::compareSortedLists(m_files, allFiles, deleted, added, Node::sortByPath);
|
||||
|
||||
QSet<FileName> allIncludePathSet;
|
||||
for (const CMakeBuildTarget &bt : m_buildTargets) {
|
||||
const QList<Utils::FileName> targetIncludePaths
|
||||
@@ -285,7 +281,7 @@ void TeaLeafReader::generateProjectTree(CMakeListsNode *root, const QList<const
|
||||
const QList<FileName> allIncludePaths = allIncludePathSet.toList();
|
||||
|
||||
const QList<const FileNode *> missingHeaders
|
||||
= Utils::filtered(added, [&allIncludePaths](const FileNode *fn) -> bool {
|
||||
= Utils::filtered(allFiles, [&allIncludePaths](const FileNode *fn) -> bool {
|
||||
if (fn->fileType() != FileType::Header)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user