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

Method fileNames

kdevplatform/vcs/vcsdiff.cpp:520–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518
519
520const QVector<VcsDiff::FilePair> VcsDiff::fileNames() const
521{
522 QVector<VcsDiff::FilePair> ret;
523 VcsDiff::FilePair current;
524 for (const auto& h : d->hunks) {
525 // List each pair only once
526 if (h.srcFile == current.source && h.tgtFile == current.target)
527 continue;
528 current = { h.srcFile, h.tgtFile };
529 ret.push_back(current);
530 }
531 return ret;
532}
533
534
535VcsDiff::SourceLocation VcsDiff::diffLineToSource ( const uint line ) const

Callers 2

testFileNamesMethod · 0.80
testSubDiffMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by 2

testFileNamesMethod · 0.64
testSubDiffMethod · 0.64