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

Method containsDiffLine

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

* @param lineIdx the 0-based line number of the tested line in the whole diff * @returns true if the line is part of the diff and false otherwise * @note: Returns true also for the header line (the one starting with `@@`) */

Source from the content-addressed store, hash-verified

58 * @note: Returns true also for the header line (the one starting with `@@`)
59 */
60 bool containsDiffLine(uint lineIdx) const { return headingLineIdx <= lineIdx && lineIdx <= lastLineIdx(); }
61
62 /**
63 * Returns the index of the line within the hunk

Callers 2

mapDiffLineMethod · 0.80
subDiffHunkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected