ErrorMessage class added (not used yet and it is still unfinished)
This commit is contained in:
parent
2e23b09a05
commit
6850441c4a
4
Makefile
4
Makefile
|
@ -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)
|
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
|
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
|
BIN = ${DESTDIR}/usr/bin
|
||||||
|
@ -32,6 +32,8 @@ preprocessor.o: preprocessor.cpp preprocessor.h errorlogger.h
|
||||||
g++ $(CFLAGS) -c $*.cpp
|
g++ $(CFLAGS) -c $*.cpp
|
||||||
settings.o: settings.cpp settings.h
|
settings.o: settings.cpp settings.h
|
||||||
g++ $(CFLAGS) -c $*.cpp
|
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
|
testbufferoverrun.o: testbufferoverrun.cpp tokenize.h settings.h errorlogger.h token.h checkbufferoverrun.h testsuite.h
|
||||||
g++ $(CFLAGS) -c $*.cpp
|
g++ $(CFLAGS) -c $*.cpp
|
||||||
testcharvar.o: testcharvar.cpp tokenize.h settings.h errorlogger.h token.h checkother.h testsuite.h
|
testcharvar.o: testcharvar.cpp tokenize.h settings.h errorlogger.h token.h checkother.h testsuite.h
|
||||||
|
|
|
@ -47,6 +47,8 @@
|
||||||
<Unit filename="cppcheckexecutor.cpp" />
|
<Unit filename="cppcheckexecutor.cpp" />
|
||||||
<Unit filename="cppcheckexecutor.h" />
|
<Unit filename="cppcheckexecutor.h" />
|
||||||
<Unit filename="errorlogger.h" />
|
<Unit filename="errorlogger.h" />
|
||||||
|
<Unit filename="errormessage.cpp" />
|
||||||
|
<Unit filename="errormessage.h" />
|
||||||
<Unit filename="filelister.cpp" />
|
<Unit filename="filelister.cpp" />
|
||||||
<Unit filename="filelister.h" />
|
<Unit filename="filelister.h" />
|
||||||
<Unit filename="main.cpp" />
|
<Unit filename="main.cpp" />
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#include "errormessage.h"
|
||||||
|
|
||||||
|
ErrorMessage::ErrorMessage()
|
||||||
|
{
|
||||||
|
//ctor
|
||||||
|
}
|
||||||
|
|
||||||
|
ErrorMessage::~ErrorMessage()
|
||||||
|
{
|
||||||
|
//dtor
|
||||||
|
}
|
|
@ -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
|
Loading…
Reference in New Issue