19 #ifndef CPPCHECKEXECUTOR_H
20 #define CPPCHECKEXECUTOR_H
65 int check(
int argc,
const char*
const argv[]);
81 static int executeCommand(std::string exe, std::vector<std::string> args, std::string redirect, std::string &output_);
114 #if defined(USE_WINDOWS_SEH) || defined(USE_UNIX_SIGNAL_HANDLING)
118 static FILE* mExceptionOutput;
This class works as an example of how CppCheck can be used in external programs without very little k...
static void setExceptionOutput(FILE *exceptionOutput)
static FILE * getExceptionOutput()
static bool reportSuppressions(const Settings &settings, const SuppressionList &suppressions, bool unusedFunctionCheckEnabled, const std::list< FileWithDetails > &files, const std::list< FileSettings > &fileSettings, ErrorLogger &errorLogger)
std::list< FileSettings > mFileSettings
int check_wrapper(const Settings &settings)
Wrapper around check_internal.
friend class TestSuppressions
CppCheckExecutor(const CppCheckExecutor &)=delete
int check(int argc, const char *const argv[])
Starts the checking.
static int executeCommand(std::string exe, std::vector< std::string > args, std::string redirect, std::string &output_)
Execute a shell command and read the output from it.
CppCheckExecutor()=default
Constructor.
CppCheckExecutor & operator=(const CppCheckExecutor &)=delete
std::list< FileWithDetails > mFiles
Filename associated with size of file.
int check_internal(const Settings &settings) const
Starts the checking.
This is an interface, which the class responsible of error logging should implement.
This is just a container for general settings so that we don't need to pass individual values to func...
class for handling suppressions