|
Cppcheck
|
Thread to run cppcheck. More...
#include <checkthread.h>
Signals | |
| void | Done () |
| cpp checking is done | |
| void | FileChecked (const QString &file) |
Public Member Functions | |
| CheckThread (ThreadResult &result) | |
| virtual | ~CheckThread () |
| void | Check (const Settings &settings) |
| Set settings for cppcheck. | |
| void | run () |
| method that is run in a thread | |
| void | stop () |
Protected Types | |
| enum | State { Running, Stopping, Stopped, Ready } |
| States for the check thread. More... | |
Protected Attributes | |
| State | mState |
| Thread's current execution state. | |
| ThreadResult & | mResult |
| CppCheck | mCppcheck |
| Cppcheck itself. | |
Thread to run cppcheck.
Definition at line 36 of file checkthread.h.
enum CheckThread::State [protected] |
States for the check thread.
Whole purpose of these states is to allow stopping of the checking. When stopping we say for the thread (Stopping) that stop when current check has been completed. Thread must be stopped cleanly, just terminating thread likely causes unpredictable side-effects.
| Running |
The thread is checking. |
| Stopping |
The thread will stop after current work. |
| Stopped |
The thread has been stopped. |
| Ready |
The thread is ready. |
Definition at line 76 of file checkthread.h.
| CheckThread::CheckThread | ( | ThreadResult & | result | ) |
Definition at line 25 of file checkthread.cpp.
| CheckThread::~CheckThread | ( | ) | [virtual] |
Definition at line 33 of file checkthread.cpp.
| void CheckThread::Check | ( | const Settings & | settings | ) |
Set settings for cppcheck.
| settings | settings for cppcheck |
Definition at line 38 of file checkthread.cpp.
References mCppcheck, and CppCheck::settings().
| void CheckThread::Done | ( | ) | [signal] |
cpp checking is done
Referenced by run().
| void CheckThread::FileChecked | ( | const QString & | file | ) | [signal] |
Referenced by run().
| void CheckThread::run | ( | ) |
method that is run in a thread
Definition at line 44 of file checkthread.cpp.
References CppCheck::check(), Done(), FileChecked(), ThreadResult::GetNextFile(), mCppcheck, mResult, mState, Ready, Running, and Stopped.
| void CheckThread::stop | ( | ) |
Definition at line 66 of file checkthread.cpp.
References mCppcheck, mState, Stopping, and CppCheck::terminate().
CppCheck CheckThread::mCppcheck [protected] |
Cppcheck itself.
Definition at line 93 of file checkthread.h.
ThreadResult& CheckThread::mResult [protected] |
Definition at line 88 of file checkthread.h.
Referenced by run().
State CheckThread::mState [protected] |
Thread's current execution state.
Definition at line 86 of file checkthread.h.
1.7.6.1