forked from qt-creator/qt-creator
ProjectNodes: add listInProject() to Node
Add a setter/getter for listInProject to Node and make the project list all nodes with this property set in Project::files. Task-number: QTCREATORBUG-18132 Change-Id: I334e627856d1bc0d033e13c5d629f6657d8d7fee Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -531,8 +531,8 @@ void CMakeProject::createGeneratedCodeModelSupport()
|
||||
= Utils::transform<QSet>(factories, [](const ExtraCompilerFactory *f) { return f->sourceTag(); });
|
||||
|
||||
// Find all files generated by any of the extra compilers, in a rather crude way.
|
||||
const QStringList fileList = files(SourceFiles, [&fileExtensions](const FileNode *fn) {
|
||||
const QString fp = fn->filePath().toString();
|
||||
const QStringList fileList = files(SourceFiles, [&fileExtensions](const Node *n) {
|
||||
const QString fp = n->filePath().toString();
|
||||
const int pos = fp.lastIndexOf('.');
|
||||
return pos >= 0 && fileExtensions.contains(fp.mid(pos + 1));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user