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

Method parseProgress

plugins/compileanalyzercommon/compileanalyzejob.cpp:129–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void CompileAnalyzeJob::parseProgress(const QStringList& lines)
130{
131 for (const auto& line : lines) {
132 const auto startedMatch = m_fileStartedRegex.match(line);
133 if (startedMatch.hasMatch()) {
134 emit infoMessage(this, startedMatch.captured(1));
135 continue;
136 }
137
138 const auto finishedMatch = m_fileFinishedRegex.match(line);
139 if (finishedMatch.hasMatch()) {
140 ++m_finishedCount;
141 setPercent(static_cast<double>(m_finishedCount)/m_totalCount * 100);
142 continue;
143 }
144 }
145}
146
147void CompileAnalyzeJob::postProcessStdout(const QStringList& lines)
148{

Callers 1

testJobMethod · 0.45

Calls 2

hasMatchMethod · 0.80
matchMethod · 0.45

Tested by 1

testJobMethod · 0.36