MCPcopy Create free account
hub / github.com/KDE/kdiff3 / isValidMove

Method isValidMove

src/diff.cpp:517–527  ·  view source on GitHub ↗

Test if the move would pass a barrier. Return true if not.

Source from the content-addressed store, hash-verified

515
516// Test if the move would pass a barrier. Return true if not.
517bool ManualDiffHelpList::isValidMove(LineRef line1, LineRef line2, e_SrcSelector winIdx1, e_SrcSelector winIdx2) const
518{
519 if(line1.isValid() && line2.isValid())
520 {
521 for(const ManualDiffHelpEntry& mdhe: *this)
522 {
523 if(!mdhe.isValidMove(line1, line2, winIdx1, winIdx2)) return false;
524 }
525 }
526 return true; // no barrier passed.
527}
528
529void ManualDiffHelpList::insertEntry(e_SrcSelector winIdx, LineRef firstLine, LineRef lastLine)
530{

Callers 1

calcDiff3LineListTrimMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected