Commit Graph

26974 Commits

Author SHA1 Message Date
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
Daniel Marjamäki daf0563b07 CheckMemoryLeak: Made a test case work 2008-08-17 17:17:17 +00:00
Daniel Marjamäki 76fdae51d9 CheckMemoryLeak: Simplified and updated the code reducers 2008-08-16 19:19:56 +00:00
Daniel Marjamäki 68f409aca5 CheckMemoryLeak: Refactoring further 2008-08-16 17:49:40 +00:00
Daniel Marjamäki b29c916d9f CheckMemoryLeak: Added simple checking 2008-08-16 16:47:54 +00:00
Daniel Marjamäki 8260cf459a CheckMemoryLeak: Got rid of false positives 2008-08-16 13:13:36 +00:00
Daniel Marjamäki 0575781a67 CheckMemoryLeak: Refactoring the check 2008-08-16 12:44:46 +00:00
Daniel Marjamäki c833b51b25 CheckMemoryLeak: Made the checking a lot simpler when "--all" is not
given. This should give few false positives
2008-08-15 19:17:06 +00:00
Daniel Marjamäki fcbd297ff0 tests: Added memory leak test that gives a false positive 2008-08-15 17:40:08 +00:00
Daniel Marjamäki 0ce33fe1da CheckMemoryLeak: Added testcase and made it work (assume that
foo.add(p) deallocates p. Todo to trace into foo.add)
2008-08-15 17:16:17 +00:00
Daniel Marjamäki 6b12d31f5f CheckMemoryLeak: better handling of switch blocks 2008-08-14 06:41:26 +00:00
Daniel Marjamäki 46be988e9a CheckMemoryLeak: Handle one more test case (return pointer) 2008-08-13 19:08:24 +00:00
Daniel Marjamäki 0394aedd52 CheckMemoryLeak: Calling unknown function => assume that it's deallocating variable 2008-08-13 16:41:27 +00:00
Daniel Marjamäki ff6adcbeff memory leak: improved the checking. subfunctions are parsed. redundant conditions are skipped 2008-08-12 18:24:42 +00:00
Daniel Marjamäki 81bcde9ed0 cleanup: removed spaces 2008-08-12 06:40:55 +00:00
Daniel Marjamäki a282495c2a buffer overruns: added tests and improved the checking 2008-08-12 06:39:41 +00:00
Daniel Marjamäki 0f83b0b9ea tests: cleanup and reordering 2008-08-11 18:08:00 +00:00
Daniel Marjamäki 953693ac2e tests: Refactoring 2008-08-11 17:23:34 +00:00