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

Function duplicateChanges

kdevplatform/language/codegen/documentchangeset.cpp:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79inline bool duplicateChanges(const DocumentChangePointer& previous, const DocumentChangePointer& current)
80{
81 // Given the option of considering a duplicate two changes in the same range
82 // but with different old texts to be ignored
83 return previous->m_range == current->m_range &&
84 previous->m_newText == current->m_newText &&
85 (previous->m_oldText == current->m_oldText ||
86 (previous->m_ignoreOldText && current->m_ignoreOldText));
87}
88
89inline QString rangeText(const KTextEditor::Range& range, const QStringList& textLines)
90{

Callers 1

removeDuplicatesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected