Commit 302162e6 authored by Ulf Hermann's avatar Ulf Hermann

QbsProject: Use filesGeneratedFrom() to find files for ExtraCompilers

qbs::Project::generatedFiles() without tags retrieves all generated
files recursively. That is not what ExtraCompiler expects.

This way it should do the same as the other project types. It should
only retrieve the first level of generated files. However, as
filesGeneratedFrom() is currently unimplemented in QbsProject, in fact
it doesn't retrieve anything and the feature is disabled for now.

Change-Id: I8ba0b5e9310a55fcd348b3547d8ff87d97a1b498
Task-number: QTCREATORBUG-15796
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 5aca8ca2
......@@ -783,8 +783,7 @@ void QbsProject::updateCppCodeModel()
for (auto i = factoriesBegin; i != factoriesEnd; ++i) {
if ((*i)->sourceTag() != tag)
continue;
QStringList generated = qbsProject().generatedFiles(prd, source.filePath(),
QStringList());
QStringList generated = filesGeneratedFrom(source.filePath());
if (generated.isEmpty())
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment