forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user