Commit Graph

2750 Commits

Author SHA1 Message Date
Daniel Marjamäki bbd21613f7 testing: minor refactoring so better error messages are shown 2008-12-01 18:52:03 +00:00
Daniel Marjamäki e968b42c38 Memory leaks: When "--debug" is given the checking will be different to
highlight problems in "getcode" and "simplifycode"
2008-12-01 07:50:36 +00:00
Daniel Marjamäki 5ab22473e3 added comment about "--debug" flag. This is used for various debugging purposes so the behaviour of c++check is undefined if it's given 2008-11-30 19:32:36 +00:00
Daniel Marjamäki a7ece61734 Memory leak: The "do" must be handled differently. Made a first fix for it 2008-11-30 19:00:07 +00:00
Reijo Tomperi 5326a35951 Verbose: Added line change to help text printing and updated man page 2008-11-30 10:38:58 +00:00
Daniel Marjamäki a07c1745c3 Verbose error message output through '--verbose' 2008-11-30 09:08:07 +00:00
Daniel Marjamäki f646684159 Memory leak: Fixed the test 'CheckMemoryLeak::func8' 2008-11-29 17:34:47 +00:00
Daniel Marjamäki 8c07a13cb6 Test Memory leak: Added a test case, currently a false positive is generated 2008-11-29 16:42:14 +00:00
Daniel Marjamäki 87794cc66c cppcheck: Write version number etc 2008-11-29 13:58:28 +00:00
Daniel Marjamäki 95c7e1a7d3 Memory leak: Moved the class member checking to the "--all" 2008-11-28 17:16:28 +00:00
Daniel Marjamäki 1f189f655d Array index : No recursive checking unless the "--all" has been given 2008-11-27 20:29:29 +00:00
Reijo Tomperi df452a3b0f Recursive file listing, .cxx added to file list 2008-11-27 19:17:15 +00:00
Reijo Tomperi 101e7b96fc Removed debug output 2008-11-27 18:57:07 +00:00
Daniel Marjamäki 6fcbbf21ee Memory leaks: Reverted the sensitive checking in r536. And improved the
simplifycode function.
2008-11-27 07:27:50 +00:00
Daniel Marjamäki 997f4e6165 Memory leaks: Made the checking a lot more sensitive 2008-11-26 18:13:36 +00:00
Daniel Marjamäki 2e22c7cb1d CheckMemoryLeak: Refactoring. Use TOKEN::isStandardType instead of rewriting its functionality 2008-11-26 07:23:54 +00:00
Daniel Marjamäki b179083788 token: refactoring the 'isStandardType' a little 2008-11-26 07:22:34 +00:00
Daniel Marjamäki c95fee7266 testmemleak: Added 'func7' test case. Not working yet 2008-11-26 07:17:50 +00:00
Reijo Tomperi 69ba8ce7f9 Feature added: CppCheck class has now function addFile(string,string) which allows checking of unreal files, by giving just filename and file content as a
parameter.
2008-11-25 20:56:11 +00:00
Daniel Marjamäki 4f4a2391e0 Refactoring: Removed _settings member from the Tokenizer 2008-11-25 18:44:35 +00:00
Daniel Marjamäki 8845e8bc89 Refactoring: Tokenizer - renaming functions, moved the 'tokenizeCode' to the private section 2008-11-25 18:34:51 +00:00
Daniel Marjamäki 0d6bd9b7fd TODO: added a todo to add an error message. and removed an "invalid" todo 2008-11-25 18:15:32 +00:00
Daniel Marjamäki 4df96f299f Function usage: Report which file the missing function is implemented in 2008-11-25 18:11:02 +00:00
Reijo Tomperi bf0bf3268d Refactoring: Added missing license texts and some comments 2008-11-24 22:10:48 +00:00
Reijo Tomperi b2f155c82c Refactoring: Updated project file for Code::Blocks 2008-11-24 21:51:02 +00:00
Reijo Tomperi ad5fbe5dc6 Refactoring: CppCheckExecutor class added 2008-11-24 21:50:20 +00:00
Daniel Marjamäki bc267bbca5 TOKEN: Refactoring the 'str' member variable 2008-11-24 19:38:08 +00:00
Daniel Marjamäki 31c3532b55 Visual C++: Updated the FileLister (applied patch FileLister_ReworkRecursiveAddFiles submitted by kush_eplus) 2008-11-24 14:01:33 +00:00
Reijo Tomperi c022057c70 bug fix, didn't compile on Linux (3 utf characters on top of file again) 2008-11-24 08:59:10 +00:00
Daniel Marjamäki a521e4274f Visual C++: Updated the project file
* removed 'commoncheck'
 * added 'checkfunctionusage' 
 * added 'token'
