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

Method setParsingEnvironmentFile

kdevplatform/language/duchain/topducontext.cpp:628–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628void TopDUContext::setParsingEnvironmentFile(ParsingEnvironmentFile* file)
629{
630 if (m_local->m_file) //Clear the "feature satisfaction" cache
631 m_local->m_file->setFeatures(Empty);
632
633 //We do not enforce a duchain lock here, since this is also used while loading a top-context
634 m_local->m_file = QExplicitlySharedDataPointer<ParsingEnvironmentFile>(file);
635
636 //Replicate features to ParsingEnvironmentFile
637 if (file) {
638 file->setTopContext(IndexedTopDUContext(ownIndex()));
639 Q_ASSERT(file->indexedTopContext().isValid());
640 file->setFeatures(d_func()->m_features);
641
642 file->setImportsCache(d_func()->m_importsCache);
643 }
644}
645
646struct TopDUContext::FindDeclarationsAcceptor
647{

Callers 2

loadChainMethod · 0.80

Calls 6

setImportsCacheMethod · 0.80
IndexedTopDUContextClass · 0.70
setFeaturesMethod · 0.45
setTopContextMethod · 0.45
isValidMethod · 0.45
indexedTopContextMethod · 0.45

Tested by

no test coverage detected