Commit Graph

1418 Commits

Author SHA1 Message Date
Nicolas Le Cam 2e439d8cea Memory leak : Completly fix false positive when using callbacks (Bug 2458510) 2009-01-02 00:05:08 +00:00
Reijo Tomperi 5b42b5777e Refactoring: i++; changed to ++i; 2009-01-01 23:43:23 +00:00
Reijo Tomperi 94923cca1a Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
Daniel Marjamäki ca550fb03e Memory leak : Changed the handling of "realloc" a little. The "getcode" will return "realloc" instead. And this will be converted to "dealloc;alloc;" before simplifycode 2009-01-01 18:42:32 +00:00
Daniel Marjamäki 35cdb6b0ba Memory leak : a little different handling when the callstack gets too big 2009-01-01 16:10:10 +00:00
Daniel Marjamäki b7b737c8f2 Memory leak : fixed false positive when there are recursive calls. (using memory after it has been freed) 2009-01-01 11:02:30 +00:00
Daniel Marjamäki 0b69a13205 Memory leak : Fixed false positives for "memory is used after it has been freed" 2009-01-01 10:14:52 +00:00
Daniel Marjamäki 784fc0d33e Memory leak : Fixed a bug in getcode (assignment) 2009-01-01 10:02:53 +00:00
Daniel Marjamäki 9a3696cb6f TOKEN: Renamed TOKEN::setstr to TOKEN::str 2009-01-01 09:37:07 +00:00
Daniel Marjamäki cf355c9e75 Memory leak : Fix to avoid false positives 2009-01-01 08:15:27 +00:00
Daniel Marjamäki dec4561ce3 memory leak: removed 'if(true)' and 'if(false)' as these are handled in the tokenizer instead 2008-12-31 17:32:18 +00:00
Daniel Marjamäki b31b56fbe9 releasenotes : removed this file 2008-12-31 09:07:01 +00:00
Daniel Marjamäki 085e97fd36 Memory leak : Added check "Using resource after it has been released" 2008-12-31 09:02:45 +00:00
Daniel Marjamäki 43150ce9fb if checking : fixed bug in previous commit 2008-12-31 08:38:48 +00:00
Daniel Marjamäki da1b84b199 if statements : bug fix and refactorings in the checking for "if (condition);" 2008-12-31 07:42:50 +00:00
Daniel Marjamäki 6167c22eb9 help : minor updates to help text that cppcheck shows when no parameters are given 2008-12-30 18:48:36 +00:00
Daniel Marjamäki a0d27c9109 readme : minor updates 2008-12-30 18:45:35 +00:00
Reijo Tomperi e11799eede c++check -> cppcheck 2008-12-30 18:45:17 +00:00
Daniel Marjamäki 75ec9f5c86 releasenotes : edit 2008-12-30 18:45:06 +00:00
Daniel Marjamäki 8a0e44a41b cppcheck : updated version to 1.27 in help text 2008-12-30 18:21:19 +00:00
Daniel Marjamäki 3947d8e797 Memory leak : Reverted 796 and 797. I didn't see definite improvements 2008-12-29 11:31:19 +00:00
Daniel Marjamäki 6a83e24c90 Memory leak : Removed checking of 'if(true)' and 'if(false)' as these are handled in the Tokenizer 2008-12-29 08:12:33 +00:00
Daniel Marjamäki 7e43f9f7f9 Memory leak : Optimising the 'CheckMemoryLeakClass::simplifycode' 2008-12-29 08:07:25 +00:00
Daniel Marjamäki c3954afdef Memory leak : Remove false positive for "if (cond1) str=strdup(); if (cond2) str=strdup();" 2008-12-28 21:24:51 +00:00
Daniel Marjamäki 6c8c4d7a63 memory leak : fixed false positive for "list << data" 2008-12-28 21:02:11 +00:00
Daniel Marjamäki 7f1b98d7ae Memory leak : Fixed false positive for "list += data" 2008-12-28 20:57:50 +00:00
Reijo Tomperi ec32e071b5 Bail out text is now not printed with --quiet option 2008-12-28 20:13:03 +00:00
Daniel Marjamäki 76239fcdf9 Memory leak : Fixed a problem with a fclose inside an if condition 2008-12-28 19:57:50 +00:00
Reijo Tomperi 56de5ece91 releasenotes updated command line options made more accurate 2008-12-28 16:01:26 +00:00
Daniel Marjamäki dbe56e2574 releasenotes : Added release notes for the coming 1.27 release 2008-12-28 14:41:22 +00:00
Daniel Marjamäki 8ba739a99a Tokenizer::setVarId : Minor bug fix 2008-12-28 10:13:41 +00:00
Reijo Tomperi 7a9a43390e Optimizing setVarId() 2008-12-27 20:48:42 +00:00
Reijo Tomperi 31e9a7e10c preprocessor optimized to handle faster removal of spaces near newline 2008-12-27 20:30:54 +00:00
Daniel Marjamäki c5247aa887 Visual C++ : Updated the project file 2008-12-27 11:31:00 +00:00
Daniel Marjamäki a01ebc819f Memory leak: Added check "TestMemoryLeak::throw2" (no false positive upon throw) 2008-12-27 11:29:38 +00:00
Reijo Tomperi 801f2c246d Bailing out if too many (over 12) configurations found froma file. --force parameter added to prevent this from happening. 2008-12-27 07:52:07 +00:00
Reijo Tomperi 3a39d18d19 Change one while loop to use stl algorithms and added TODO about slow part of code 2008-12-27 00:03:20 +00:00
Reijo Tomperi c850901536 Added preprocessor a way to retrieve configurations and file content one configuration at time, because large files could consume 500 MB or even more memory. 2008-12-26 22:52:27 +00:00
Daniel Marjamäki 6ef11f3f49 Memory leaks : Fixed false positive for "p" when there is a line such as "p2 = p + 1;" 2008-12-26 20:12:42 +00:00
Daniel Marjamäki 8a02641ffd removeRedundantConditions : Added a simple test case for "else if (false)" 2008-12-26 15:46:59 +00:00
Daniel Marjamäki 79519f5bde removeRedundantConditions : Fixed the test case added in [777] 2008-12-26 15:42:04 +00:00
Daniel Marjamäki 9ae5c15e17 removeReduntantConditions : Added test case 2008-12-26 14:43:16 +00:00
Reijo Tomperi b9494c8081 removeReduntantConditions() can now handle if( true ) else if () conditions also. 2008-12-26 12:55:53 +00:00
Daniel Marjamäki 12a898c2fa Memory leak : Added TODO test case "class3". It currently fails 2008-12-26 09:13:49 +00:00
Daniel Marjamäki 586b28b063 refactoring : Removed unread variable 'staticfunc' 2008-12-25 20:09:32 +00:00
Daniel Marjamäki 709e2a4277 TOKEN::Match : Removed the parameter varnames2 because it's unused and deprecated 2008-12-25 18:27:49 +00:00
Daniel Marjamäki 8c08c4d66b uniformize files 2008-12-25 18:24:57 +00:00
Daniel Marjamäki 5cfa05e180 Makefile : Removed the .gprof makefile and added a CGLAGS variable so the normal Makefile can easily be changed 2008-12-25 17:11:01 +00:00
Daniel Marjamäki 492082f4f2 Memory leaks : Fixed false positive with return (Bug 2458436) 2008-12-25 08:27:07 +00:00
Daniel Marjamäki 1776fdcdcd Makefile : Reverted the Makefile changes in [763] because they were committed by mistake 2008-12-25 08:00:42 +00:00