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

Method isSameKind

src/MergeEditLine.cpp:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55bool MergeBlock::isSameKind(const MergeBlock &mb2) const
56{
57 if(bConflict && mb2.bConflict)
58 {
59 // Both lines have conflicts: If one is only a white space conflict and
60 // the other one is a real conflict, then this line returns false.
61 return mId3l->isEqualAC() == mb2.mId3l->isEqualAC() && mId3l->isEqualAB() == mb2.mId3l->isEqualAB();
62 }
63 else
64 return (
65 (!bConflict && !mb2.bConflict && bDelta && mb2.bDelta && srcSelect == mb2.srcSelect && (mergeDetails == mb2.mergeDetails || (mergeDetails != e_MergeDetails::eBCAddedAndEqual && mb2.mergeDetails != e_MergeDetails::eBCAddedAndEqual))) ||
66 (!bDelta && !mb2.bDelta));
67}
68
69// Calculate the merge information for the given Diff3Line.
70// Results will be stored in this and bLineRemoved.

Callers 1

buildFromDiff3Method · 0.80

Calls 2

isEqualACMethod · 0.45
isEqualABMethod · 0.45

Tested by

no test coverage detected