MCPcopy Create free account
hub / github.com/KDE/kdevelop / operator()

Method operator()

plugins/clang/tests/codecompletiontestbase.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include <QLoggingCategory>
27
28void DeleteDocument::operator()(KTextEditor::View* view) const
29{
30 // explicitly close the document when all references are valid, otherwise we have problems during cleanup
31 const auto url = view->document()->url();
32 ICore::self()->documentController()->documentForUrl(url)->close(IDocument::Discard);
33}
34
35std::unique_ptr<KTextEditor::View, DeleteDocument> CodeCompletionTestBase::createView(const QUrl& url) const
36{

Callers

nothing calls this directly

Calls 5

documentForUrlMethod · 0.80
documentControllerMethod · 0.80
urlMethod · 0.45
documentMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected