| 1417 | } |
| 1418 | |
| 1419 | void MainWindow::reAnalyze(bool all) |
| 1420 | { |
| 1421 | const std::list<FileWithDetails> files = mThread->getReCheckFiles(all); |
| 1422 | if (files.empty()) |
| 1423 | return; |
| 1424 | |
| 1425 | Settings checkSettings; |
| 1426 | auto supprs = std::make_shared<Suppressions>(); |
| 1427 | if (!getCppcheckSettings(checkSettings, *supprs)) |
| 1428 | return; |
| 1429 | |
| 1430 | // Clear details, statistics and progress |
| 1431 | mUI->mResults->clear(all); |
| 1432 | |
| 1433 | // Clear results for changed files |
| 1434 | for (const auto& f : files) |
| 1435 | mUI->mResults->clear(QString::fromStdString(f.path())); |
| 1436 | |
| 1437 | checkLockDownUI(); // lock UI while checking |
| 1438 | mUI->mResults->checkingStarted(files.size()); |
| 1439 | |
| 1440 | if (mProjectFile) |
| 1441 | qDebug() << "Rechecking project file" << mProjectFile->getFilename(); |
| 1442 | |
| 1443 | mThread->setCheckFiles(all); |
| 1444 | mThread->check(checkSettings, supprs); |
| 1445 | mUI->mResults->setCheckSettings(checkSettings); |
| 1446 | } |
| 1447 | |
| 1448 | void MainWindow::clearResults() |
| 1449 | { |
nothing calls this directly
no test coverage detected