| 256 | } |
| 257 | |
| 258 | int 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 | |
| 285 | int CppCheckExecutor::check_wrapper(const Settings& settings, Suppressions& supprs) |
| 286 | { |
no test coverage detected