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

Method addToBackgroundParser

kdevplatform/util/duchainify/main.cpp:220–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void Manager::addToBackgroundParser(const QString& path, TopDUContext::Features features)
221{
222 QFileInfo info(path);
223
224 if (info.isFile()) {
225 qDebug() << "adding file" << path;
226 QUrl pathUrl = QUrl::fromLocalFile(info.canonicalFilePath());
227
228 m_waiting << pathUrl;
229 ++m_total;
230
231 KDevelop::DUChain::self()->updateContextForUrl(KDevelop::IndexedString(pathUrl), features, this);
232
233 } else if (info.isDir()) {
234 QDirIterator contents(path);
235 while (contents.hasNext()) {
236 QString newPath = contents.next();
237 if (!newPath.endsWith(QLatin1Char('.')))
238 addToBackgroundParser(newPath, features);
239 }
240 }
241}
242
243QSet<QUrl> Manager::waiting()
244{

Callers

nothing calls this directly

Calls 5

updateContextForUrlMethod · 0.80
endsWithMethod · 0.80
IndexedStringClass · 0.50
hasNextMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected