Commit Graph

27012 Commits

Author SHA1 Message Date
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
Daniel Marjamäki a40c1e9eb7 CheckClass: Improved constructor checking 2008-02-19 07:09:09 +00:00
Daniel Marjamäki 7ee67f2e64 Refactoring: Removed unneeded parameter PointerType 2008-02-18 17:12:13 +00:00
Daniel Marjamäki 72d9e43f92 Made it compilable by borland c++ 2008-02-18 17:11:34 +00:00
Daniel Marjamäki edc4177df3 ClassChecking: Only enable the 'no constructor' warning if '--style' is given 2008-02-18 17:04:14 +00:00
Daniel Marjamäki 46d8fe0fad Class Checking: No constructor 2008-02-18 16:28:37 +00:00
Daniel Marjamäki f06c65c071 checking multiple files 2008-02-17 18:28:51 +00:00
Daniel Marjamäki a51e012a5a Added list of bugs that cppcheck find (incomplete) 2008-02-17 17:22:21 +00:00
Daniel Marjamäki 0b5e6a55d4 Unit Testing: Checking for mismatching allocation / deallocation 2008-02-17 16:19:01 +00:00
Daniel Marjamäki ac6ce3a0d1 Unit Testing: Testing the statement list 2008-02-17 15:47:37 +00:00
Daniel Marjamäki 5450b64a8a Unit Testing: Moved the 'internaltesting' 2008-02-17 15:23:14 +00:00
Daniel Marjamäki 92b5af4abc Cleanup old testing 2008-02-17 11:58:37 +00:00
Daniel Marjamäki 89061edbba Cleanup old tests 2008-02-17 11:57:10 +00:00
Daniel Marjamäki 6080808878 Cleanup of old testcases 2008-02-17 11:53:39 +00:00
Daniel Marjamäki c66846353c Unit Testing: Moving memleak checks 2008-02-17 11:45:06 +00:00