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

Function castFromSimpleRange

kdevplatform/language/editor/rangeinrevision.h:113–116  ·  view source on GitHub ↗

@warning Using this is wrong in most cases! If you want to transform this range 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

111 /// mapping instead through @ref KDevelop::DUChainBase or @ref KDevelop::RevisionReference
112 /// or @ref KDevelop::DocumentChangeTracker
113 static RangeInRevision castFromSimpleRange(const KTextEditor::Range& range)
114 {
115 return RangeInRevision(range.start().line(), range.start().column(), range.end().line(), range.end().column());
116 }
117 ///qDebug() stream operator. Writes this range to the debug output in a nicely formatted way.
118 inline friend QDebug operator<<(QDebug s, const RangeInRevision& range)
119 {

Callers 5

setFinalLocationMethod · 0.85
transformToRevisionMethod · 0.85
setProblemsMethod · 0.85

Calls 5

RangeInRevisionFunction · 0.70
lineMethod · 0.45
startMethod · 0.45
columnMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected