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

Method reAnalyze

gui/mainwindow.cpp:1419–1446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1417}
1418
1419void 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
1448void MainWindow::clearResults()
1449{

Callers

nothing calls this directly

Calls 8

getReCheckFilesMethod · 0.80
checkingStartedMethod · 0.80
setCheckFilesMethod · 0.80
setCheckSettingsMethod · 0.80
emptyMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected