Files
Sourcetrail/src/lib/data/ErrorCountInfo.h
T
mlangkabel dfc6d88432 build: search headers in all source directories
* removed paths in include directives
* changed cmake to provide necessary header search paths
* changed name of version.h to productVersion.h due to name conflict
2018-09-18 19:00:18 +02:00

38 lines
489 B
C++

#ifndef ERROR_COUNT_INFO_H
#define ERROR_COUNT_INFO_H
#include "ErrorInfo.h"
struct ErrorCountInfo
{
ErrorCountInfo()
: total(0)
, fatal(0)
{}
ErrorCountInfo(size_t total, size_t fatal)
: total(total)
, fatal(fatal)
{}
ErrorCountInfo(const std::vector<ErrorInfo>& errors)
: total(0)
, fatal(0)
{
for (const ErrorInfo& error : errors)
{
total++;
if (error.fatal)
{
fatal++;
}
}
}
size_t total;
size_t fatal;
};
#endif // ERROR_COUNT_INFO_H