2008-11-24 07:47:13 +00:00
Daniel Marjamäki e0027bef66 Borland C++: Minor updates so cppcheck compiles with Borland C++ 2008-11-24 07:35:03 +00:00
Reijo Tomperi 895b1d5561 Refactoring: Started making CppCheck class more generally usable (e.g. as a part of IDE). 2008-11-23 22:01:09 +00:00
Reijo Tomperi beee37c86b Refactoring: Updated makefile to be more up-to-date after big refactoring changes. 2008-11-23 20:12:43 +00:00
Daniel Marjamäki 5330524f48 Function usage: Better handling of '!foo()' 2008-11-23 17:28:26 +00:00
Reijo Tomperi 578027f05f Project files: Changed both targets to same file, using custom makefile 2008-11-23 15:29:12 +00:00
Daniel Marjamäki a26d44daf5 Function usage: Minor update in the pattern for using function 2008-11-23 14:36:20 +00:00
Daniel Marjamäki c6264022f9 Function Usage: Handling '.. else foo()' 2008-11-23 14:26:47 +00:00
Daniel Marjamäki 954371e3f8 Function usage: Handling callbacks better: 'void (*f)() = cond ? foo : NULL' 2008-11-23 14:21:37 +00:00
Daniel Marjamäki bb46a0cc42 Function usage: handling 'return foo();' better 2008-11-23 14:17:03 +00:00
Daniel Marjamäki 2db9c34d24 codeblocks: Added project file for cppcheck 2008-11-23 14:10:55 +00:00
Reijo Tomperi a6ad4045d4 Refactoring: IsName() and IsNumber() are no longer static and they don't take a parameter. 2008-11-23 12:21:40 +00:00
Daniel Marjamäki 43fc511f55 Added test file for function usage 2008-11-23 11:44:25 +00:00
Daniel Marjamäki ce14eb6590 Function Usage: Make sure it's detected that func is used in code such as 'if ( func() ) { ..' 2008-11-23 11:40:41 +00:00
Reijo Tomperi 29a1468523 Refactoring: Renamed some member variables: variable -> _variable 2008-11-23 11:08:07 +00:00
Reijo Tomperi 0b2e7a0ef3 Refactoring: at() changed to tokAt() and getstr() changed to strAt() 2008-11-23 10:09:16 +00:00
Daniel Marjamäki 79854620c7 Function usage: Fixes in the check 2008-11-23 07:33:14 +00:00
Daniel Marjamäki 0c9784fc0c Refactoring: The Tokenizer::FillFunctionList has no use of its parameter. Enabled the CheckFunctionUsage 2008-11-23 06:21:44 +00:00
Reijo Tomperi b8c7543149 Bug fix: Didn't compile on Debian, missing #include 2008-11-22 22:54:56 +00:00
Reijo Tomperi 3ba83b6620 Refactoring: token.* files added, Some functions from Tokenizer moved under TOKEN. Renamed few functions, like gettok() -> at(), combineWithNext() and deleteNext() are also new
names for old functions. Usage was gettok( tok, 2 ), but now it is tok->at( 2 ).
2008-11-22 22:49:14 +00:00
Daniel Marjamäki 2a85d68803 Memory leak: Added checking for 'kcalloc' 2008-11-22 21:10:12 +00:00