MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / report

Function report

lib/errorlogger.h:307–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 }
306
307 void report(int value) {
308 if (mReportProgressInterval < 0 || value == mLastValue)
309 return;
310 const std::time_t t = std::time(nullptr);
311 if (t >= mLastTime + mReportProgressInterval) {
312 mErrorLogger.reportProgress(mFilename, mStage.c_str(), value);
313 mLastTime = t;
314 mLastValue = value;
315 }
316 }
317
318private:
319 ErrorLogger& mErrorLogger;

Callers 1

errorlogger.hFile · 0.70

Calls 1

reportProgressMethod · 0.45

Tested by

no test coverage detected