| 228 | using FileSetCollection = std::queue<QSet<IndexedString>>; |
| 229 | |
| 230 | FileSetCollection getProjectFileSets(const QList<QUrl>& dirs) |
| 231 | { |
| 232 | FileSetCollection fileSets; |
| 233 | for (const QUrl& dir : dirs) { |
| 234 | const auto* const project = KDevelop::ICore::self()->projectController()->findProjectForUrl(dir); |
| 235 | // Store an empty file set when project==nullptr because each element |
| 236 | // of fileSets must correspond to an element of dirs at the same index. |
| 237 | fileSets.push(project ? project->fileSet() : FileSetCollection::value_type{}); |
| 238 | } |
| 239 | return fileSets; |
| 240 | } |
| 241 | |
| 242 | const QRegularExpression& splitPatternListRegex() |
| 243 | { |
no test coverage detected