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

Method sourceFromItem

plugins/meson/mesonmanager.cpp:384–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384MesonSourcePtr MesonManager::sourceFromItem(KDevelop::ProjectBaseItem* item) const
385{
386 Q_ASSERT(item);
387 auto it = m_projectTargets.find(item->project());
388 if (it == end(m_projectTargets)) {
389 qCDebug(KDEV_Meson) << item->path().toLocalFile() << "not found";
390 return {};
391 }
392
393 auto targets = *it;
394 return targets->fileSource(item->path());
395}
396
397KDevelop::Path::List MesonManager::includeDirectories(KDevelop::ProjectBaseItem* item) const
398{

Callers

nothing calls this directly

Calls 6

toLocalFileMethod · 0.80
fileSourceMethod · 0.80
endFunction · 0.50
findMethod · 0.45
projectMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected