Commit Graph

22826 Commits

Author SHA1 Message Date
Daniel Marjamäki b6868b7f1a Rewriting CheckMemoryLeak (Just Started) 2008-04-02 05:09:35 +00:00
Daniel Marjamäki 60e454fa11 Minor updates. Removed some false positives when checking variable scope 2008-04-01 06:21:12 +00:00
Daniel Marjamäki 89605c0167 Fixed minor bugs 2008-03-29 17:27:02 +00:00
Daniel Marjamäki 69d33444d4 Added style checks to check for unused global functions 2008-03-29 09:44:23 +00:00
Daniel Marjamäki f8569f0db4 Refactoring: Removed 'HasErrors'. Better usage of 'Match'. Hid the 'FunctionList' 2008-03-28 17:40:24 +00:00
Daniel Marjamäki 4691999ede Refactoring: Replaced deprecated "match" with the new "Match" 2008-03-28 07:18:03 +00:00
Daniel Marjamäki bf6926232b CheckBufferOverrun: Improved checking of arrays declared like this: "type * var [ num ]" 2008-03-27 05:41:21 +00:00
Daniel Marjamäki 021b86afa2 test cppcheck: All tests work 2008-03-26 07:18:40 +00:00
Daniel Marjamäki b011228fce Fixed bugs in 'CheckBufferOverrun.cpp' 2008-03-25 17:10:52 +00:00
Daniel Marjamäki 5296377c52 To compile with borland, 'algorithm' was needed 2008-03-25 05:52:28 +00:00
Daniel Marjamäki fcff7a4052 Refactoring of 'CheckBufferOverrun.cpp' 2008-03-24 19:32:17 +00:00
Daniel Marjamäki 41252ac45a Refactoring 'CheckBufferOverrun'. Added 'Match1'. 2008-03-24 16:24:07 +00:00
Daniel Marjamäki 1e379b8ffa Refactoring the 'CheckBufferOverrun' 2008-03-24 11:51:16 +00:00
Daniel Marjamäki 954cccf843 Removed checking of 'dynamic data' it's impossible to determine if it's
false or true positives without deeper analysis.
2008-03-24 11:00:04 +00:00
Daniel Marjamäki c327dc10d8 Made the checking for buffer overruns more generic 2008-03-24 10:03:45 +00:00
Daniel Marjamäki b7477cb27f Combined 'findfunction' and 'FindFunction'. Updated "CheckBufferOverrun"
(checking for-loops).
2008-03-24 07:24:49 +00:00
Daniel Marjamäki 4c17dd9499 Buffer overrun in function parameter 2008-03-23 16:18:31 +00:00
Daniel Marjamäki 44bee90d82 Refactoring (Replace '->' with '.', use matching function when possible) 2008-03-23 14:15:44 +00:00
Daniel Marjamäki 75debeba37 Reverted 205:207 2008-03-23 13:38:01 +00:00
Daniel Marjamäki 34a2fdfb37 Refactoring 2008-03-23 13:27:34 +00:00
Daniel Marjamäki 3dfc79d3b6 Refactoring: Use 'setindentlevel' 2008-03-23 07:57:27 +00:00
Daniel Marjamäki 0d0f562e90 Refactoring: Added helper function 'setindentlevel' 2008-03-22 20:14:25 +00:00
Daniel Marjamäki ede402a5ec Minor refactoring 2008-03-22 17:09:08 +00:00
Daniel Marjamäki ab7cb379af In the checks, use const pointers 2008-03-22 11:46:06 +00:00
Daniel Marjamäki 13f681879f Handling pointers in 'CheckBufferOverrun_StructVariable' 2008-03-21 18:55:29 +00:00
Daniel Marjamäki 0a86992806 Check for buffer overruns for struct members (only numeric) 2008-03-21 17:25:25 +00:00
Daniel Marjamäki c8038d52fd Deleted obsolete file 'checknpp.bat' 2008-03-21 16:06:53 +00:00
Daniel Marjamäki c5e7cb4032 'CheckUnsignedDivision' -> more errors. 'CheckVariableScope' -> removed false errors. 2008-03-21 06:44:52 +00:00
Daniel Marjamäki 313d3dafa1 Rewrote the checking for "unsigned division" => less false positives 2008-03-20 07:23:01 +00:00
Daniel Marjamäki 506fc0e16d tokenize: Fixed two bugs
* don't hang if we can't find the ending of a string.
 * don't divide by zero
2008-03-19 17:09:51 +00:00
Daniel Marjamäki b1b7593c76 Updates here and there to make it more accurate 2008-03-19 06:03:56 +00:00
Daniel Marjamäki 85a50103a5 Better checking of class declarations. 2008-03-18 07:46:42 +00:00
Daniel Marjamäki d0cffeaa8c Updated tokenizer. To handle "#define f1(a,b) (a+b)" better 2008-03-18 07:45:35 +00:00
Daniel Marjamäki 101afe4344 Checking variable scope 2008-03-17 11:05:30 +00:00
Daniel Marjamäki bcd292ffaa Updated 'todo.txt' 2008-03-17 05:53:29 +00:00
Daniel Marjamäki 119e719d52 bug fixes for 'CheckVariableScope' 2008-03-16 17:39:38 +00:00
Daniel Marjamäki a9524b9207 Added test 'CheckVariableScope'. Increased constness. 2008-03-16 13:17:43 +00:00
Daniel Marjamäki c366278b48 added 'todo.txt' 2008-03-16 07:07:51 +00:00
Daniel Marjamäki d9fc9762b8 Removed 'checkproj.bat' (Deprecated) 2008-03-15 17:06:27 +00:00
Daniel Marjamäki d6db5ae1bc updated command syntax example 2008-02-22 14:58:53 +00:00
Daniel Marjamäki 1594432285 allow duplicate error messages in tests 2008-02-22 14:35:44 +00:00
Daniel Marjamäki a6696d6f7d Removed false positives and also duplicate error messages. 2008-02-22 14:30:43 +00:00
Daniel Marjamäki 942c48474c comments 2008-02-22 07:26:23 +00:00
Daniel Marjamäki 6e2e624bce Removed false positives 2008-02-22 07:26:10 +00:00
Daniel Marjamäki 6100b19640 sort the files before checking to make the results comparable 2008-02-22 07:25:31 +00:00
Daniel Marjamäki e9682bbb0e Fixed bug (Dereferencing NULL) 2008-02-21 20:17:18 +00:00
Daniel Marjamäki 7bbdb7a3ba removed false positives for CheckUnsignedDivision 2008-02-21 19:05:11 +00:00
Daniel Marjamäki 97003e8064 recursive checking when compiling with gcc 2008-02-21 19:01:24 +00:00
Daniel Marjamäki b6ea2e43ff recursive checking when compiled by borland c++ 2008-02-21 17:56:51 +00:00
Daniel Marjamäki 08b3b2ab63 CheckUnsignedDivision: Added check. Not very accurate yet. 2008-02-20 18:20:59 +00:00