Commit Graph

6397 Commits

Author SHA1 Message Date
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
Daniel Marjamäki 20ae03d0d0 Memory leak : Fixed false positive when using callbacks (Bug 2458510) 2008-12-25 07:50:25 +00:00
Reijo Tomperi 2692866694 Cleanup to removeReduntantConditions() 2008-12-24 15:43:05 +00:00
Daniel Marjamäki 3bcd14ebac added Makefile that can be used when profiling cppcheck with gprof 2008-12-24 11:52:07 +00:00
Reijo Tomperi 05e23b7606 Minor improvement to removeReduntantConditions() 2008-12-24 08:33:15 +00:00
Daniel Marjamäki 36f39aec22 tokenize : optimising "simplifyConditions" 2008-12-24 07:55:12 +00:00
Daniel Marjamäki a65a66bee0 Tokenizer::setVarId : small optimisations 2008-12-24 07:46:57 +00:00
Daniel Marjamäki 6472588ddd memory leaks : optimising 'simplifycode' 2008-12-24 07:36:18 +00:00
Daniel Marjamäki b16702144e checkclass : simple refactorings. Use Match pattern better. Use str() and simpleMatch instead of Match when possible 2008-12-24 07:03:27 +00:00
Reijo Tomperi 7c236d122a Some comments added 2008-12-23 21:51:54 +00:00
Nicolas Le Cam 14e89fa887 Formatting: demux simpleMatch for readability 2008-12-23 21:45:47 +00:00
Reijo Tomperi a303cf278d Optimization: isNotPattern() removed 2008-12-23 21:20:54 +00:00
Daniel Marjamäki d24913caf8 tokenize : small optimisations. Use simpleMatch and direct std::string comparisons instead of Match 2008-12-23 20:42:44 +00:00
Reijo Tomperi c4ecdf06f0 Optimization, improved Match(). The str[0] == '%' improvement 2008-12-23 20:17:05 +00:00
Nicolas Le Cam b32663324e Fix comparison between signed and unsigned integer expressions warning 2008-12-23 19:54:22 +00:00
Daniel Marjamäki 44b459a98c simplifyKnownVariables : optimisation 2008-12-23 19:39:06 +00:00
Daniel Marjamäki b8e0ea81a6 memory leaks : bug fix 2008-12-23 08:25:16 +00:00
Daniel Marjamäki 5a91a2ea12 simplifyIfAddBraces : Further fixes so that braces will be added to an "else" statement too 2008-12-23 08:11:33 +00:00
Daniel Marjamäki e7d6809cf4 checkbufferoverrun : a bug fix and a better use of Match 2008-12-23 07:50:44 +00:00
Nicolas Le Cam 85239c48a9 Minor optimizations: introduce use of simpleMatch, don't use [simple]Match on one word patterns;
Minor style formattings
2008-12-22 23:27:49 +00:00
Nicolas Le Cam d6ffc63230 Fix FileLister::RecursiveAddFiles on files without a base path. 2008-12-22 22:46:31 +00:00
Daniel Marjamäki 7fda68c662 simplifyIfAddBraces : Added check to cppcheck as it seems to work pretty good now 2008-12-22 20:49:56 +00:00