MCPcopy Create free account
hub / github.com/KDE/kdevelop / getProjectFileSets

Function getProjectFileSets

plugins/grepview/grepfindthread.cpp:230–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228using FileSetCollection = std::queue<QSet<IndexedString>>;
229
230FileSetCollection 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
242const QRegularExpression& splitPatternListRegex()
243{

Callers 1

GrepFindFilesThreadMethod · 0.85

Calls 4

findProjectForUrlMethod · 0.80
projectControllerMethod · 0.80
pushMethod · 0.45
fileSetMethod · 0.45

Tested by

no test coverage detected