| 1690 | } |
| 1691 | |
| 1692 | void 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 | |
| 1707 | Uses* DUChain::uses() |
| 1708 | { |
nothing calls this directly
no test coverage detected