|
Cppcheck
|
This class will take a list of filenames and settings and check then all files using threads. More...
#include <threadexecutor.h>
Public Member Functions | |
| ThreadExecutor (const std::list< FileWithDetails > &files, const std::list< FileSettings > &fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger, CppCheck::ExecuteCmdFn executeCommand) | |
| ThreadExecutor (const ThreadExecutor &)=delete | |
| ThreadExecutor & | operator= (const ThreadExecutor &)=delete |
| unsigned int | check () override |
Public Member Functions inherited from Executor | |
| Executor (const std::list< FileWithDetails > &files, const std::list< FileSettings > &fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger) | |
| virtual | ~Executor ()=default |
| Executor (const Executor &)=delete | |
| Executor & | operator= (const Executor &)=delete |
| void | reportStatus (std::size_t fileindex, std::size_t filecount, std::size_t sizedone, std::size_t sizetotal) |
| Information about how many files have been checked. More... | |
Public Attributes | |
| CppCheck::ExecuteCmdFn | mExecuteCommand |
Friends | |
| class | SyncLogForwarder |
Additional Inherited Members | |
Protected Member Functions inherited from Executor | |
| bool | hasToLog (const ErrorMessage &msg) |
| Check if message is being suppressed and unique. More... | |
Protected Attributes inherited from Executor | |
| const std::list< FileWithDetails > & | mFiles |
| const std::list< FileSettings > & | mFileSettings |
| const Settings & | mSettings |
| SuppressionList & | mSuppressions |
| ErrorLogger & | mErrorLogger |
This class will take a list of filenames and settings and check then all files using threads.
Definition at line 43 of file threadexecutor.h.
| ThreadExecutor::ThreadExecutor | ( | const std::list< FileWithDetails > & | files, |
| const std::list< FileSettings > & | fileSettings, | ||
| const Settings & | settings, | ||
| SuppressionList & | suppressions, | ||
| ErrorLogger & | errorLogger, | ||
| CppCheck::ExecuteCmdFn | executeCommand | ||
| ) |
Definition at line 42 of file threadexecutor.cpp.
References Settings::jobs, and Executor::mSettings.
|
delete |
|
overridevirtual |
Implements Executor.
Definition at line 178 of file threadexecutor.cpp.
References Settings::jobs, Executor::mErrorLogger, mExecuteCommand, Executor::mFiles, Executor::mFileSettings, Executor::mSettings, CppCheck::printTimerResults(), Settings::showtime, SHOWTIME_SUMMARY, SHOWTIME_TOP5_SUMMARY, and threadProc().
Referenced by CppCheckExecutor::check_internal().
|
delete |
|
friend |
Definition at line 44 of file threadexecutor.h.
| CppCheck::ExecuteCmdFn ThreadExecutor::mExecuteCommand |
Definition at line 53 of file threadexecutor.h.
Referenced by check().