26 #include <unordered_set>
51 virtual unsigned int check() = 0;
61 void reportStatus(std::size_t fileindex, std::size_t filecount, std::size_t sizedone, std::size_t sizetotal);
71 const std::list<FileWithDetails> &
mFiles;
This is an interface, which the class responsible of error logging should implement.
Wrapper for error messages, provided by reportErr()
This class will take a list of filenames and settings and check then all files using threads.
bool hasToLog(const ErrorMessage &msg)
Check if message is being suppressed and unique.
std::unordered_set< std::string > mErrorList
Executor(const std::list< FileWithDetails > &files, const std::list< FileSettings > &fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger)
const std::list< FileSettings > & mFileSettings
Executor & operator=(const Executor &)=delete
virtual ~Executor()=default
SuppressionList & mSuppressions
const std::list< FileWithDetails > & mFiles
std::mutex mErrorListSync
Executor(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.
ErrorLogger & mErrorLogger
virtual unsigned int check()=0
const Settings & mSettings
This is just a container for general settings so that we don't need to pass individual values to func...
class for handling suppressions