| 127 | } |
| 128 | |
| 129 | void 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 | |
| 147 | void CompileAnalyzeJob::postProcessStdout(const QStringList& lines) |
| 148 | { |