CppcheckRunner: Connect to done() signal instead of finished()

Simplify internals a bit.

Change-Id: I4871b73f605af4d56e4993b6d71bbb22b4fce27d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-06-20 17:23:57 +02:00
parent 8e22e08d21
commit 64d52bb8c3
2 changed files with 29 additions and 48 deletions

View File

@@ -26,12 +26,11 @@
#pragma once
#include <utils/filepath.h>
#include <utils/qtcprocess.h>
#include <QHash>
#include <QTimer>
namespace Utils { class QtcProcess; }
namespace Cppcheck {
namespace Internal {
@@ -58,18 +57,16 @@ private:
void checkQueued();
void readOutput();
void readError();
void handleStarted();
void handleFinished();
void handleDone();
CppcheckTool &m_tool;
Utils::QtcProcess *m_process = nullptr;
Utils::QtcProcess m_process;
Utils::FilePath m_binary;
QString m_arguments;
QHash<QString, Utils::FilePaths> m_queue;
Utils::FilePaths m_currentFiles;
QTimer m_queueTimer;
int m_maxArgumentsLength = 32767;
bool m_isRunning = false;
};
} // namespace Internal