19 #ifndef PROCESSEXECUTOR_H 
   20 #define PROCESSEXECUTOR_H 
   49     unsigned int check() 
override;
 
   56     bool handleRead(
int rpipe, 
unsigned int &result, 
const std::string& filename);
 
std::function< int(std::string, std::vector< std::string >, std::string, std::string &)> ExecuteCmdFn
 
This is an interface, which the class responsible of error logging should implement.
 
This class will take a list of filenames and settings and check then all files using threads.
 
This class will take a list of filenames and settings and check then all files using threads.
 
void reportInternalChildErr(const std::string &childname, const std::string &msg)
Reports internal errors related to child processes.
 
CppCheck::ExecuteCmdFn mExecuteCommand
 
bool checkLoadAverage(size_t nchildren)
Check load average condition.
 
ProcessExecutor(const ProcessExecutor &)=delete
 
bool handleRead(int rpipe, unsigned int &result, const std::string &filename)
Read from the pipe, parse and handle what ever is in there.
 
unsigned int check() override
 
ProcessExecutor(const std::list< FileWithDetails > &files, const std::list< FileSettings > &fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger, CppCheck::ExecuteCmdFn executeCommand)
 
ProcessExecutor & operator=(const ProcessExecutor &)=delete
 
This is just a container for general settings so that we don't need to pass individual values to func...
 
class for handling suppressions