ErrorMessage class added (not used yet and it is still unfinished)

This commit is contained in:
Reijo Tomperi 2009-01-03 13:51:55 +00:00
parent 2e23b09a05
commit 6850441c4a
4 changed files with 35 additions and 1 deletions

View File

@ -1,4 +1,4 @@
SRCS=checkbufferoverrun.cpp checkclass.cpp checkheaders.cpp checkmemoryleak.cpp checkfunctionusage.cpp checkother.cpp filelister.cpp preprocessor.cpp tokenize.cpp cppcheck.cpp settings.cpp token.cpp cppcheckexecutor.cpp
SRCS=checkbufferoverrun.cpp checkclass.cpp checkheaders.cpp checkmemoryleak.cpp checkfunctionusage.cpp checkother.cpp filelister.cpp preprocessor.cpp tokenize.cpp cppcheck.cpp settings.cpp token.cpp cppcheckexecutor.cpp errormessage.cpp
OBJS=$(SRCS:%.cpp=%.o)
TESTS=testbufferoverrun.o testcharvar.o testclass.o testconstructors.o testdivision.o testfunctionusage.o testincompletestatement.o testother.o testmemleak.o testmemleakmp.o testpreprocessor.o testredundantif.o testsimplifytokens.o testtokenize.o testtoken.o testunusedprivfunc.o testunusedvar.o testfilelister.o
BIN = ${DESTDIR}/usr/bin
@ -32,6 +32,8 @@ preprocessor.o: preprocessor.cpp preprocessor.h errorlogger.h
g++ $(CFLAGS) -c $*.cpp
settings.o: settings.cpp settings.h
g++ $(CFLAGS) -c $*.cpp
errormessage.o: errormessage.cpp errormessage.h
g++ $(CFLAGS) -c $*.cpp
testbufferoverrun.o: testbufferoverrun.cpp tokenize.h settings.h errorlogger.h token.h checkbufferoverrun.h testsuite.h
g++ $(CFLAGS) -c $*.cpp
testcharvar.o: testcharvar.cpp tokenize.h settings.h errorlogger.h token.h checkother.h testsuite.h

View File

@ -47,6 +47,8 @@
<Unit filename="cppcheckexecutor.cpp" />
<Unit filename="cppcheckexecutor.h" />
<Unit filename="errorlogger.h" />
<Unit filename="errormessage.cpp" />
<Unit filename="errormessage.h" />
<Unit filename="filelister.cpp" />
<Unit filename="filelister.h" />
<Unit filename="main.cpp" />

11
errormessage.cpp Normal file
View File

@ -0,0 +1,11 @@
#include "errormessage.h"
ErrorMessage::ErrorMessage()
{
//ctor
}
ErrorMessage::~ErrorMessage()
{
//dtor
}

19
errormessage.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef ErrorMessageH
#define ErrorMessageH
/**
* This class is used by the Cppcheck application to get
* informative error messages when e.g. memory leak is found
* from the inspected source file. This is also used another
* program to generate text for wiki and man page.
*/
class ErrorMessage
{
public:
ErrorMessage();
virtual ~ErrorMessage();
protected:
private:
};
#endif // ErrorMessageH