34     : 
Executor(files, fileSettings, settings, suppressions, errorLogger)
 
   43     unsigned int result = 0;
 
   45     const std::size_t totalfilesize = std::accumulate(
mFiles.cbegin(), 
mFiles.cend(), std::size_t(0), [](std::size_t v, 
const FileWithDetails& f) {
 
   49     std::size_t processedsize = 0;
 
   52     for (std::list<FileWithDetails>::const_iterator i = 
mFiles.cbegin(); i != 
mFiles.cend(); ++i) {
 
   54         processedsize += i->size();
 
This is the base class which will use other classes to do static code analysis for C and C++ code to ...
 
bool analyseWholeProgram()
Analyse whole program, run this after all TUs has been scanned.
 
static void printTimerResults(SHOWTIME_MODES mode)
 
unsigned int check(const std::string &path)
This starts the actual checking.
 
void analyseClangTidy(const FileSettings &fileSettings)
Analyze all files using clang-tidy.
 
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.
 
const std::list< FileSettings > & mFileSettings
 
const std::list< FileWithDetails > & mFiles
 
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.
 
const Settings & mSettings
 
This is just a container for general settings so that we don't need to pass individual values to func...
 
bool quiet
Is –quiet given?
 
bool clangTidy
Use clang-tidy.
 
unsigned int jobs
How many processes/threads should do checking at the same time.
 
SHOWTIME_MODES showtime
show timing information (–showtime=file|summary|top5)
 
SingleExecutor(CppCheck &cppcheck, const std::list< FileWithDetails > &files, const std::list< FileSettings > &fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger)
 
unsigned int check() override
 
class for handling suppressions