Commit Graph

3591 Commits

Author SHA1 Message Date
Daniel Marjamäki 1978ac3562 Testing: Added macro 'REGISTER_TEST' 2008-10-15 06:48:18 +00:00
Daniel Marjamäki d330eb197a Testing: Updated the testing to the new test framework 2008-10-13 06:42:40 +00:00
Daniel Marjamäki 26549bf916 testing: Removed MiniCppUnit 2008-10-12 17:32:56 +00:00
Daniel Marjamäki b5706fc546 testing: Added a new unit testing framework 2008-10-12 17:31:04 +00:00
Daniel Marjamäki f01ab43eed testmemleak: preparing to add checks of function calls 2008-10-08 07:01:25 +00:00
Daniel Marjamäki b2b3e48ebc Unsigned division: Checking if negative constant is used 2008-10-06 16:42:42 +00:00
Daniel Marjamäki 3d14bbea56 TestDivision: Added two tests of unsigned division when negative constant is used. 2008-10-06 08:52:46 +00:00
Daniel Marjamäki 5115420809 CheckUnsignedDivision: Made it more accurate and moved it to the
standard checks
2008-10-04 12:12:24 +00:00
Daniel Marjamäki c9fc2594e8 CheckMemoryLeak: Removed false positives about not deleting class instances 2008-09-29 06:38:25 +00:00
Daniel Marjamäki 13f5196e52 cppcheck: removed checking of implementation in header. temporarily
commented out the check for variable scope. These changes were made so 
that fewer warning messages will be produced when running c++check
2008-09-24 14:01:45 +00:00
Daniel Marjamäki 534445951c testunusedvar: Added simple testing for unused variables 2008-09-24 11:28:00 +00:00
Daniel Marjamäki 6881a364a2 CheckOther: Minor updates. Removed false positives for CheckScope 2008-09-23 16:03:39 +00:00
Daniel Marjamäki 815dd364ed Incomplete statement: Check for statements that begin with a constant 2008-09-20 17:34:37 +00:00
Daniel Marjamäki c77b81fddd CheckOther: Minor updates in checking of signed char variables and unsigned division 2008-09-16 05:57:57 +00:00
Daniel Marjamäki 528deafe68 CheckUnsignedDivision: Refactoring 2008-09-15 06:40:26 +00:00
Daniel Marjamäki 259e0ce238 tokenize: Fixed a bug in the tokenizer 2008-09-11 18:37:36 +00:00
Daniel Marjamäki ca0f04b825 visual c++: added "--recursive" support 2008-09-11 18:35:08 +00:00
Daniel Marjamäki 5e9f1010ff compilation: Various cross compilation fixes. The "--recursive" option doesn't work on VC now. 2008-09-11 17:03:58 +00:00
Daniel Marjamäki ffb6e1dc6e compilation: hopefully the program should be compilable on VC now 2008-09-10 18:15:33 +00:00
Daniel Marjamäki d942092ac0 memleak: better handling of switch blocks 2008-09-02 07:54:10 +00:00
Daniel Marjamäki deca59aa86 testmemleak: added checks for class members 2008-09-01 06:38:41 +00:00
Daniel Marjamäki aba1ef0d0e memleak: uncommented and fixed the handling of switch 2008-08-31 07:42:54 +00:00
Daniel Marjamäki b88fd769a7 memleak: commented out the switch handling temporarily. it causes
segmentation faults when checking the linux kernel.
2008-08-30 18:42:26 +00:00
Daniel Marjamäki ae322b5f45 made cppcheck compile with g++ 4.3 2008-08-30 18:29:37 +00:00
Daniel Marjamäki 0e267441de djgpp: Fixed compiler warnings/errors when compiling with DJGPP 2008-08-30 16:38:56 +00:00
Daniel Marjamäki 3daf128c0f tokenize: handle simple typedefs 2008-08-28 06:37:11 +00:00
Daniel Marjamäki 778410ccbf char variable usage: Added checking 2008-08-28 06:36:30 +00:00
Daniel Marjamäki 0f036f622b testmemleak: improved the checking of loops 2008-08-27 06:33:27 +00:00
Daniel Marjamäki 7752f2c62c testdivision: changed the error message. hopefully it is clearer 2008-08-27 06:32:35 +00:00
Daniel Marjamäki a8e5d28949 testrunner.cbproj: added 'testbufferoverrun', 'testconstructors' and 'testdivision' 2008-08-27 06:31:19 +00:00
Daniel Marjamäki d59dd1bf7c CheckMemoryLeak: Improved the reducing of "if.." 2008-08-25 18:01:11 +00:00
Daniel Marjamäki e2d1be9b0c testmemleak: replace switch blocks with if blocks 2008-08-24 08:01:58 +00:00
Daniel Marjamäki fd4e8b7345 testing: added 'testconstructors' 2008-08-24 06:47:33 +00:00
Daniel Marjamäki 8cbafe3efe test: Added 'testdivision.cpp' 2008-08-23 16:50:29 +00:00
Daniel Marjamäki 47d796519a test: Added 'testdivision' 2008-08-23 16:40:53 +00:00
Daniel Marjamäki 3d6093b970 test: Minor polishing 2008-08-23 16:16:58 +00:00
Daniel Marjamäki 7a07284c7e test: Added the last buffer overrun tests 2008-08-23 16:15:31 +00:00
Daniel Marjamäki 8c901694b8 testing: Added 'testbufferoverrun' 2008-08-23 14:12:08 +00:00
Daniel Marjamäki 7268c40560 minicppunit: removed compiler warnings about characters 2008-08-23 13:17:10 +00:00
Daniel Marjamäki 7269dfa336 CheckMemoryLeak: Updated the handling of 'case' and 'default' a little 2008-08-23 13:16:25 +00:00
Daniel Marjamäki a7f82f5e57 testing: created new testproject for codegear that uses the minicppunit framework 2008-08-22 06:31:23 +00:00
Daniel Marjamäki c618971609 testing: Moved tests from tests.cpp to testmemleak.cpp (forwhile, switch) 2008-08-22 06:30:06 +00:00
Daniel Marjamäki 794cdfd2ee testing: Added tests TestMemoryleak::ifelse 2008-08-21 18:55:04 +00:00
Daniel Marjamäki 61242571dd testing: Started using the MiniCppUnit framework 2008-08-21 17:32:34 +00:00
Daniel Marjamäki 1c5ed9b1c0 refactoring: made compilation work in codegear 2008-08-20 07:32:07 +00:00
Daniel Marjamäki e64eed909b CheckMemoryLeak: Fixed a bug: Don't erase "{ }", replace with ";" 2008-08-20 06:51:26 +00:00
Daniel Marjamäki 6bdb2ff0dc CheckMemoryLeak: Added testcase (false positive from linux kernel) 2008-08-19 17:16:55 +00:00
Daniel Marjamäki 0b8f646e0b CheckMemoryLeak: Small improvements 2008-08-19 04:53:41 +00:00
Daniel Marjamäki 9276783ab9 CheckMemoryLeak: By default skip class memory leaks because there may be various types of garbage collectors 2008-08-18 06:40:37 +00:00
Daniel Marjamäki 0679b89e84 CheckMemoryLeak: Minor updates 2008-08-17 18:01:37 +00:00