Commit Graph

14097 Commits

Author SHA1 Message Date
Daniel Marjamäki 744c4928c4 token : if setstr is used clear the variable id 2008-12-18 07:21:06 +00:00
Daniel Marjamäki 8d6f77deed Memory leaks : Remove "if break|continue ;" that may otherwise cause false positives 2008-12-18 07:20:31 +00:00
Daniel Marjamäki 69137597f5 tokenizer : using the simplifyKnownVariables 2008-12-18 07:19:35 +00:00
Daniel Marjamäki 612d0e56f2 virtual destructors : no errormessage if the derived class has no destructor or empty destructor 2008-12-17 20:38:09 +00:00
Daniel Marjamäki ee5e20ed1f memory leak : fixed 2 bugs related to the testcases TestMemleak::if7 and TestMemleak::simple9 2008-12-17 19:21:39 +00:00
Daniel Marjamäki dd853f0d59 token : fixed so that TOKEN::_previous is updated when deleting tokens 2008-12-17 19:20:11 +00:00
Daniel Marjamäki a19b938665 testsuite : make it possible to run a specific testcase 2008-12-17 19:18:39 +00:00
Daniel Marjamäki fc325ac98a Memory leak : Added a test case for future checking of struct members 2008-12-16 19:16:52 +00:00
Daniel Marjamäki b145bf3650 Memory leak : Fixed issue 2429936 - false positive reported on the break in the code "loop { dealloc ; alloc ; if break ; }" 2008-12-16 19:01:15 +00:00
Daniel Marjamäki 87de37bcb4 Memory leaks : Added test case for bug 2429936 2008-12-16 17:27:52 +00:00
Daniel Marjamäki a8661baac5 Memory leak : Fixed bug described in issue 2432631. False positive on something like this.. "alloc ; if(!var) alloc;" 2008-12-16 17:06:59 +00:00
Daniel Marjamäki e853f28912 token : minor refactoring to TOKEN::insertToken. Give the linenr and fileIndex the same values as this token. It's better than nothing 2008-12-16 17:05:43 +00:00
Nicolas Le Cam 40f3ef61c9 Removes WarningIs(Alpha|Digit) checks as this can introduce more problems than fixes. 2008-12-15 23:03:04 +00:00
Daniel Marjamäki d74dc759a2 tasks : Added task for optimising TOKEN::Match 2008-12-15 18:54:04 +00:00
Daniel Marjamäki 0d36de4018 Redundant condition : fixed the checking 2008-12-15 18:49:34 +00:00
Daniel Marjamäki 707a406dab Redundant condition : Added a check 2008-12-15 07:29:55 +00:00
Nicolas Le Cam 883282ba16 Fix compilation 2008-12-14 23:06:37 +00:00
Reijo Tomperi 06b8cc48e8 Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
Nicolas Le Cam 24c978d5d2 Formatting: uniformize end of lines. 2008-12-14 22:03:49 +00:00
Reijo Tomperi 3851c0f019 Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
Reijo Tomperi a15381dcbe Fixed bug, paths like "/path/../index.h" created duplicate warnings with files like "/index.h". Relative paths are now simplified to
look a like. Test cases added.
2008-12-14 19:03:34 +00:00
Nicolas Le Cam fec777057d Formatting: uniformize end of lines. 2008-12-14 17:05:21 +00:00
Nicolas Le Cam 8882ff9509 Add something I want to work on 2008-12-14 16:36:35 +00:00
Nicolas Le Cam 81185af7f9 Add the last c++ cast operator 2008-12-14 16:35:51 +00:00
Daniel Marjamäki 8b82ae1ac0 tasks : things that can be done 2008-12-14 15:30:38 +00:00
Reijo Tomperi 9c9740821f Old TODO comment removed 2008-12-13 20:45:48 +00:00
Reijo Tomperi 1d401905b0 More tests added for simplifyKnownVariables() 2008-12-13 20:43:54 +00:00
Daniel Marjamäki 6269c3cbbd tokenizer : updated simplifyKnownVariables 2008-12-13 20:22:45 +00:00
Reijo Tomperi 538f259911 Started making simplifyKnownVariables(), but it is very much unfinished. Two test cases added for it. 2008-12-13 19:44:56 +00:00
Daniel Marjamäki ff3a1714f2 Memory leak : added standard functions that are safe and doesn't need to be checked 2008-12-13 19:07:29 +00:00
Reijo Tomperi 02d6e367e7 Refactoring, simplifyConditions(), simplifyCasts() and simplifyFunctionReturn() now return the opposite of their boolean return value. 2008-12-13 18:54:48 +00:00
Daniel Marjamäki 1e9863d671 Tokenizer : Simplify function calls for functions that only returns a constant value 2008-12-13 17:57:36 +00:00
Daniel Marjamäki 3a1196e5f9 Tokenizer : Added function for simplifying casts 2008-12-13 16:42:39 +00:00
Nicolas Le Cam 4b04d38867 Refactoring: changed "aaaa" to "str" 2008-12-13 11:52:56 +00:00
Nicolas Le Cam 661068bcd4 Formatting: uniformize end of lines. 2008-12-13 11:39:36 +00:00
Nicolas Le Cam 13bcb66c14 Add three memoryleak tests involving pointer casting that currently 'fail' 2008-12-13 11:19:09 +00:00
Daniel Marjamäki 46205bde8e Memory leak : Added a test case for false positive when using function call 2008-12-13 10:01:05 +00:00
Daniel Marjamäki e99744ae9b Buffer overrun : Use variable id if available in check of memset etc 2008-12-13 08:49:13 +00:00
Daniel Marjamäki 5ea8d411b5 Memory leak : Fixed a test where pointer is reassigned 2008-12-13 08:43:22 +00:00
Reijo Tomperi 8ad2c58c56 Slightly improved test case 2008-12-12 23:01:39 +00:00
Reijo Tomperi dd7e012509 Added test case for false positive, fails currently 2008-12-12 22:25:36 +00:00
Reijo Tomperi 0e51bc3669 Refactoring, some !Match() calls chanded into using !!else syntax 2008-12-12 21:35:51 +00:00
Reijo Tomperi 4e8e35f666 TOKEN: Patterns like "if ; !!else" are now possible 2008-12-12 21:00:25 +00:00
Daniel Marjamäki 0cfec3c89c Tokenizer::SetVarId : Fixed segmentation fault 2008-12-12 20:25:08 +00:00
Daniel Marjamäki 6383b9d2bd CheckBufferOverrun : Using variable id to check local array variables 2008-12-12 20:10:56 +00:00
Reijo Tomperi a44c21da08 testmemleak: Added 2 tests, fopen() and popen() should return resource leak, instead of memory leak 2008-12-12 19:21:34 +00:00
Daniel Marjamäki 90bc72a413 testbufferoverrun : Added a testcase where variable id is needed to avoid false positive 2008-12-12 19:16:30 +00:00
Reijo Tomperi edff8d326f Memoryleak: fopen and popen report now "Resource leak" instead of "Memory leak" 2008-12-12 19:08:30 +00:00
Nicolas Le Cam 4f8ab7fa03 Fix a crash in eraseToken 2008-12-12 00:18:57 +00:00
Nicolas Le Cam 949e1ad6b8 Fix compilation under VS2003 2008-12-11 23:04:21 +00:00