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

Method specialLanguageObjectJumpCursor

plugins/clang/clangsupport.cpp:319–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319QPair<QUrl, KTextEditor::Cursor> ClangSupport::specialLanguageObjectJumpCursor(const QUrl &url, const KTextEditor::Cursor& position)
320{
321 const QPair<TopDUContextPointer, KTextEditor::Range> import = importedContextForPosition(url, position);
322 DUChainReadLocker lock;
323 if (import.first) {
324 return qMakePair(import.first->url().toUrl(), KTextEditor::Cursor(0,0));
325 }
326
327 return {{}, KTextEditor::Cursor::invalid()};
328}
329
330QPair<QWidget*, KTextEditor::Range> ClangSupport::specialLanguageObjectNavigationWidget(const QUrl& url, const KTextEditor::Cursor& position)
331{

Callers 2

determineJumpLocMethod · 0.45

Calls 5

CursorClass · 0.50
invalidFunction · 0.50
toUrlMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected