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

Method reportStatus

cli/executor.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void Executor::reportStatus(std::size_t fileindex, std::size_t filecount, std::size_t sizedone, std::size_t sizetotal)
65{
66 if (filecount > 1) {
67 std::ostringstream oss;
68 const unsigned long percentDone = (sizetotal > 0) ? (100 * sizedone) / sizetotal : (100 * fileindex / filecount);
69 oss << fileindex << '/' << filecount
70 << " files checked " << percentDone
71 << "% done";
72 mErrorLogger.reportOut(oss.str(), Color::FgBlue);
73 }
74}
75

Callers

nothing calls this directly

Calls 2

reportOutMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected