MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / FillUpdatedLines

Method FillUpdatedLines

FileFilter/UnifiedDiffParser.cpp:170–179  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

168
169 //---------------------------------------------------------------------
170 void UnifiedDiffParser::FillUpdatedLines(
171 const std::wstring& line,
172 std::vector<File>& files,
173 Stream& stream) const
174 {
175 if (files.empty())
176 ThrowError(stream, UnifiedDiffParserException::ErrorNoFilenameBeforeHunks);
177 auto updatedLines = ExtractUpdatedLines(stream, line);
178 files.back().AddSelectedLines(updatedLines);
179 }
180
181 //---------------------------------------------------------------------
182 std::filesystem::path UnifiedDiffParser::ExtractTargetFile(Stream& stream) const

Callers

nothing calls this directly

Calls 1

AddSelectedLinesMethod · 0.80

Tested by

no test coverage detected