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

Method documentRenamed

kdevplatform/language/duchain/duchain.cpp:1692–1705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1690}
1691
1692void DUChain::documentRenamed(KDevelop::IDocument* doc)
1693{
1694 if (sdDUChainPrivate->m_destroyed)
1695 return;
1696
1697 const auto url = doc->url();
1698 // url is invalid when a file open in KDevelop is deleted externally, then the user
1699 // closes the file by clicking the Close File button on KTextEditor's prompt.
1700 if (url.isValid()) {
1701 ICore::self()->languageController()->backgroundParser()->addDocument(IndexedString{url},
1702 TopDUContext::AllDeclarationsContextsAndUses
1703 | TopDUContext::ForceUpdate);
1704 }
1705}
1706
1707Uses* DUChain::uses()
1708{

Callers

nothing calls this directly

Calls 5

backgroundParserMethod · 0.80
languageControllerMethod · 0.80
urlMethod · 0.45
isValidMethod · 0.45
addDocumentMethod · 0.45

Tested by

no test coverage detected