Cppcheck
singleexecutor.h
Go to the documentation of this file.
1 /*
2  * Cppcheck - A tool for static C/C++ code analysis
3  * Copyright (C) 2007-2024 Cppcheck team.
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef SINGLEEXECUTOR_H
20 #define SINGLEEXECUTOR_H
21 
22 #include "executor.h"
23 
24 #include <cstddef>
25 #include <list>
26 #include <string>
27 #include <utility>
28 
29 class ErrorLogger;
30 class Settings;
31 class CppCheck;
32 class SuppressionList;
33 struct FileSettings;
34 class FileWithDetails;
35 
36 class SingleExecutor : public Executor
37 {
38 public:
39  SingleExecutor(CppCheck &cppcheck, const std::list<FileWithDetails> &files, const std::list<FileSettings>& fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger);
40  SingleExecutor(const SingleExecutor &) = delete;
42 
43  unsigned int check() override;
44 
45 private:
47 };
48 
49 #endif // SINGLEEXECUTOR_H
This is the base class which will use other classes to do static code analysis for C and C++ code to ...
Definition: cppcheck.h:60
This is an interface, which the class responsible of error logging should implement.
Definition: errorlogger.h:214
This class will take a list of filenames and settings and check then all files using threads.
Definition: executor.h:43
This is just a container for general settings so that we don't need to pass individual values to func...
Definition: settings.h:95
SingleExecutor & operator=(const SingleExecutor &)=delete
SingleExecutor(CppCheck &cppcheck, const std::list< FileWithDetails > &files, const std::list< FileSettings > &fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger)
CppCheck & mCppcheck
SingleExecutor(const SingleExecutor &)=delete
unsigned int check() override
class for handling suppressions
Definition: suppressions.h:42
File settings.
Definition: filesettings.h:57