Commit Graph

8953 Commits

Author SHA1 Message Date
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
Reijo Tomperi f669a5a45d Minor bug fix, CppCheck::Check didn't reset error list after all checking was done. 2008-12-11 20:28:35 +00:00
Daniel Marjamäki 2b7338450c preprocessing : Skip special characters. Refactoring. 2008-12-11 18:09:20 +00:00
Daniel Marjamäki bcf393292e todo : deleted this deprecated file 2008-12-11 18:08:14 +00:00
Daniel Marjamäki aee10ecc38 readme : fixed the readme file 2008-12-11 18:07:23 +00:00
Daniel Marjamäki b72565bdf6 memory leak : Minor fixes to make the unit tests work 2008-12-11 07:10:57 +00:00
Daniel Marjamäki a66a91c22a code cleanups 2008-12-10 19:34:04 +00:00
Daniel Marjamäki 8bd4c4278a Memory leaks : Minor updates and refactoring 2008-12-10 19:15:41 +00:00
Daniel Marjamäki 41aa2f8810 Borland C++ : minor update to make the code compilable with borland c++ 2008-12-10 19:14:38 +00:00
Daniel Marjamäki ddd20a2977 Virtual destructor : minor fix to avoid false positives when more modifiers are used 2008-12-10 19:13:40 +00:00
Daniel Marjamäki 02f3196b24 FileLister: Borland can use windows api for file searching 2008-12-10 19:11:48 +00:00
Reijo Tomperi cf2262aaf0 Project file updated (testtoken.cpp was missing), added TOKEN::printOut() function to help with debugging. 2008-12-09 22:03:05 +00:00
Reijo Tomperi 237dc98ea5 Added test file for TOKEN class 2008-12-09 18:13:38 +00:00
Reijo Tomperi 2ef955eb65 Refactoring: Moved token creation and token deletion into TOKEN class. Added previous() (not tested yet) 2008-12-09 17:31:04 +00:00
Daniel Marjamäki a4a55553f8 cppcheck : Set variable ids 2008-12-09 07:27:39 +00:00
Daniel Marjamäki 68bcdb103c testmemleak : added a unit test that ensures that the variable id handling works correctly. But it's currently not working, and therefore it's commented out 2008-12-09 07:27:11 +00:00
Daniel Marjamäki f839b11c11 token : Updated the "Match" function so it can check the variable id 2008-12-09 07:25:44 +00:00
Daniel Marjamäki 20e28bb687 Variable usage : 2 more fixes 2008-12-09 07:25:00 +00:00
Nicolas Le Cam aaabacfe87 Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
Nicolas Le Cam eb80c9786f Revert revisions 627 and 628 2008-12-08 23:41:34 +00:00
Nicolas Le Cam e8d2c7cfb3 Formatting: uniformize end of lines (part 2) 2008-12-08 23:10:13 +00:00
Nicolas Le Cam 625b77ec33 Formatting: uniformize end of lines. 2008-12-08 23:06:19 +00:00
Nicolas Le Cam 19ef4f8b15 TOKEN::Match minor optimization 2008-12-08 22:49:11 +00:00
Reijo Tomperi 440203bd5c Refactoring: Rest of the public variables in TOKEN moved to private area. 2008-12-08 22:02:37 +00:00
Reijo Tomperi 51024235a3 Refactoring: TOKEN::next renamed to _next, getter and setter functions for it added next() and next(TOKEN*). 2008-12-08 21:49:05 +00:00
Daniel Marjamäki 5bb81294c0 Variable usage : A few small fixes to reduce false positives 2008-12-08 18:44:17 +00:00
Reijo Tomperi 25847fdec4 Refactoring: TOKEN::varId was moved from public to private 2008-12-08 17:45:55 +00:00
Daniel Marjamäki 3619552e38 Variable Id : First simple implementation 2008-12-08 17:28:44 +00:00
Daniel Marjamäki 29afcaebcd testing : Minor fix for ASSERT_EQUALS macro 2008-12-08 17:27:46 +00:00
Nicolas Le Cam 8c8435feb8 Fix two warnings 2008-12-08 14:20:20 +00:00
Nicolas Le Cam 1d4816dbab Virtual Destructor : Minor optimization 2008-12-08 14:08:36 +00:00
Daniel Marjamäki b3d7ef73a6 Borland C++ : Updated project files cppcheck and testrunner 2008-12-08 06:45:52 +00:00
Nicolas Le Cam 966cb79bde Fix compilation 2008-12-07 20:45:13 +00:00
Daniel Marjamäki ead97b5616 function variable usage : various fixes. but probably more fixes are needed. 2008-12-07 20:29:39 +00:00
Daniel Marjamäki b1ee3c5d31 function variable usage : Added a simple check 2008-12-07 19:17:36 +00:00
Reijo Tomperi b2e55216ab Fixed bug in TOKEN::multiCompare. "abc" and "a" were matched. 2008-12-07 19:06:01 +00:00
Nicolas Le Cam 92a651acd3 Minor optimization. Reuse findmatch result instead of recalling it 2008-12-07 18:46:23 +00:00
Daniel Marjamäki 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
2008-12-07 17:28:26 +00:00
Nicolas Le Cam a6b4cdb526 Constructors: Fix checking of 'operator=' with test 2008-12-07 16:55:07 +00:00
Daniel Marjamäki acd54e24b6 cppcheck.cbp : Added testclass.cpp 2008-12-07 12:04:16 +00:00
Daniel Marjamäki 0b35581d44 Virtual destructors : Don't check base classes when inheritance is
non-public
2008-12-07 10:13:51 +00:00
Daniel Marjamäki 5ea2844b85 Constructors : Refactoring + Added checking of 'operator=' 2008-12-07 08:49:35 +00:00
Daniel Marjamäki c907589deb Fixed a bug in Tokenizer::simplifyTokenList. The keyword operator is
never used in a variable declaration
2008-12-07 08:47:56 +00:00
Daniel Marjamäki ea57f2b820 Memory leaks : Handle assignments better - bug 2395524 2008-12-07 07:32:02 +00:00
Daniel Marjamäki f01cb905f7 Check constructors: Minor optimisation 2008-12-07 07:02:00 +00:00