MCPcopy Create free account
hub / github.com/KDE/kdevelop / operator()

Method operator()

kdevplatform/language/util/setrepository.cpp:961–972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959 {
960 }
961 bool operator()(const SetNodeData* item)
962 {
963 if (item->m_refCount == 0)
964 ++zeroRefCountNodes;
965 ++nodeCount;
966 uint split = splitPositionForRange(item->start(), item->end());
967 if (item->hasSlaves())
968 if (split < rep.itemFromIndex(item->leftNode())->end() ||
969 split > rep.itemFromIndex(item->rightNode())->start())
970 ++badSplitNodeCount;
971 return true;
972 }
973 uint nodeCount;
974 uint badSplitNodeCount;
975 uint zeroRefCountNodes;

Callers

nothing calls this directly

Calls 4

splitPositionForRangeFunction · 0.85
startMethod · 0.45
endMethod · 0.45
itemFromIndexMethod · 0.45

Tested by

no test coverage detected