33 #include <QStringList>
97 static int executeCommand(std::string exe, std::vector<std::string> args, std::string redirect, std::string &output);
139 void parseClangErrors(
const QString &tool,
const QString &file0, QString err);
bool mAnalyseWholeProgram
static QString clangTidyCmd()
Determine command to run clang-tidy.
void parseClangErrors(const QString &tool, const QString &file0, QString err)
State
States for the check thread.
@ Running
The thread is checking.
@ Stopping
The thread will stop after current work.
@ Stopped
The thread has been stopped.
@ Ready
The thread is ready.
void run() override
method that is run in a thread
void fileChecked(const QString &file)
void analyseWholeProgram(const QStringList &files)
Run whole program analysis.
CheckThread(ThreadResult &result)
QStringList mAddonsAndTools
CppCheck mCppcheck
Cppcheck itself.
void check(const Settings &settings)
Set settings for cppcheck.
void setClangIncludePaths(const QStringList &s)
void setSuppressions(const QList< SuppressionList::Suppression > &s)
void done()
cpp checking is done
static int executeCommand(std::string exe, std::vector< std::string > args, std::string redirect, std::string &output)
void runAddonsAndTools(const FileSettings *fileSettings, const QString &fileName)
QStringList mClangIncludePaths
QList< SuppressionList::Suppression > mSuppressions
bool isSuppressed(const SuppressionList::ErrorMessage &errorMessage) const
std::atomic< State > mState
Thread's current execution state.
static QString clangCmd()
Determine command to run clang.
void setAddonsAndTools(const QStringList &addonsAndTools)
This is the base class which will use other classes to do static code analysis for C and C++ code to ...
This is just a container for general settings so that we don't need to pass individual values to func...
Threads use this class to obtain new files to process and to publish results.