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

Method check

cli/cppcheckexecutor.cpp:258–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258int CppCheckExecutor::check(int argc, const char* const argv[])
259{
260 Settings settings;
261 CmdLineLoggerStd logger;
262 Suppressions supprs;
263 CmdLineParser parser(logger, settings, supprs);
264 if (!parser.fillSettingsFromArgs(argc, argv)) {
265 return EXIT_FAILURE;
266 }
267 if (Settings::terminated()) {
268 return EXIT_SUCCESS;
269 }
270
271 std::unique_ptr<OneShotTimer> overallTimer;
272 if (settings.showtime == Settings::ShowTime::SUMMARY || settings.showtime == Settings::ShowTime::TOP5_SUMMARY)
273 overallTimer.reset(new OneShotTimer("Overall time"));
274
275 settings.loadSummaries();
276
277 mFiles = parser.getFiles();
278 mFileSettings = parser.getFileSettings();
279
280 const int ret = check_wrapper(settings, supprs);
281
282 return ret;
283}
284
285int CppCheckExecutor::check_wrapper(const Settings& settings, Suppressions& supprs)
286{

Callers 1

check_internalMethod · 0.45

Calls 4

terminatedFunction · 0.85
loadSummariesMethod · 0.80
fillSettingsFromArgsMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected