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

Method needsUpdate

kdevplatform/language/editor/modificationrevisionset.cpp:289–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289bool ModificationRevisionSet::needsUpdate() const
290{
291 QMutexLocker lock(modificationRevisionSetMutex());
292
293 #ifdef DEBUG_NEEDSUPDATE
294 Utils::Set set(m_index, &FileModificationSetRepositoryRepresenter::repository());
295 Utils::Set::Iterator it = set.iterator();
296 while (it) {
297 const FileModificationPair* data = fileModificationPairRepository().itemFromIndex(*it);
298 ModificationRevision revision = KDevelop::ModificationRevision::revisionForFile(data->file);
299 if (revision != data->revision) {
300 qCDebug(LANGUAGE) << "dependency" << data->file.str() << "has changed, stored stamp:" << data->revision <<
301 "new time:" << revision;
302 return true;
303 }
304 ++it;
305 }
306 return false;
307 #else
308 return nodeNeedsUpdate(m_index);
309 #endif
310}
311
312ModificationRevisionSet& ModificationRevisionSet::operator+=(const ModificationRevisionSet& rhs)
313{

Callers

nothing calls this directly

Calls 5

nodeNeedsUpdateFunction · 0.85
strMethod · 0.80
iteratorMethod · 0.45
itemFromIndexMethod · 0.45

Tested by

no test coverage detected