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

Method setModificationRevision

kdevplatform/language/duchain/parsingenvironment.cpp:369–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void ParsingEnvironmentFile::setModificationRevision(const KDevelop::ModificationRevision& rev)
370{
371 ENSURE_WRITE_LOCKED
372
373 Q_ASSERT(d_func_dynamic()->m_allModificationRevisions.index());
374 bool result = d_func_dynamic()->m_allModificationRevisions.removeModificationRevision(d_func()->m_url,
375 d_func()->m_modificationTime);
376 Q_ASSERT(result);
377 Q_UNUSED(result);
378
379 #ifdef LEXERCACHE_DEBUG
380 if (debugging()) {
381 qCDebug(LANGUAGE) << id(this) << "setting modification-revision" << rev.toString();
382 }
383#endif
384 d_func_dynamic()->m_modificationTime = rev;
385#ifdef LEXERCACHE_DEBUG
386 if (debugging()) {
387 qCDebug(LANGUAGE) << id(this) << "new modification-revision" << m_modificationTime;
388 }
389#endif
390 d_func_dynamic()->m_allModificationRevisions.addModificationRevision(d_func()->m_url, d_func()->m_modificationTime);
391}
392
393KDevelop::ModificationRevision ParsingEnvironmentFile::modificationRevision() const
394{

Callers 4

buildDUChainMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 5

idFunction · 0.50
indexMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected