Commit Graph

  • 29afcaebcd testing : Minor fix for ASSERT_EQUALS macro Daniel Marjamäki 2008-12-08 17:27:46 +0000
  • 8c8435feb8 Fix two warnings Nicolas Le Cam 2008-12-08 14:20:20 +0000
  • 1d4816dbab Virtual Destructor : Minor optimization Nicolas Le Cam 2008-12-08 14:08:36 +0000
  • b3d7ef73a6 Borland C++ : Updated project files cppcheck and testrunner Daniel Marjamäki 2008-12-08 06:45:52 +0000
  • 966cb79bde Fix compilation Nicolas Le Cam 2008-12-07 20:45:13 +0000
  • ead97b5616 function variable usage : various fixes. but probably more fixes are needed. Daniel Marjamäki 2008-12-07 20:29:39 +0000
  • b1ee3c5d31 function variable usage : Added a simple check Daniel Marjamäki 2008-12-07 19:17:36 +0000
  • b2e55216ab Fixed bug in TOKEN::multiCompare. "abc" and "a" were matched. Reijo Tomperi 2008-12-07 19:06:01 +0000
  • 92a651acd3 Minor optimization. Reuse findmatch result instead of recalling it Nicolas Le Cam 2008-12-07 18:46:23 +0000
  • bdea6bd152 tokenizer : The token "a" shouldn't match the pattern "abc|def", added assertion to a test but it's currently commented because it fails Daniel Marjamäki 2008-12-07 17:28:26 +0000
  • a6b4cdb526 Constructors: Fix checking of 'operator=' with test Nicolas Le Cam 2008-12-07 16:55:07 +0000
  • acd54e24b6 cppcheck.cbp : Added testclass.cpp Daniel Marjamäki 2008-12-07 12:04:16 +0000
  • 0b35581d44 Virtual destructors : Don't check base classes when inheritance is non-public Daniel Marjamäki 2008-12-07 10:13:51 +0000
  • 5ea2844b85 Constructors : Refactoring + Added checking of 'operator=' Daniel Marjamäki 2008-12-07 08:49:35 +0000
  • c907589deb Fixed a bug in Tokenizer::simplifyTokenList. The keyword operator is never used in a variable declaration Daniel Marjamäki 2008-12-07 08:47:56 +0000
  • ea57f2b820 Memory leaks : Handle assignments better - bug 2395524 Daniel Marjamäki 2008-12-07 07:32:02 +0000
  • f01cb905f7 Check constructors: Minor optimisation Daniel Marjamäki 2008-12-07 07:02:00 +0000
  • f8087b1f3f Constructors : Fixed so the test that kush_eplus added works Daniel Marjamäki 2008-12-07 06:58:23 +0000
  • f63f223976 Refactoring. Use "str" instead of "aaaa0" Daniel Marjamäki 2008-12-07 06:44:36 +0000
  • 774ca2c350 Refactoring: use "findmatch" instead of "findtoken" Daniel Marjamäki 2008-12-07 06:37:50 +0000
  • 057d6f1f18 Virtual destructors : Handle inheritance where "private|protected|public" is not defined Daniel Marjamäki 2008-12-07 06:31:54 +0000
  • 5a80bcc352 Add a test case that currently fail Nicolas Le Cam 2008-12-07 01:47:24 +0000
  • d77956f63f Fix bug when calling cppcheck without --recursive flag Nicolas Le Cam 2008-12-07 00:56:24 +0000
  • 3962bb7ae0 Virtual destructors : Minor fix to a test to handle a private inheritance Daniel Marjamäki 2008-12-06 19:57:33 +0000
  • b560215bc6 Virtual Destructors : pattern for declaring a derived class... "class %var% : public|protected|private %var% .." Daniel Marjamäki 2008-12-06 19:56:33 +0000
  • 984cd47aac virtual destructor : iterate through base classes for a derived class to check that the destructor in each base class i virtual Daniel Marjamäki 2008-12-06 19:26:13 +0000
  • 8a06b71949 Uninitialized member variables : Don't give false positives for private constructors Daniel Marjamäki 2008-12-06 19:14:04 +0000
  • 1a5d694834 testclass : Added a new unit testing file Daniel Marjamäki 2008-12-06 18:31:26 +0000
  • b71adda8b5 Minor optimisation. Don't do redundant checking Daniel Marjamäki 2008-12-06 17:54:27 +0000
  • 93c04efc95 tokenize: "~Base" should generate two tokens. "~" and "Base" Daniel Marjamäki 2008-12-06 17:53:30 +0000
  • 4493400c49 Class checking : Check that base class destructors are virtual. Experimental Daniel Marjamäki 2008-12-06 17:34:34 +0000
  • bcccb4bc91 CheckClass : Refactoring - Removed include and moved struct VAR into the class Daniel Marjamäki 2008-12-06 17:00:14 +0000
  • d3f68a9a5d Unreachable code : minor bug fixes Daniel Marjamäki 2008-12-06 16:54:45 +0000
  • 4ef7839d6a Unreachable code : Fixed false positives for label Daniel Marjamäki 2008-12-06 16:34:44 +0000
  • 4d070f04e5 Added check that detects unreachable code below a 'return' statement Daniel Marjamäki 2008-12-06 16:25:24 +0000
  • 7c32b7b2bb Memory leaks: Better handling of "realloc". Fixing bug [ 2395262 ] Daniel Marjamäki 2008-12-06 13:33:22 +0000
  • 202c613e70 TODO: Added a todo for refactoring TOKEN::Match Daniel Marjamäki 2008-12-06 13:21:33 +0000
  • 7196b8a028 Tokenizer: Remove "volatile" keyword to simplify checking Daniel Marjamäki 2008-12-06 13:10:38 +0000
  • 2cc7dbda67 Fixed so that the expected and actual values in asserts are not mixed Daniel Marjamäki 2008-12-06 12:57:06 +0000
  • 4c92c8e6e7 testtokenize: Added TestTokenize::match1 that makes sure the old matching of "|" and "||" still works Daniel Marjamäki 2008-12-06 12:54:40 +0000
  • d307b999e0 CheckMemoryLeak.cpp, g_renew and g_try_renew also removed Reijo Tomperi 2008-12-06 12:45:54 +0000
  • 0ea34d4705 Memory leak: False positive with g_realloc(). Removed g_realloc() and g_try_realloc() for now. See feature request [ 2395262 ] Check leaks with realloc, g_realloc and g_try_realloc() Reijo Tomperi 2008-12-06 11:41:08 +0000
  • 2f27bf09b8 cppcheck and executor, fixed compiling error Reijo Tomperi 2008-12-06 09:27:28 +0000
  • 6d7a0e65b3 refactoring: Increased constness of function parameters Daniel Marjamäki 2008-12-06 07:40:13 +0000
  • 345a7f2c9b Preprocessor: Fixed bug, read() didn't handle correctly string constants like this: "\"" Reijo Tomperi 2008-12-05 22:18:13 +0000
  • a669d020cf Token: Fixed bug in match function, simplified CheckBufferOverrun code Reijo Tomperi 2008-12-05 20:37:05 +0000
  • 48dd250796 Memory leak: refactoring - changed "aaaa" to "str" Daniel Marjamäki 2008-12-05 19:37:11 +0000
  • f7a846e31e tokenize: Replace a complicated condition with a "Match" Daniel Marjamäki 2008-12-05 19:17:25 +0000
  • b029163cdc tokenize: Replace "aaaa" and "strcmp" with "str" and "Match" Daniel Marjamäki 2008-12-05 19:04:41 +0000
  • e385bcd83b CheckHeaders: Refactoring so str and Match is used instead of aaaa and strcmp etc Daniel Marjamäki 2008-12-05 18:46:05 +0000
  • 62e363daa5 Memory leak: Replaced a few "strcmp" with "==" Daniel Marjamäki 2008-12-05 18:39:23 +0000
  • 963760b59f Buffer overrun: Minor refactoring. Use the Match function better. Daniel Marjamäki 2008-12-05 18:35:36 +0000
  • 09f7c07a4d tokenize: Minor refactorings Daniel Marjamäki 2008-12-05 18:25:08 +0000
  • 89663bef0a CheckOther: Fixed a compiler warning Daniel Marjamäki 2008-12-05 18:17:51 +0000
  • a4d4305919 Bug fix: Minor bug in previous commit, test added to catch that bug also. Reijo Tomperi 2008-12-04 21:52:40 +0000
  • c958482196 TOKEN: Match() function improved, %any% and const|volatile kind of patterns are now accepted. Simplified comparing on tokenize.cpp. Reijo Tomperi 2008-12-04 21:48:15 +0000
  • 3820a26e1c Tokenizer: Simplify numeric comparisons Daniel Marjamäki 2008-12-04 19:32:26 +0000
  • c6ed868009 testsuite: show diffing strings better when they are not equal Daniel Marjamäki 2008-12-04 19:31:30 +0000
  • e9a533fb32 TestTokenize: Use TOKEN::str() instead of TOKEN::aaaa() where possible Daniel Marjamäki 2008-12-04 07:35:48 +0000
  • 5ce5c7ab63 Preprocessor: Minor refactoring and improved testing Daniel Marjamäki 2008-12-04 07:34:31 +0000
  • 5eb653911e Tokenizer: Fixed bug, const and volatile functions were not recogniced by fillFunctionList() Reijo Tomperi 2008-12-03 20:22:48 +0000
  • d3a2a32a58 preprocessor: fixed handling of tabs and spaces Daniel Marjamäki 2008-12-03 18:35:58 +0000
  • 17cb374ce2 Memory leaks: Various improvements in "simplifycode" Daniel Marjamäki 2008-12-02 18:00:58 +0000
  • d5506618b6 Memory leak: Further improvements of "simplifycode" Daniel Marjamäki 2008-12-02 17:22:01 +0000
  • 8578df698f Memory leak: Changed a comment Daniel Marjamäki 2008-12-02 16:58:43 +0000
  • d5d31cc632 updated the borland project file Daniel Marjamäki 2008-12-02 14:38:32 +0000
  • 9b56be86c6 Minor improvement to code comments. Reijo Tomperi 2008-12-01 22:33:21 +0000
  • b886702d0d Warning If minor optimizations Nicolas Le Cam 2008-12-01 20:02:39 +0000
  • 19308e0ed6 Patch: [ 2371330 ] Removed CheckOther::WarningDangerousFunctions() declaration Reijo Tomperi 2008-12-01 19:41:37 +0000
  • a8bf4d7e77 Memory leak: Refactoring and improvements of simplifycode etc Daniel Marjamäki 2008-12-01 18:52:40 +0000
  • bbd21613f7 testing: minor refactoring so better error messages are shown Daniel Marjamäki 2008-12-01 18:52:03 +0000
  • e968b42c38 Memory leaks: When "--debug" is given the checking will be different to highlight problems in "getcode" and "simplifycode" Daniel Marjamäki 2008-12-01 07:50:36 +0000
  • 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 Daniel Marjamäki 2008-11-30 19:32:36 +0000
  • a7ece61734 Memory leak: The "do" must be handled differently. Made a first fix for it Daniel Marjamäki 2008-11-30 19:00:07 +0000
  • 5326a35951 Verbose: Added line change to help text printing and updated man page Reijo Tomperi 2008-11-30 10:38:58 +0000
  • a07c1745c3 Verbose error message output through '--verbose' Daniel Marjamäki 2008-11-30 09:08:07 +0000
  • f646684159 Memory leak: Fixed the test 'CheckMemoryLeak::func8' Daniel Marjamäki 2008-11-29 17:34:47 +0000
  • 8c07a13cb6 Test Memory leak: Added a test case, currently a false positive is generated Daniel Marjamäki 2008-11-29 16:42:14 +0000
  • 87794cc66c cppcheck: Write version number etc Daniel Marjamäki 2008-11-29 13:58:28 +0000
  • 95c7e1a7d3 Memory leak: Moved the class member checking to the "--all" Daniel Marjamäki 2008-11-28 17:16:28 +0000
  • 1f189f655d Array index : No recursive checking unless the "--all" has been given Daniel Marjamäki 2008-11-27 20:29:29 +0000
  • df452a3b0f Recursive file listing, .cxx added to file list Reijo Tomperi 2008-11-27 19:17:15 +0000
  • 101e7b96fc Removed debug output Reijo Tomperi 2008-11-27 18:57:07 +0000
  • 6fcbbf21ee Memory leaks: Reverted the sensitive checking in r536. And improved the simplifycode function. Daniel Marjamäki 2008-11-27 07:27:50 +0000
  • 997f4e6165 Memory leaks: Made the checking a lot more sensitive Daniel Marjamäki 2008-11-26 18:13:36 +0000
  • 2e22c7cb1d CheckMemoryLeak: Refactoring. Use TOKEN::isStandardType instead of rewriting its functionality Daniel Marjamäki 2008-11-26 07:23:54 +0000
  • b179083788 token: refactoring the 'isStandardType' a little Daniel Marjamäki 2008-11-26 07:22:34 +0000
  • c95fee7266 testmemleak: Added 'func7' test case. Not working yet Daniel Marjamäki 2008-11-26 07:17:50 +0000
  • 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. Reijo Tomperi 2008-11-25 20:56:11 +0000
  • 4f4a2391e0 Refactoring: Removed _settings member from the Tokenizer Daniel Marjamäki 2008-11-25 18:44:35 +0000
  • 8845e8bc89 Refactoring: Tokenizer - renaming functions, moved the 'tokenizeCode' to the private section Daniel Marjamäki 2008-11-25 18:34:51 +0000
  • 0d6bd9b7fd TODO: added a todo to add an error message. and removed an "invalid" todo Daniel Marjamäki 2008-11-25 18:15:32 +0000
  • 4df96f299f Function usage: Report which file the missing function is implemented in Daniel Marjamäki 2008-11-25 18:11:02 +0000
  • bf0bf3268d Refactoring: Added missing license texts and some comments Reijo Tomperi 2008-11-24 22:10:48 +0000
  • b2f155c82c Refactoring: Updated project file for Code::Blocks Reijo Tomperi 2008-11-24 21:51:02 +0000
  • ad5fbe5dc6 Refactoring: CppCheckExecutor class added Reijo Tomperi 2008-11-24 21:50:20 +0000
  • bc267bbca5 TOKEN: Refactoring the 'str' member variable Daniel Marjamäki 2008-11-24 19:38:08 +0000
  • 31c3532b55 Visual C++: Updated the FileLister (applied patch FileLister_ReworkRecursiveAddFiles submitted by kush_eplus) Daniel Marjamäki 2008-11-24 14:01:33 +0000
  • c022057c70 bug fix, didn't compile on Linux (3 utf characters on top of file again) Reijo Tomperi 2008-11-24 08:59:10 +0000
  • a521e4274f Visual C++: Updated the project file * removed 'commoncheck' * added 'checkfunctionusage' * added 'token' Daniel Marjamäki 2008-11-24 07:47:13 +0000