Commit Graph

27043 Commits

Author SHA1 Message Date
Daniel Marjamäki 0c910c9775 Memory leak: Added TODO test. Mismatching allocation and deallocation in subfunction 2008-11-11 20:03:06 +00:00
Daniel Marjamäki 57c144a342 unused private function: Added test1 (assert that error message is given for simple case) 2008-11-11 20:02:10 +00:00
Daniel Marjamäki f347efd802 Memory leak: Fixed one more unit test 2008-11-11 19:46:08 +00:00
Daniel Marjamäki 3a39259472 Refactoring: Don't use the TOKEN::str directly 2008-11-11 17:46:53 +00:00
Daniel Marjamäki d8f11d3142 Refactoring: Use 'Match' instead of direct comparisons 2008-11-11 17:22:40 +00:00
Reijo Tomperi f242c4fddd Refactoring: Following new classes were created:
CheckBufferOverrunClass
CheckClass
CheckHeaders
CheckMemoryLeakClass
CheckOther
Preprocessor
2008-11-11 06:42:09 +00:00
Daniel Marjamäki f752b0e375 unused struct member: Added checks 2008-11-10 20:59:18 +00:00
Daniel Marjamäki 607a4337ec testmemleak: Added todo 'forwhile7' 2008-11-10 20:30:47 +00:00
Daniel Marjamäki 90635eced7 Memory leak: Handle "goto" a little differently 2008-11-10 20:18:03 +00:00
Daniel Marjamäki 0ea17838cf cleanup 2008-11-10 18:56:02 +00:00
Daniel Marjamäki f50c36c84f todo: added memory leak examples 2008-11-10 18:52:15 +00:00
Daniel Marjamäki f4712ef5bf Memory leaks: Added tests and handling for 'throw' and linux lists 2008-11-10 18:51:44 +00:00
Daniel Marjamäki 61db3a7f11 todo: added 'check operator=' 2008-11-10 07:50:58 +00:00
Daniel Marjamäki b347ba5a7e Memory leak: Minor updates in the notvar function 2008-11-09 17:47:00 +00:00
Daniel Marjamäki fd7ce880aa Memory Leak: Improved checking of subfunctions. Simplify their code. 2008-11-09 17:36:53 +00:00
Daniel Marjamäki 2c74d1c0de Memory leak: Ensure that simple memory leak is detected 2008-11-09 17:27:23 +00:00
Daniel Marjamäki 8fce5d39e5 Memory leak: Began work for parsing into subfunctions. 2008-11-09 16:34:18 +00:00
Daniel Marjamäki 26bfab1c7e Memory leak: Removed false positives. 'use ; use ;' is not always the same as 'use ;' 2008-11-09 10:09:42 +00:00
Daniel Marjamäki c2ea705fd7 Memory Leak: Stronger checking. Ignore 'if use ;' and 'if dealloc;'. A leak could occur if it's not executed. 2008-11-09 08:40:57 +00:00
Reijo Tomperi ef9f472188 Refactoring: Tokenizer class added, functions still mostly static and
using globals
2008-11-09 07:19:53 +00:00
Daniel Marjamäki e9a6f223e6 GPL: Added comment in testsuite.h 2008-11-08 13:15:48 +00:00
Daniel Marjamäki 15e9f4ae25 Unused private function: Added test 2008-11-08 13:14:16 +00:00
Daniel Marjamäki 224b241f9a Memory leak: remove the dealloc in "if dealloc ;" if it's not followed
by an "else". This makes the checking stronger.
2008-11-08 07:19:19 +00:00
Reijo Tomperi 459711ed00 - Fixed compiling on Debian with gcc ( missing includes and std:: )
- Removed c-style include for Borland compiler.
2008-11-07 20:25:07 +00:00
Daniel Marjamäki 7569071846 Memory Leak: Added checking 2008-11-07 17:24:19 +00:00
Daniel Marjamäki 789aac2ef4 cleanup the files 2008-11-07 16:25:29 +00:00
Daniel Marjamäki af5b1858aa Visual C++: Fixed compiler error for "strdup" 2008-11-07 16:20:22 +00:00
Daniel Marjamäki 34f44e3c04 Memory Leaks: Convert "do-while" blocks to "while" blocks to make the handling for that the same. 2008-11-07 16:19:55 +00:00
Daniel Marjamäki cdf9ee4d8a Memory Leaks: Improved the checking of loops. 2008-11-07 07:46:28 +00:00
Daniel Marjamäki 53752c129d Borland C++: Fixed compiler error (couldn't find the function 'free') 2008-11-07 07:45:50 +00:00
Reijo Tomperi a9e1fe5637 FileLister.* and testtokenize.cpp, changed encoding to utf-8 2008-11-06 19:40:49 +00:00
Daniel Marjamäki db6b4b3069 Memory Leak: Fixed bug with strdup in loop. Bug 2225370 2008-11-06 19:16:22 +00:00
Daniel Marjamäki c220b061dc Refactoring TOKEN: Changed from struct to class 2008-11-06 18:31:39 +00:00
Daniel Marjamäki 69a3595f19 cleanup of UTF-8. Updated the Makefile 2008-11-06 00:11:37 +00:00
Daniel Marjamäki 6a3d957366 CheckAlpha: Expanded checking to include 'isupper' and 'islower' 2008-11-06 00:04:52 +00:00
Daniel Marjamäki f8a60ae5c2 CheckClass: Applied patch 2220196 2008-11-06 00:00:38 +00:00
Daniel Marjamäki dfb7b4ed72 todo: A few short updated notes 2008-11-05 23:51:06 +00:00
Daniel Marjamäki 877aea4bf7 tests: Removed this deprecated file 2008-11-05 23:50:40 +00:00
Daniel Marjamäki 9c565d5945 C++ Builder: Updated the testrunner project 2008-11-05 23:50:18 +00:00
Daniel Marjamäki c16c12c70a Buffer overrun: Fixed a false positive 2008-11-05 23:49:46 +00:00
Daniel Marjamäki 8b9e223265 testother: Removed this test. Individual tests will be created instead 2008-11-05 23:48:59 +00:00
Daniel Marjamäki 16b5260824 testincompletestatement: created new test 2008-11-05 23:48:17 +00:00
Daniel Marjamäki b20c233599 TestBufferOverrun: Added a test case that shouldn't generate error. Get address beyond array. 2008-11-05 07:48:07 +00:00
Daniel Marjamäki eb86a0fc34 Tokenizer: Skip inline assembly (Bug 2220727) 2008-11-05 07:28:40 +00:00
Daniel Marjamäki fd4b02e538 CheckClass: Removed false positive "unused private function" for typedef (Bug 2220326) 2008-11-05 07:25:28 +00:00
Daniel Marjamäki 5e4a7fefe5 Tokenize: Changed the array CurrentToken to a std::string 2008-11-04 19:09:31 +00:00
Daniel Marjamäki 80ce75216d Borland C++: Added 'TestTokenize' to the testrunner project 2008-11-04 19:04:07 +00:00
Daniel Marjamäki c90084ee00 testpreprocessor: updated the testing for multiline preprocessor statements 2008-11-03 19:39:09 +00:00
Daniel Marjamäki ab590ce675 preprocessor: fixed invalid character 2008-11-03 19:36:43 +00:00
Daniel Marjamäki 584b6b09fe Updated the Borland C++ project files 2008-11-03 18:57:53 +00:00