Removed Cppcheck::terminate()

This commit is contained in:
Daniel Marjamäki 2020-12-04 18:47:43 +01:00
parent 649a754cfd
commit aa28f3fe8c
3 changed files with 2 additions and 9 deletions

View File

@ -61,7 +61,7 @@ public:
const std::size_t value) override {
if (std::time(nullptr) >= stoptime) {
std::cout << "Time to analyse the code exceeded 2 seconds. Terminating.\n\n";
cppcheck.terminate();
Settings::terminate();
}
}
};

View File

@ -301,7 +301,7 @@ void CheckThread::runAddonsAndTools(const ImportProject::FileSettings *fileSetti
void CheckThread::stop()
{
mState = Stopping;
mCppcheck.terminate();
Settings::terminate();
}
void CheckThread::parseClangErrors(const QString &tool, const QString &file0, QString err)

View File

@ -112,13 +112,6 @@ public:
virtual void reportStatus(unsigned int fileindex, unsigned int filecount, std::size_t sizedone, std::size_t sizetotal);
/**
* @brief Terminate checking. The checking will be terminated as soon as possible.
*/
void terminate() {
Settings::terminate();
}
/**
* @brief Call all "getErrorMessages" in all registered Check classes.
* Also print out XML header and footer.