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

Function castFromSimpleCursor

kdevplatform/language/editor/cursorinrevision.h:99–102  ·  view source on GitHub ↗

@warning Using this is wrong in most cases! If you want to transform this cursor to the current revision, you should do a proper mapping instead through @ref KDevelop::DUChainBase or @ref KDevelop::RevisionReference or @ref KDevelop::DocumentChangeTracker

Source from the content-addressed store, hash-verified

97 /// mapping instead through @ref KDevelop::DUChainBase or @ref KDevelop::RevisionReference
98 /// or @ref KDevelop::DocumentChangeTracker
99 static CursorInRevision castFromSimpleCursor(const KTextEditor::Cursor& cursor)
100 {
101 return CursorInRevision(cursor.line(), cursor.column());
102 }
103
104 /// qDebug() stream operator. Writes this cursor to the debug output in a nicely formatted way.
105 inline friend QDebug operator<<(QDebug s, const CursorInRevision& cursor)

Calls 3

CursorInRevisionFunction · 0.70
lineMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected