Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16196 lines (10136 sloc) 580.248 kB
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, createrelease, lib/cppcheck.cpp,
win_installer/productInfo.wxi: Updated version to 1.40
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* test/testsimplifytokens.cpp: Added TODO test for better pointer
aliasing with memset
2010-01-17 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1275
(Cppcheck hangs when analysing the code 'typedef struct { } A, *B,
**C;')
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* : commit 97eb380bba8deeb480d035e606157d610db98379 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jan 17 01:21:45 2010 +0200
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Update package version to
300 to use latest installer version.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs, win_installer/productInfo.wxi:
Installer: Add variable for Qt dll location.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wixproj, win_installer/cppcheck.wxs,
win_installer/productInfo.wxi: Install MS CRT runtimes. Add VS2008 CRT merge module to the installer. This is the correct
way to install MS runtimes.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cli.wxs, win_installer/cppcheck.wixproj,
win_installer/cppcheck.wxs, win_installer/productInfo.wxi:
Installer: Add project file. Project file allows building installer with msbuild. Add config
variables for binaries directories to avoid copying binaries to
installer directory.
2010-01-16 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1272 (links
in typedef not handled correctly)
2010-01-16 Daniel Marjamäki <danielm77@spray.se>
* : commit 0a8ca1f160bf635f63e4e7d936a65fac995af779 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Sat Jan 16 13:56:57 2010
+0100
2010-01-16 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Refactoring the handling of typedefs
2010-01-16 Daniel Marjamäki <danielm77@spray.se>
* cppcheck.cbproj, lib/checkclass.cpp, lib/checkclass.h: Revert
"minor tweak in Borland C++ project file" This reverts commit ad06ee4f71698fcd67d2d42d27c8117ff1ecc234.
2010-01-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, lib/checkclass.cpp, lib/checkclass.h: minor tweak
in Borland C++ project file
2010-01-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix part of #1262
(cppcheck false positives: 'Possible null pointer dereference'
http://sourceforge.net/apps/trac/cppcheck/ticket/1262
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp: refactoring
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/filelister.cpp, lib/preprocessor.cpp: astyle formatting
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/threadexecutor.cpp, cli/threadexecutor.h: lanurmi: Fixed
threads handling when using Sun compiler
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/filelister.cpp, lib/filelister.h, lib/preprocessor.cpp:
lanurmi: Fixed #1269 (Changes required for compiling with Sun's
compiler)
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1264 (False
positive: Resource leak with if-else in while)
2010-01-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1268 (Null pointer
dereference false positive)
2010-01-14 Henrik Nilsson <henrik.nilsson@proceranetworks.com>
* htmlreport/cppcheck-htmlreport: cppcheck-htmlreport now takes a
parameter for source code encoding to support non ascii characters. Also present a nicer error message if highlighting fail for a file.
2010-01-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h: wrote comments about the
preprocessor
2010-01-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1265 ((error)
Uninitialized variable on macro expansion)
2010-01-13 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/cppcheck-htmlreport: cppcheck-htmlreport now takes a
--title parameter that will be displayed on top of every page.
2010-01-13 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/cppcheck-htmlreport: Added !DOCTYPE declaration for
html generated by the cppcheck-htmlreport tool.
2010-01-13 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: fixed
typedef issues
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Uninitialized variables: disable subfunction
analysis if multiple threads are used
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp: CheckMemoryLeaks: Added 'strlen' to white
list
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Fixed #1258 ('fscanf' missing in
call_func_white_list)
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1259 (false
postive: Member variable 'A::b' is not assigned a value in
'A::operator=')
2010-01-12 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/cppcheck-htmlreport: cppcheck-htmlreport now annotates
the highlighted source code with the cppcheck error message.
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Tokenizer: some cleanup of std::
2010-01-12 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/cppcheck-htmlreport: Fixed some markup errors in
generated html from the cppcheck-htmlreport script.
2010-01-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtoken.cpp: Get rid of casting in test file.
http://sourceforge.net/apps/trac/cppcheck/ticket/1242
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1070 (Improve scope
error message)
2010-01-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1257
(potential leaks not reported becauseof 'continue' in loop)
2010-01-12 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1252
(Internal error in Cppcheck while parsing struct)
2010-01-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1250
(tokenize typedef of union)
2010-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1174 (improve check: Unintialized variable not detected in
subfunction)
2010-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/tokenize.cpp,
test/testbufferoverrun.cpp: BufferOverrun: negative index is out of
bounds
2010-01-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Uninitialized variables:
fixed false positives when using pointer aliasing
2010-01-11 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1248
(tokenize typedef of array)
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: ExecutionPath: better
handling of for/while/do/switch, it doesn't bail out everything
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1225 (false
negative :: uninitialized variable not detected when using enums)
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: fixed unlogged
errors from the tokenizer and also some errors reported by valgrind
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtoken.cpp: ivoire: 64-bit portability fix
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
better handling of loops and switch
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1220 (False
memory leak when using while)
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
Better handling of switch
2010-01-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1218 (Improve
check: incrementing uninitialized variable i++)
2010-01-10 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1244
(tokenize typedef of unnamed struct)
2010-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1189 (false
negative: using uninitialized variable i 'a[i] = 0;')
2010-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1231
(Preprocessor: Fail to evaluate '#if ! defined _ABCD_')
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Add "all" target for build.bat.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Make release the default target in build.bat.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Allow building both debug and release targets using
build.bat.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Improve build.bat to support building from QT prompt.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* build.bat: Fix build.bat after directory renames.
2010-01-09 Kimmo Varis <kimmov@gmail.com>
* win_installer/build2.bat: Update build2.bat to point to latest Qt
SDK.
2010-01-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Borland C++: Fixed compiler error
2010-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: fixed segmentation
fault
2010-01-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1237
(Uninitialized variable false positive for return-value pattern in
pan source code.)
2010-01-08 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1233 (false
positive: operator = should check for assignment to self)
2010-01-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1235
(CheckMemoryLeakInFunction: Wrong handling of 'fcloseall')
2010-01-07 Kimmo Varis <kimmov@gmail.com>
* win_installer/build1.bat: Update batch file for latest Qt SDK
location.
2010-01-07 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1232
(segmentation fault of cppcheck when scanning templates)
2010-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: After suggestion from Jim Vollner, remove dead
pointers from the used list
2010-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/token.cpp, lib/tokenize.cpp: uncomment validation of
Tokenizer::_tokensBack
2010-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkmemoryleak.cpp,
lib/token.cpp, lib/token.h, lib/tokenize.cpp,
test/testbufferoverrun.cpp, test/testsimplifytokens.cpp,
test/testtoken.cpp: Ticket #1228 : Handle tokensBack in the Token
class. When adding&removing tokens the Token class can make sure
that this pointer is updated accordingly. It is very important that
the tokensBack has the same scope as the token list, otherwise there
will be a dead pointer problem.
2010-01-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1221 ([False
positive] Member variable not initialized with operator[] gives
wrong result)
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* CMake/xmlto.cmake, CMakeLists.txt, man/CMakeLists.txt: CMake -
build Docbook manual in Linux. Add XMLTO macro to build Docbook manual using xmlto program. xmlto
is not available in Windows so limit building to Linux. Adds new target "html" to build which is not run automatically.
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Fixed #1229 (GUI: project file not read when
checking a file)
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Fixed #1226 (GUI: project include file
relative path search problem) Thanks for Robert Reif for finding and reporting problem in previous
commit.
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* : commit 5bb3c5898bf87a5aed5e3f775daf7c70fe9fe20c Author: Kimmo
Varis <kimmov@gmail.com> Date: Wed Jan 6 01:40:26 2010 +0200
2010-01-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: Added more validating code to tokenizer.
Currently commented out.
2010-01-06 Kimmo Varis <kimmov@gmail.com>
* gui/gui.cppcheck: Add lib directory to gui "project file" include.
2010-01-05 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1224 (segmentation
fault of cppcheck)
2010-01-05 Kimmo Varis <kimmov@gmail.com>
* test/CMakeLists.txt: CMake - Include test project's header file to
VS IDE project.
2010-01-05 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt: CMake - Include test project when creating VS IDE
project.
2010-01-04 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1215 (are enums processed properly?)
2010-01-03 Kimmo Varis <kimmov@gmail.com>
* cli/CMakeLists.txt: CMake - add header files to CLI project and VS
project.
2010-01-03 Kimmo Varis <kimmov@gmail.com>
* lib/CMakeLists.txt: CMake - add header files to lib project (and
to VS project).
2010-01-03 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: CMake - Create folders for GUI files in Visual
Studio IDE.
2010-01-03 Kimmo Varis <kimmov@gmail.com>
* : commit b483221f4534938ef1849d6eefa5b28c4924c952 Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jan 3 19:50:04 2010 +0200
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1023 (improve
check: Unintialized variable not detected when using +=)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: refactoring
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: added test case for #1193 (false
negative: array out of bounds in loop when there is calculation)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1216 (false
positive: uninitialized variable when using exit|abort)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.cpp, test/testother.cpp:
Fixed #440 (NULL referencing not detected)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/mainwindow.cpp: Fixed #1187 (GUI: fix project file loading)
2010-01-03 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1184 (improve test:
operator =)
2010-01-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1214 (false
positive: uninitialized variable 'bool fixed =
std::ios_base::fixed;')
2010-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1203
(Preprocessor: Doesn't handle macros usage that contain ';')
2010-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1209 (False
positive: uninitialized variable c when it is initialized with
'ab(sizeof(xyz), &c)')
2010-01-02 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, lib/tokenize.cpp,
lib/tokenize.h, test/testconstructors.cpp, test/testtokenize.cpp:
Fixed #1211 (add struct support for constructor checks)
2010-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1202 (false
positive: uninitialized variable when using 'do')
2010-01-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1204
(Tokenizer::findClassFunction broken)
2010-01-02 Slava Semushin <php-coder@altlinux.ru>
* lib/checkautovariables.cpp, test/testautovariables.cpp: Fixed
#1013 (autovariables: detect when assigning parameter **par) http://sourceforge.net/apps/trac/cppcheck/ticket/1013
2010-01-02 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1197
(Segmentation fault when we define function which was already
defined by preprocessor) http://sourceforge.net/apps/trac/cppcheck/ticket/1197
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1178 (1.39:
Internal error)
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1200 (false
positive 'uninitialized variable' when using throw)
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: refactoring the fix for #1191
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1191 (false
positive: uninitialized variable)
2010-01-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1196 (Hang:
Cppcheck hang for the file linux-2.6/drivers/crypto/hifn_795x.c)
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1188 (false
negative: dereferencing p, which is a null pointer 'int y = 5 + *p')
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: fixed a hang in
Tokenizer::simplifyFunctionParameters
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testclass.cpp: Self assignment in class: added TODO test
cases to reduce false positives
2009-12-31 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1184 (improve test: operator =)
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: fixed cppcheck warning
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp: Fixed #1181 (Preprocessor fails while
expanding macros)
2009-12-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1183 (False
positive: uninitialized variable p 'd = bar(sizeof(*p));')
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1182 (False
positive: uninitialized variable 'int *pa = &a;')
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #1173 (Improve check: memory leak not
detected in constructor)
2009-12-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1167 (###
Internal error in Cppcheck. Please report it.)
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: cleanup
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1087 (uninitialized
data not detected 'char z = *str')
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/tokenize.cpp, test/testother.cpp,
test/testtokenize.cpp: Fixed #1105 (improve check: uninitialized
variable not detected for 'a = a')
2009-12-30 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1176 (void operator
= check doesn't support struct)
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#1041 (passing a nullpointer to a reference)
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1067 (Tokenizer:
K&R style function that returns function pointer)
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1177 (False
positive: pointer is not dereferenced 'sizeof(*p)')
2009-12-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1168 (false
positive: Uninitialized variable)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1166 (improve
check: using uninitialized pointer to create reference 'int
&r(*p);')
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testother.cpp: Robert Reif: Fixed #1163
(post increment test broken for complex template types)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1165
(Tokenizer: wrong simplification of 'do { .. } while (0)' if the
body contains continue or break)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h:
ExecutionPath: Refactoring. Removed the bailOut variable
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, lib/executionpath.h, test/testother.cpp:
Fixed #1160 (Null pointer dereference vs. goto)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp: astyle formatting
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Robert Reif: Fixed #1164
(only first void operator = found)
2009-12-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Robert Reif: Fixed
#1162 (add support to tokenize typedefs with templates)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, lib/preprocessor.cpp: Valgrind: Fixed
memory leaks when running testrunner that was found by Valgrind
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.h, test/teststl.cpp: Robert Reif: Fixed #1158
((possible style) message with regular check)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Robert Reif: Fixed
#1161 (add tokenize support for typedefs with enum definitions)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Fixed #1159 (Valgrind gives error in
Tokenizer::simplifyWhile0)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1156 ([False
positive] Uninitialized variable - class member in constructor)
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp, lib/cppcheck.h, lib/preprocessor.cpp,
lib/settings.cpp, lib/settings.h: exitcode suppressions. Partly
fixes #1113
2009-12-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: Simplify 'while (0)' better
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed another issue with
#1154 (false positive: Data is allocated but not initialized)
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/mathlib.cpp, test/testmathlib.cpp: astyle formatting
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1154 (false
positive: Data is allocated but not initialized)
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1138 (improve
check: dereferencing uninitialized pointer)
2009-12-27 Martin Ettl <martin@martin.(none)>
* lib/mathlib.cpp, test/testmathlib.cpp: added further testcases to
testmathlib::convert(); now the conversion of
+-[hexnumber|octalnumber] works correctly
2009-12-27 Martin Ettl <martin@martin.(none)>
* test/testmathlib.cpp: added further testcases to
testmathlib::isint()
2009-12-27 Martin Ettl <martin@martin.(none)>
* lib/mathlib.cpp, test/testmathlib.cpp: extended testcases of
mathlib; fixed zero conversion: +0 and -0 is converted to 0
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #972 (New
check: return pointer of stack memory)
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Uninitialized variables: Refactoring and
commenting a little
2009-12-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1153 (False
positive: uninitialized data for reinterpret_cast)
2009-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Fixed #1120 (Test compile warnings with
Cygwin)
2009-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Uninitialized variables:
Fixed false positive for 'if (ptr)'
2009-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1151 (false
positive: Data is allocated but not initialized)
2009-12-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp: Fixed #1152 (Hang/Slow: ExecutionPath
handling hangs)
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h,
test/testother.cpp: ExecutionPath: Refactoring if-handling
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkother.cpp,
lib/executionpath.cpp, lib/executionpath.h: ExecutionPath:
Refactoring the interface
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h,
test/testother.cpp: Fixed #683 (wrong usage of strcmp)
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: htmlreport: added brief information in the
manual
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : Merge commit 'hn/master'
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: Robert Reif: fix cppcheck post increment warning
2009-12-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1141
(Tokenizer: Wrong simplification of calculations)
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: fixed unit testing
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Refactoring the
uninitialized variable / null pointer checks so they use a common
function to inspect function calls
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1147 (Improve
check: return uninitialized variable)
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed false positives
about uninitialized variables
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1137 (false
positive: uninitialized variable when using a class object)
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Robert Reif: Fixed #1139
(false negative: CheckOther::postIncrement() only finds at most one
problem)
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: Robert Reif: code cleanup
2009-12-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: Robert Reif: fix a style warning
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Borland C++: Fixed compiler error
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.h, lib/preprocessor.cpp: Visual Studio: Added
casts to silence compiler warnings
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h: Visual Studio:
Fixed unittests
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cbproj: C++ Builder: updated the testrunner project
file - added the lib/executionpath.cpp
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1133 (Uninitialized
array: strchr, strrchr, etc)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1128 (false
positive: Data is allocated but not initialized)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1112
(cppcheck fails because of accented characters in comments)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1127
(Segfault with template)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp, test/testother.cpp: astyle formatting
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Eric Sesterhenn: Fixed
#1130 (False positive uninitialized variable)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Eric Sesterhenn:
Fixed #1131 (descriptor leak false positive)
2009-12-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Robert Reif: Fixed
#1108 (Only trivial typedefs are tokenized properly)
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1096 (Non-obvious
error message: Overlapping data buffer)
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1095 (Non-obvious error
message: Dangerous usage of erase)
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp: preprocessor: removed unnecessary casts
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#1126 (False positive: upon exception there is memory leak (calling
unknown function))
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: ericsesterhenn: Fixed
#1091 (improve check: nullpointer dereference not detected)
2009-12-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkother.cpp,
lib/executionpath.cpp, lib/executionpath.h: Execution Path:
Refactoring
2009-12-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1124
(Invalid number of character ((). Can't process file.)
http://sourceforge.net/apps/trac/cppcheck/ticket/1124
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/executionpath.h, test/testmemleak.cpp:
Execution Path: some refactorings of the checking
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1119 (false
positve: uninitialized variable y when y is assigned in inner
expression 'x = (y = 10)')
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Fixed #1117 (segmentation fault of cppcheck)
2009-12-20 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, test/CMakeLists.txt: CMake - add 'make check'
-target. Tests are now excluded from normal targets to make compiling faster.
'make check' -target will compile and run tests.
2009-12-20 Kimmo Varis <kimmov@gmail.com>
* cli/CMakeLists.txt, gui/CMakeLists.txt, lib/CMakeLists.txt,
test/CMakeLists.txt: CMake - use more strict compiler flags.
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp: Preprocessor: Use 'unsigned char' instead of
'char'
2009-12-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp: code cleanup
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp: stl size: minor fix to prevent segmentation
fault when token is null
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.h: stl size: added documentation
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp,
test/testconstructors.cpp: Fixed #1093 (False positive: missing
constructor)
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkstl.cpp,
test/testbufferoverrun.cpp: astyle
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: CMake- fix building GUI from different
directory.
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt: CMake - disable building GUI for Cygwin.
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* : commit d51520d656459780d4addc67cd2e1e3dd830bb2b Author: Kimmo
Varis <kimmov@gmail.com> Date: Sat Dec 19 16:54:38 2009 +0200
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck-gui.rc: Fix Windows GUI resource file.
2009-12-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: robert reif:
Fixed #1118 (new check: use empty() instead of checking size()
against zero)
2009-12-19 Kimmo Varis <kimmov@gmail.com>
* cli/CMakeLists.txt, gui/CMakeLists.txt, test/CMakeLists.txt: CMake
- cleaner way to set additional library for Windows.
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1107 (False positive:
Dangerous usage of erase, when using std::list)
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/filelister.cpp: lanurmi: Fixed #1016 (Patch: Refactor #ifdefs
in filelister.cpp)
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cppcheck.vcproj, test/test.vcproj: Fixed #1101 (link error
with latest git in Visual Studio)
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj: C++ Builder: updated project file
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.h: added error info about the strncpy check
2009-12-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
test/testbufferoverrun.cpp: ericsesterhenn: Fixed #1106 (check if
buffer is zero terminated after a strncpy)
2009-12-17 Kimmo Varis <kimmov@gmail.com>
* cli/CMakeLists.txt, gui/CMakeLists.txt, test/CMakeLists.txt: CMake
- Fix Windows build.
2009-12-17 Kimmo Varis <kimmov@gmail.com>
* lib/CMakeLists.txt: CMake - add missing file in lib.
2009-12-17 Kimmo Varis <kimmov@gmail.com>
* lib/CMakeLists.txt: CMake - reorder files in lib's makefile.
2009-12-14 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: CMake - build GUI translation files.
2009-12-14 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, gui/CMakeLists.txt: CMake GUI build - fix adding
resources to GUI.
2009-12-14 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, gui/CMakeLists.txt: Build GUI using CMake. This is a start for building GUI with CMake. It works but it is a
bit ugly.
2009-12-14 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, test/CMakeLists.txt: Add testsuite to CMake build
files.
2009-12-12 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, cli/CMakeLists.txt, lib/CMakeLists.txt: Add simple
CMake build files to build lib and cli. Apparently not everybody wants to use QMake to build cppcheck. Which
is understandable if you only want to hack on/build lib and cli. Qt
and QMake are pretty lot to install for just that. So lets start using CMake. It is widely used and is "just" build
system and not programming framework. CMake is also easy to use for
building Qt software too so it can replace QMake. This first commit only builds lib and cli for Linux.
2009-12-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #1086
(segmentation fault of cppcheck '#if
define(A)+define(B)+define(C)!=1')
2009-12-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1103 (false
positive: uninitialized variable when using references)
2009-12-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: TestLocalLeaks:
going out of scope
2009-12-15 Henrik Nilsson <henrik.nilsson@proceranetworks.com>
* htmlreport/cppcheck-htmlreport: cppcheck doesn't always report a
filename for an error. Added some error checking so this tool doesn't crash.
2009-12-15 Henrik Nilsson <henrik.nilsson@proceranetworks.com>
* htmlreport/setup.py: Added a installation script for the
cppcheck-htmlreport utility. The script uses distutils to install the script into /usr/bin/. The
following will install the script: sudo ./setup.py install
2009-12-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Fix compiler error: cast from
'CheckLocalLeaks*' to 'int' loses precision
2009-12-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/lib.pri: fixed #1099 (GUI: unable to build gui from current
git-head)
2009-12-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1076
(Invalid number of character ({). Can't process file.)
http://sourceforge.net/apps/trac/cppcheck/ticket/1076
2009-12-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h,
test/testmemleak.cpp: Added TestLocalLeaks
2009-12-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: Test case for #1076 (Invalid number of
character ({). Can't process file.)
2009-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1082 (False
positive: Resource leak in loop which exits only after releasing
resource)
2009-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h, test/testcppcheck.cpp,
test/testpreprocessor.cpp, test/testsuite.cpp: Fixed #1084 (define
configuration lost)
2009-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1058
(Preprocessor: extracting configuration for '#if DEF == 1')
2009-12-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1072 (False
positive: class member initialization with '*p=0;')
2009-12-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* using_gcov.txt: removed deprecated file using_gcov.txt
2009-12-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1097 (Internal
error: When macro is not expanded 'ABC(for (i=0;i<10;i++) ..);')
2009-12-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#1074 (Exception safety: auto deallocated classes don't leak)
2009-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Fixed TODO_ASSERT_EQUALS
2009-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1080 (false
positive: member variable not initialized)
2009-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1075 (False
positive: uninitialized variable 'return bar(s);')
2009-12-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/tokenize.cpp, test/testpreprocessor.cpp:
Fixed #1060 (Preprocessor: wrong define handling)
2009-12-11 Henrik Nilsson <henrik.nilsson@proceranetworks.com>
* htmlreport/cppcheck-htmlreport: index.html page is now complete
with a list of files and all errors found. Other changes: * added a stylesheet and made the html design much better. * contains links directly to the line in the source file.
2009-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1061 (false
positve: uninitialized variable)
2009-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #1024
(Preprocessor: doesn't expand macro in macro)
2009-12-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Refactoring the
Preprocessor::expandMacros
2009-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fix
#1071 ((style) The function 'throw' is never used)
http://sourceforge.net/apps/trac/cppcheck/ticket/1071
2009-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: Apply patch from #1066 (Speed up cppcheck)
http://sourceforge.net/apps/trac/cppcheck/ticket/1066
2009-12-08 Henrik Nilsson <henrik.nilsson@tvaaker.se>
* htmlreport/README.txt, htmlreport/cppcheck-htmlreport: Added a
python script that takes the cppcheck output xml file and generates
a html report of it. The html report is complete with syntax
highlighted source code using the pygments module. This initial commit contains generation of html files but the actual
errors is missing from the html content and the index.html file.
2009-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkautovariables.cpp, test/testautovariables.cpp: Fix #1069
(Minor spelling mistake across cppcheck)
http://sourceforge.net/apps/trac/cppcheck/ticket/1069
2009-12-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: Added test case for else if
simplification
2009-12-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #1065 (Internal
error - incrementing single char in char array)
http://sourceforge.net/apps/trac/cppcheck/ticket/1065
2009-12-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#1063 (False positive: deallocated memory doesn't leak upon
exception)
2009-12-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix #1057 (Tokenizer:
negative numbers are not tokenized correctly in switch-case)
http://sourceforge.net/apps/trac/cppcheck/ticket/1057
2009-12-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp: small fix to previous commit
2009-12-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp: Minor refactoring for checkother.cpp
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: STL: fix iterator bug
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Visual C++: Suppress compiler warnings
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Reverted refactoring
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Fix so the unit tests work
again
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/cppcheck.cpp, lib/preprocessor.cpp,
lib/preprocessor.h, lib/settings.cpp, lib/settings.h: twistedwave:
Fixed #1055 (Support for inline suppressions)
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Preprocessor: Refactoring to make it
simpler
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp:
newcheck: added the 'newcheck' functionality. It's still in early
state so it needs refactoring
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: class
checking: It's a 'possible style' error if a private constructor is
not initializing a member variable
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: restored to debugging mode
2009-12-06 Martin Ettl <martin@martin.(none)>
* gui/resultstree.cpp, gui/resultstree.h: gui:added an right-click
option "copy message"
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Changelog: Updated Changelog
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: update the Makefile for the release
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cppcheck.rc, cli/main.cpp, createrelease, lib/cppcheck.cpp,
win_installer/cli.wxs: version 1.39
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: suppress 'internal error' message about failed
template instantiation in release mode
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1052
(Internal error for 'int vals[] = { 0x13, 1?0x01:0x00 };')
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Fixed #1051 (segmentation fault when there is
syntax error)
2009-12-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1050
(Internal error: In tokenizer for: 'do { sizeof 1; } while (0);')
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Fixed #1049 (Tokenizer: internal error for
'std::list<std::string[8]> w1, w2;')
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed
#1048 (False positive: exceptNew error with nothrow)
2009-12-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Minor fixes to the man page.
2009-12-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: CRLF -> LF fix
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1046 (tokenizer:
internal error for 'discard_block< (1 << 24), 10, 24 > u, v;')
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp, man/cppcheck.1.xml: updated help about --enable
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj, lib/settings.cpp: Borland C++: fixed compiler
error and updated the project file to include iterator debugging
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp: Fixed #1044 (Access violation with
--enable=all)
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1026 (false positive: buffer access out of bounds)
2009-12-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp, lib/settings.cpp: Fixed #1043 (use cppcheck:..
syntax in error messages)
2009-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/settings.cpp: --enable: readded code so that parameters can be
comma separated
2009-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/settings.cpp: fix a bug in commit
84a6fe6b54c26acb5d1dc3fd57b1de9634a801b1
2009-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: updated the manual
2009-12-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp, lib/settings.cpp, test/testexceptionsafety.cpp:
Fixed #1034 (change --enable to --enable=all)
2009-12-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/testtokenize.cpp: Fix #1037 (tokenizing a nested do while,
while loop fails)
http://sourceforge.net/apps/trac/cppcheck/ticket/1037
2009-12-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkmemoryleak.cpp: astyle fix
2009-12-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Eric Sesterhenn:
Fixed #1032 (False positive resource leak with exit at end of
function)
2009-12-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1030 (wrong
line number with goto)
2009-11-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/cppcheck.cpp, lib/settings.cpp,
lib/settings.h, test/testexceptionsafety.cpp: Refactoring: Parse
--enable values in Settings class
2009-11-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp: Add --unused-functions back to help, but mention
that it is deprecated.
2009-11-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Update man page
2009-11-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testmemleak.cpp,
test/testsimplifytokens.cpp: ericsesterhenn: Fix #1028 (False
positive resource leak)
2009-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fix #1022 (False positive:
uninitialized variable when using local struct)
2009-11-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp: Fix #986 (Move --all and --style to --enable)
http://sourceforge.net/apps/trac/cppcheck/ticket/986
2009-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1027
(Internal error: sizeof a++)
2009-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: changed error message when there an internal
error in Cppcheck is found
2009-11-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1020
(lib/tokenize.cpp:4615: bool Tokenizer::validate() const: Assertion
0 failed)
2009-11-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/tokenize.cpp, lib/tokenize.h: validator bugs
are now printed using the errorlogger
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/check.h: DJGPP: fix runtime errors because list is destroyed
before objects
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cli.pro, test/test.pro: use checked STL in debugmode
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cli.pro: cli: in release use the NDEBUG to avoid assertions
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/gui.pro: gui: with the define NDEBUG the assertions are
disabled
2009-11-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/preprocessor.cpp: Use sizeOfType()
instead of sizeof(void*)
2009-11-28 Martin Ettl <martin@martin.(none)>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: partial
fix of ticket #997; added check for write() two testcases
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/token.cpp, lib/token.h,
lib/tokenize.cpp: mode change from 755 to 644
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1021 (Out-of-bounds access false positive)
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/token.cpp: minor fixes
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/token.cpp, lib/token.h: fixed buffer overrun and removed
redundant function Token::str
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* testrunner.cbproj: Borland C++: updated the testrunner project
2009-11-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp: Borland C++: Fixed compiler error
2009-11-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/token.h, lib/tokenize.cpp: Token debug function
printOut() can now print out filename instead of index
2009-11-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/token.h, lib/tokenize.cpp,
test/testsimplifytokens.cpp: Fix #1018 (strcat(strcat()) causes
assertion in Tokenizer::validate) Test case provided by povaddict
http://sourceforge.net/apps/trac/cppcheck/ticket/1018
2009-11-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1015
(SIGABRT: Tokenizer::validate for openttd/src/ai/ai_config.cpp)
2009-11-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1014
(Preprocessor: Invalid preprocessing of '#define some_delete(x)
delete x;')
2009-11-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1007
(False positive array index out of bounds concerning a switch
statement in a for loop) Bailout if switch is found in for loop.
http://sourceforge.net/apps/trac/cppcheck/ticket/1007
2009-11-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/resultstree.cpp: Robert Reif: initialize array (#366)
2009-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/cppcheck.wxs: windows installer: non-advertised
shortcut for manual. Seems to work better
2009-11-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #989
(CppCheck crashes on Win XP when scanning large
directories/subdirectories)
2009-11-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Added 'make man' to Makefile
2009-11-22 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.h: Fix #1003 (Compiler warning: is there a reason for
Tokenizer::getErrorMessages to be virtual?) Destructor is now
virtual. http://sourceforge.net/apps/trac/cppcheck/ticket/1003
2009-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Temporary fix for
#994 (cppcheck cannot check my sources with segfaulting)
2009-11-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #993 (Latest Git
drop aborts at 63% of wine tree)
2009-11-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/build3.bat: Installer: minor fix in build script
2009-11-22 Slava Semushin <php-coder@altlinux.ru>
* lib/preprocessor.cpp: lib/preprocessor.cpp: clean up code. Improvements for: 092f64b77a554848db35b263bfd252f266db80f3 No functional change.
2009-11-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h, lib/tokenize.h,
test/testpreprocessor.cpp: Fixed #982 (Preprocessor: detects and
remove conditions which always true)
2009-11-21 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp: Fixed #988
(Tokenizer::simplifyDoWhileAddBraces(): don't add braces after "do"
when it not a loop) FIXME: test cases needed. http://sourceforge.net/apps/trac/cppcheck/ticket/988
2009-11-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/cli.wxs, win_installer/cppcheck.wxs,
win_installer/gui.wxs, win_installer/productInfo.wxi: Windows
Installer: added manual.pdf, renamed cppcheck.msi => cli.msi,
renamed gui.msi => cppcheck.msi, fixes for upgrading
2009-11-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #995
(false positive: buffer access out of bounds when using fgets)
http://sourceforge.net/apps/trac/cppcheck/ticket/995
2009-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #985
(Detect buffer overrun with read())
http://sourceforge.net/apps/trac/cppcheck/ticket/985
2009-11-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #965
(Division by zero false positive with nested macros)
2009-11-21 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #990
(Tokenizer::simplifyIfAddBraces() handle case where statement after
if doesn't end by semicolon) http://sourceforge.net/apps/trac/cppcheck/ticket/990
2009-11-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #960
(Tokenizer::validate() assertion failure with mismatched brackets)
2009-11-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, lib/preprocessor.h,
test/testpreprocessor.cpp: Fixed #912 (### Unlogged error at
Tokenizer::syntaxError: Invalid number of character (())
2009-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/resultstree.cpp: Fix #864 (GUI fails to open second position
for multi-line errors) Apply patch from robertreif
http://sourceforge.net/apps/trac/cppcheck/ticket/864
2009-11-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/mainwindow.cpp: Fix #981 (GUI saves report with wrong
extension) Apply patch from robertreif
http://sourceforge.net/apps/trac/cppcheck/ticket/981
2009-11-20 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #983
(Tokenizer::simplifyTypedef() incorrectly substitute type inside
namespace) http://sourceforge.net/apps/trac/cppcheck/ticket/983
2009-11-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Add execution parameters to codeblocks project file:
p.cpp --debug
2009-11-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #971
(Preprocessor: Handle partial macro in macro)
http://sourceforge.net/apps/trac/cppcheck/ticket/971
2009-11-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #968 (False
positive when TEMP_FAILURE_RETRY used)
2009-11-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: Added a few TODO test cases for #971
(Invalid number of characters (())
http://sourceforge.net/apps/trac/cppcheck/ticket/971
2009-11-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: astyle fix
2009-11-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testother.cpp: fixed testcase so it's valid syntax
2009-11-18 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #970 (Tokenizer:
Incorrect comparison order simplification) Revert changes from 11cb7b4710cf78be6d6efc8ad3165e0e98cadd3a commit
for lib/tokenize.cpp (fixed it by another way). Teach unsignedint() to expand "unsigned" in casts. http://sourceforge.net/apps/trac/cppcheck/ticket/970
2009-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: manual: refactorings
2009-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/resultstree.cpp: robertreif: Fixed #442 (Filter duplicate
errors in GUI)
2009-11-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/resultstree.cpp: robertreif: Fixed #726 (GUI: Fix quoting of
paths with spaces in Windows)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/buildman.sh, man/manual.docbook: Manual: Minor refactorings.
Added a simple build script
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #925 (uninitialized
deletion not detected)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/mathlib.cpp: Fixed #891 (false positive: division by zero)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/mainwindow.cpp: gui: fixed compiler error
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: manual: better description of --enable (#883)
2009-11-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp: Minor fix to previous commit
2009-11-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp,
test/testother.cpp: Fix #964 (Integer division by zero exception)
http://sourceforge.net/apps/trac/cppcheck/ticket/964
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/cppcheck.1.xml: manual: updated the manpage regarding --enable
(#883)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: help screen updates for the --enable command
(#883)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/cppcheck.cpp, lib/settings.cpp,
lib/settings.h, test/testexceptionsafety.cpp: Fixed #883 (Add new
command line argument --enable)
2009-11-15 Slava Semushin <php-coder@altlinux.ru>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #842
(out of bounds: when buffer is allocated with malloc) http://sourceforge.net/apps/trac/cppcheck/ticket/842
2009-11-15 Slava Semushin <php-coder@altlinux.ru>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #900
(Improve out-of-bounds check to detect error with "new char(x)") http://sourceforge.net/apps/trac/cppcheck/ticket/900
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #953 (false
positive: 'uninitialized variable' with function pointer)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #483 (False
positive: found leak when foreach for lists used)
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
simple code cleanup
2009-11-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #915 (false
positive: memory leak for struct member (allocated in condition)
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #936 (false
positive: uninitialized variable '.. else return; .. ')
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: manual: some minor refactorings
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: removed command line flag --exception-safety
from the help page
2009-11-14 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #961 (Tokenizer:
call simplifyCasts() before removing "unsigned" keyword) http://sourceforge.net/apps/trac/cppcheck/ticket/961
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: Manual: Minor refactorings
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #944 (new false positives against Wine
Git Tree)
2009-11-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #913 (false
positive: uninitialized variable)
2009-11-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
When #error is encountered the result is an empty string => don't
check configuration
2009-11-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #919
(possible memory leak not detected)
2009-11-14 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #954
(Tokenizer: correctly simplify sizeof of class members) http://sourceforge.net/apps/trac/cppcheck/ticket/954
2009-11-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: manual: added the section 'introduction'
2009-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fix #945
(Array index out of bounds not detected, because of "int const")
http://sourceforge.net/apps/trac/cppcheck/ticket/945
2009-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/tokenize.cpp, test/testbufferoverrun.cpp: Fix
#947 (Errors not detected when size_t is used instead of int)
http://sourceforge.net/apps/trac/cppcheck/ticket/947
2009-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #946
(False positive: Buffer access out-of-bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/946
2009-11-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #951
(Preincremented struct member confused with numeric constant)
2009-11-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp, test/testtokenize.cpp: Test case for
#903 (segmentation fault of cppcheck)
http://sourceforge.net/apps/trac/cppcheck/ticket/903
2009-11-13 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp: Fixed #903 (segmentation fault of cppcheck) http://sourceforge.net/apps/trac/cppcheck/ticket/903
2009-11-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #950 (Bug in
cppcheck tokenize.cpp)
2009-11-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* man/manual.docbook: Manual: Working draft for a Cppcheck manual
2009-11-12 Slava Semushin <php-coder@altlinux.ru>
* lib/tokenize.cpp: Fixed #935 (Tokenizer: link() problem) http://sourceforge.net/apps/trac/cppcheck/ticket/935
2009-11-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/tokenize.cpp, lib/tokenize.h: Use validate
after tokenize and simplifyTokenlist calls. Disabled until known
problems fixed.
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Uninitialized variables:
detect uninitialized pointer array
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #928 (false
positive: member variable not initialized in constructor)
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #931 (Invalid interator
false positive with identical variable names)
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #929 (Uninitialized
variable false positive)
2009-11-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #932 (false positive:
Dereferenced iterator 'i' has been erased)
2009-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: astyle formatting
2009-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testother.cpp: unit testing: minor syntax updates
2009-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: minor updates
2009-11-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: unit testing: minor syntax fixes
2009-11-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp: Made some syntax errors slightly easier to
detect.
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* htdocs/main.html, htdocs/top.html: webpage: removed main.html and
top.html
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* htdocs/help.html, htdocs/index.html: webpage: removed the
index.html and help.html
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* htdocs/help.html, htdocs/index.html, htdocs/main.html,
htdocs/top.html: webpage: created a simple website for us
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkother.cpp, test/testexceptionsafety.cpp: Fixed #832
(Exception Safety: deallocating member pointer and then throwing
exception)
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: extract more tests
2009-11-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #910 (false
positive: uninitialized variable for array)
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: testbufferoverrun.cpp: fixed unit test
error
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: extract to cpp instead and
don't generate the Makefile - it's easier to use a simple standard
Makefile instead.
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: testbufferoverrun.cpp: minor updates
to make it work better as extracted code
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* tools/extracttests.cpp: extracttests: Added a simple program for
extracting testcode from our unit testing
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: testbufferoverrun: minor updates to
make the code more easily compilable
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: uninitialized data: minor
fix to handle 'new char [' better
2009-11-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp: astyle fix
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp:
uninitialized data: added more checking for allocated data
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #907
(Tokenizer: known result of strlen)
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp: Fixed #905 (memory leak not detected when
using puts)
2009-11-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.sln: Visual C++: removed 'gui' target from the cppcheck
solution
2009-11-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #903
(false positive: buffer access out of bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/903
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: cleanup in testbufferoverrun.cpp
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: uninitialized variables:
better checking of strncpy
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/cppcheck.cpp: removed --exception-safety and added --enable
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #904 (false
positive: uninitialized variable)
2009-11-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #902 (false
positive: uninitialized variable when variable is initialized in
macro)
2009-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #898
(Tokenizer: remove unneeded const after *)
2009-11-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #897 (false
positive: uninitialized variable when assigning pointer to array to
struct member)
2009-11-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #896 (False positive with --all when return value of open() is
positive in a loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/896
2009-11-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.h, test/testexceptionsafety.cpp: updated
error message when memory leaks upon exception
2009-11-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testclass.cpp: Add one more test case for #895 (false
positive: Suspicious pointer subtraction)
2009-11-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fix #895 (false positive:
Suspicious pointer subtraction)
http://sourceforge.net/apps/trac/cppcheck/ticket/895
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: use Token::link instead of findmatch to find
']'
2009-11-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/teststl.cpp, test/testtokenize.cpp: Fix
#894 (Invalid line number in "Invalid number of character")
http://sourceforge.net/apps/trac/cppcheck/ticket/894
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #893 (False
Positive: Uninitialized variable b in a[0] = b[0] = '\0';)
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
test/testexceptionsafety.cpp: Exception safety: added check for
unsafe reallocation of member pointer
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
test/testexceptionsafety.cpp: Exception Safety: detect unsafe
multiple new in a execution path (#831)
2009-11-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #890 (false
positive: Uninitialized variable when pointer takes the address to
array)
2009-11-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix #881 (Tokenizer:
Something seems to be wrong in Tokenizer::simplifyKnownVariables)
http://sourceforge.net/apps/trac/cppcheck/ticket/881
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, test/teststl.cpp: STL: refactoring and fixing
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/teststl.cpp: Refactoring
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: astyle
formatting
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: STL: added
check for dangerous usage of std::find (#829)
2009-11-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #764 (usage of
unitialized variable not detected)
2009-11-02 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testother.cpp,
test/testpreprocessor.cpp: Fixed #882 (false positive: uninitialized
variable)
2009-11-02 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #889 (false
positive: uninitialized variable)
2009-11-01 Daniel Marjamäki <danielm77@spray.se>
* test/testsimplifytokens.cpp: fixed todo testcase
2009-11-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed segmentation
fault. Had to change one test case to TODO for now.
2009-11-01 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testclass.cpp, test/testsimplifytokens.cpp:
Fixed #880 (Tokenizer: The Tokenizer::simplifyTemplates doesn't
handle recursive templates)
2009-11-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Templates: Better
handling of recursive templates
2009-11-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fix #884 (False positive:
Possible null pointer reference about a non-pointer)
http://sourceforge.net/apps/trac/cppcheck/ticket/884
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/cppcheck.cpp, lib/settings.cpp, lib/settings.h,
test/testexceptionsafety.cpp: Fixed #831 (Exception safety: multiple
new in a simple execution path)
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #843 (new check:
Passing uninitialized array to strlen/strdup/strcpy/strcat/etc)
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #877 (False positive:
After insert, iterator may be invalid)
2009-10-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp: Fix #685 (Include file not found is printed
with -v when include file is empty)
http://sourceforge.net/apps/trac/cppcheck/ticket/685
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #430
(Tokenizer: handle templates with partial specialisation)
2009-10-31 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #876 (false
positive: uninitialized variable)
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #875 (Uninitialized
variable: initialization in subfunction)
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp: uninitialized variables: return|goto are not
used in variable declarations
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: null pointer: fixed false
positive when condition checks if pointer is ok
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fixed
#867 (unused member function warning)
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: uninitialized variables:
fixed false positive when switch is used
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Uninitialized pointers:
It's allowed to dereference uninitialized non-pointer variables
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #874 (false
positive: uninitialized variable)
2009-10-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: uninitialized variables:
fixed false positives for member variables
2009-10-29 Daniel Marjamäki <danielm77@spray.se>
* test/testother.cpp: uninitialized variables: Added TODO testcase
for removing false positives
2009-10-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp:
uninitialized variables: added check
2009-10-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #870 (The
CheckClass::getVarList method detects 'const' as a variable name.)
http://sourceforge.net/apps/trac/cppcheck/ticket/870
2009-10-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #868
(False positive - buffer access out of bounds in for loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/868
2009-10-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp: Minor fix to previous commit
2009-10-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Modify
CheckBufferOverrun::checkGlobalAndLocalVariable() to use varid only.
Also add some TODO test cases.
2009-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* all.pro, cppcheck.pro: Renamed top-level cppcheck.pro to all.pro
2009-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cppcheck.vcproj, test/test.vcproj: Visual Studio: Manually
edited the vcproj files. The absolute paths were replaced with
relative paths
2009-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.pro: Restructuring: updated the top cppcheck.pro file
2009-10-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cli.pro, cli/cppcheck.vcproj, cli/resource.h, cppcheck.sln,
cppcheck.vcproj, gui/gui.pro, lib/lib.pri, lib/resource.h,
test/test.vcproj, testrunner.sln, testrunner.vcproj: Restructuring:
Updated the Visual Studio project files. They are now generated by
qmake
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
Detect simple leak
2009-10-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/build1.bat, win_installer/build2.bat: Make switching
QT version easier in build batch files.
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/errorlogger.cpp: Fixed #854 (invalid XML generated for folders
containing &)
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #860 (Improve
double delete detection)
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cppcheck.cbproj: Restructuring: Updated the Borland C++ project
file
2009-10-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* cli/cli.pro, cli/cppcheck.rc, gui/gui.pro, lib/cppcheck.rc,
win_installer/build.proj, win_installer/build1.bat,
win_installer/build2.bat, win_installer/build3.bat: Restructuring:
updated win_installer scripts
2009-10-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: Test case for #863 (false positive
memset array of pointers)
http://sourceforge.net/apps/trac/cppcheck/ticket/863
2009-10-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testsimplifytokens.cpp: Fix #863
(false positive memset array of pointers)
http://sourceforge.net/apps/trac/cppcheck/ticket/863 Also fix test
cases for 64 bit systems.
2009-10-27 Daniel Marjamäki <danielm77@spray.se>
* lib/settings.cpp, lib/settings.h: simple optimisation
2009-10-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.vcproj, testrunner.vcproj: Apply patches from polygon7 to
fix #857 (Compilation error after refactoring the folder structure)
http://sourceforge.net/apps/trac/cppcheck/ticket/857
2009-10-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, tools/dmake.cpp: astyle fix
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: Restructuring: Updated the dependency
walker
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* test/test.pro: Restructuring: Updated test/test.pro
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/cppcheck.h: Refactoring: Changed pointer to
reference
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* doxyfile: Restructuring: Doxyfile updated
2009-10-26 Daniel Marjamäki <danielm77@spray.se>
* generate_coverage_report: Restructuring: Generate coverage report
2009-10-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: codeblocks project file updated
2009-10-25 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Refactoring: Updated Makefile
2009-10-25 Daniel Marjamäki <danielm77@spray.se>
* cli/cli.pro, cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
cli/main.cpp, cli/threadexecutor.cpp, cli/threadexecutor.h,
lib/cppcheckexecutor.cpp, lib/cppcheckexecutor.h, lib/lib.pri,
lib/threadexecutor.cpp, lib/threadexecutor.h: restructuring the
folder structure
2009-10-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, gui/mainwindow.cpp, lib/cppcheck.cpp,
lib/cppcheck.h: Refactoring: Make Cppcheck::version() static Update
codeblocks projectfile
2009-10-25 Daniel Marjamäki <danielm77@spray.se>
* Makefile, cli/cli.pro, cli/cppcheckexecutor.cpp,
cli/cppcheckexecutor.h, cli/main.cpp, cli/threadexecutor.cpp,
cli/threadexecutor.h, gui/checkthread.h, gui/gui.pro,
gui/mainwindow.cpp, gui/resultsview.h, gui/threadhandler.h,
gui/threadresult.h, lib/cppcheckexecutor.cpp,
lib/cppcheckexecutor.h, lib/lib.pri, lib/src.pri, lib/src.pro,
lib/threadexecutor.cpp, lib/threadexecutor.h: fixed qmake building
with new folder structure
2009-10-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Fixed typo in man page
2009-10-25 Daniel Marjamäki <danielm77@spray.se>
* Makefile, cli/cppcheckexecutor.cpp, cli/cppcheckexecutor.h,
cli/main.cpp, cli/threadexecutor.cpp, cli/threadexecutor.h,
lib/check.h, lib/checkautovariables.cpp, lib/checkautovariables.h,
lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/checkclass.h,
lib/checkdangerousfunctions.cpp, lib/checkdangerousfunctions.h,
lib/checkexceptionsafety.cpp, lib/checkexceptionsafety.h,
lib/checkheaders.cpp, lib/checkheaders.h, lib/checkmemoryleak.cpp,
lib/checkmemoryleak.h, lib/checkother.cpp, lib/checkother.h,
lib/checkstl.cpp, lib/checkstl.h, lib/checkunusedfunctions.cpp,
lib/checkunusedfunctions.h, lib/classinfo.h, lib/cppcheck.cpp,
lib/cppcheck.h, lib/cppcheck.rc, lib/errorlogger.cpp,
lib/errorlogger.h, lib/filelister.cpp, lib/filelister.h,
lib/mathlib.cpp, lib/mathlib.h, lib/preprocessor.cpp,
lib/preprocessor.h, lib/resource.h, lib/settings.cpp,
lib/settings.h, lib/src.pri, lib/src.pro, lib/token.cpp,
lib/token.h, lib/tokenize.cpp, lib/tokenize.h, runastyle,
runastyle.bat, src/check.h, src/checkautovariables.cpp,
src/checkautovariables.h, src/checkbufferoverrun.cpp,
src/checkbufferoverrun.h, src/checkclass.cpp, src/checkclass.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/checkexceptionsafety.cpp, src/checkexceptionsafety.h,
src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/checkstl.cpp, src/checkstl.h, src/checkunusedfunctions.cpp,
src/checkunusedfunctions.h, src/classinfo.h, src/cppcheck.cpp,
src/cppcheck.h, src/cppcheck.rc, src/cppcheckexecutor.cpp,
src/cppcheckexecutor.h, src/errorlogger.cpp, src/errorlogger.h,
src/filelister.cpp, src/filelister.h, src/main.cpp,
src/mathlib.cpp, src/mathlib.h, src/preprocessor.cpp,
src/preprocessor.h, src/resource.h, src/settings.cpp,
src/settings.h, src/src.pri, src/src.pro, src/threadexecutor.cpp,
src/threadexecutor.h, src/token.cpp, src/token.h, src/tokenize.cpp,
src/tokenize.h, test/testautovariables.cpp,
test/testbufferoverrun.cpp, test/testcharvar.cpp,
test/testclass.cpp, test/testconstructors.cpp,
test/testcppcheck.cpp, test/testdangerousfunctions.cpp,
test/testdivision.cpp, test/testexceptionsafety.cpp,
test/testfilelister.cpp, test/testincompletestatement.cpp,
test/testmathlib.cpp, test/testmemleak.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testsimplifytokens.cpp, test/teststl.cpp, test/testsuite.h,
test/testtoken.cpp, test/testtokenize.cpp,
test/testunusedfunctions.cpp, test/testunusedprivfunc.cpp,
test/testunusedvar.cpp, tools/dmake.cpp: refactoring the folder
structure
2009-10-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: Updated for the release
2009-10-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Changelog: Changelog: updated the Changelog
2009-10-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, src/main.cpp,
win_installer/cppcheck.iss, win_installer/cppcheck.wxs: updated
version to 1.38
2009-10-24 Daniel Marjamäki <danielm77@spray.se>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #253
(MemoryLeakInClass: False positive when memory is released in
function, which is called from destructor)
2009-10-24 Daniel Marjamäki <danielm77@spray.se>
* src/checkunusedfunctions.cpp: don't report that the function
WinMain is unused
2009-10-23 Daniel Marjamäki <danielm77@spray.se>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: Added
and fixed testcase TestMemleakInClass::class13
2009-10-22 Daniel Marjamäki <danielm77@spray.se>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #851
(Tokenizer: sizeof(*a) returns incorrect result)
2009-10-22 Daniel Marjamäki <danielm77@spray.se>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #428 (Memory
leak not detected with class)
2009-10-21 Daniel <daniel@daniel-desktop.(none)>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #844
(Tokenizer: Simplify 'sizeof *ptr' correctly)
2009-10-21 Daniel <daniel@daniel-desktop.(none)>
* src/checkstl.cpp, src/checkstl.h: Fixed #830 (id 'pushback' used
twice)
2009-10-21 Daniel <daniel@daniel-desktop.(none)>
* cppcheck.pro: Removed toplevel qmake pro file that doesn't work
2009-10-21 Daniel <daniel@daniel-desktop.(none)>
* cppcheck.geany: removed geany project file
2009-10-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #767
(Tokenizer: Known variable variable not simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/767
2009-10-20 Daniel <daniel@daniel-desktop.(none)>
* src/checkother.cpp, test/testother.cpp: Fixed #839 (False
positive: possible null pointer dereference after new)
2009-10-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp: Minor refactoring.
2009-10-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Improved
countSprintfLength() to detect more errors with %d. Fixed some
errors from test cases. Added more test cases.
2009-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, src/checkexceptionsafety.cpp,
src/checkexceptionsafety.h, test/testexceptionsafety.cpp: Fixed by
#828 (Exception Safety: No throwing in destructors)
2009-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp: David Binderman: Remove dead variable
2009-10-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: Null
pointers: Detect code where the assignment is conditional
2009-10-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, test/teststl.cpp: STL: checking
that containers are matching
2009-10-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #827
(Tokenizer: sizeof is incorrectly simplified)
2009-10-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #449 (false
postive:: resource leak when using errno)
2009-10-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #826
(False positive: sprintf with "f%s")
http://sourceforge.net/apps/trac/cppcheck/ticket/826
2009-10-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/check.h, src/cppcheck.cpp, src/tokenize.cpp, src/tokenize.h:
Fix #825 (Error with id syntaxError not in list printed with
--errorlist) http://sourceforge.net/apps/trac/cppcheck/ticket/825
2009-10-17 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp: Fix segmentation fault with
--errorlist
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testunusedvar.cpp: unused struct member:
bail out when casting
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Pointer Aliasing:
Handle pointer aliasing through the
Tokenizer::simplifyKnownVariables
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testunusedvar.cpp:
Unused struct members: bail out upon casting
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/mainwindow.cpp, src/cppcheck.cpp, src/cppcheck.h: fixed
compiler error when building gui
2009-10-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/cppcheck.h, src/cppcheckexecutor.cpp: Fixed
#824 (Exit code of cppcheck)
2009-10-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, src/checkstl.h, test/teststl.cpp: stl: after
vector::insert, iterators may become invalid
2009-10-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #823
(Buffer overrun with memcpy)
2009-10-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: fixed doxygen
warning messages
2009-10-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #821
(Preprocessor: Wrong stringification in macros)
2009-10-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: Fixed #820 (Borland C++: Compiler errors because
of time_t)
2009-10-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Buffer
overrun errors behind function call should be possible errors.
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Move
buffer overrun errors behind --all Fix one possible error issue with
arrayindexoutofbounds Make sure that possible errors are not shown
without --all
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* : commit 4036dd5effb90957b2b9b7ffb861344215757953 Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Tue Oct 13 22:39:51
2009 +0300
2009-10-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: stl: better checking for
invalid iterator after push_back
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/settings.cpp, src/settings.h: Fix #815 (rev. 47e9d1:
compilation error)
http://sourceforge.net/apps/trac/cppcheck/ticket/815
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Undocumented --showtime option should now work
on other platforms also. Improved --showtime to give more
information.
2009-10-13 Reijo Tomperi <aggro80@users.sourceforge.net>
* gui/mainwindow.cpp, gui/threadhandler.cpp, gui/threadhandler.h:
Fix #455 (Recheck is enabled when no previous results available)
http://sourceforge.net/apps/trac/cppcheck/ticket/455
2009-10-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit ed3860a0a74ffcd325d0380130de83e703f82659 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Mon Oct 12
21:36:28 2009 +0200
2009-10-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* readme.txt: Fix #814 (Improvements for readme.txt)
http://sourceforge.net/apps/trac/cppcheck/ticket/814
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #812
(False positive: sprintf with "%.4s" with --all)
http://sourceforge.net/apps/trac/cppcheck/ticket/812
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #694
(False (possible error) Buffer overrun with %-1s) ashim2009 did most
of the work http://sourceforge.net/apps/trac/cppcheck/ticket/694
2009-10-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* webreport.sh: script for creating web content
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h: Refactoring: Split null
pointer check into 4 smaller functions.
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testdivision.cpp: Fix #810 (false
positive: Division with signed and unsigned operators)
http://sourceforge.net/apps/trac/cppcheck/ticket/810
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Getting rid of warning C4267: 'return' :
conversion from 'size_t' to 'unsigned int'
2009-10-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Getting rid of compiler warning: C4310: cast
truncates constant value
2009-10-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/build.proj, win_installer/build1.bat,
win_installer/build2.bat: win_installer: Added build scripts
2009-10-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/gui.wxs, win_installer/productInfo.wxi:
win_installer: minor tweaks
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* htdocs/build.bat: a simple build script for building devinfo.html
2009-10-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix #808
(Segfault in Preprocessor)
http://sourceforge.net/apps/trac/cppcheck/ticket/808
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit d2e2b1d9feb1e826c7118e1c8c3f85ae89895e38 Author: Daniel
Marjamäki <hyd_danmar@users.sourceforge.net> Date: Sat Oct 10
22:10:33 2009 +0200
2009-10-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Fix compiler warning warning C4512:
'PreprocessorMacro' : assignment operator could not be generated
2009-10-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Get rid of compiler warning warning C4127:
conditional expression is constant
2009-10-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: Get rid of a compiler warning.
conversion from 'size_t' to 'int', possible loss of data
2009-10-10 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #809
(Tokenizer: don't replace sizeof() of unknown type to zero) http://sourceforge.net/apps/trac/cppcheck/ticket/809
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testtokenize.cpp: Added testcase for #807 (cppcheck crashes
scanning ruby 1.9.1)
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: minor refactoring
2009-10-10 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp: Borland C++: Fixed compiler errors
2009-10-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #806 (cppcheck
crashes scanning openssl)
2009-10-09 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: jonas054: fixed #807 (cppcheck crashes scanning
ruby 1.9.1)
2009-10-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: memory leaks: minor cleanups
2009-10-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: optimisation: made the memory leaks
checking faster
2009-10-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp: optimisation: removed duplicate call of
Tokenizer::setVarId
2009-10-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp, src/settings.cpp,
src/settings.h: Fix #674 (Feature request: error filtering)
--suppressions argument added to CLI
http://sourceforge.net/apps/trac/cppcheck/ticket/674
2009-10-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: More test cases for sprintf counter
2009-10-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: sprintf
counter improvements
2009-10-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #802 (possible null
pointer dereference reported for reference)
http://sourceforge.net/apps/trac/cppcheck/ticket/802
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkstl.cpp: Use var id instead of var name in check stl.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkstl.cpp: Use varid instead of varname in stl check.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, src/checkstl.cpp, test/testother.cpp,
test/teststl.cpp: Optimize speed and fix one false positive with stl
checks.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: Added more test cases for sprintf
counter
2009-10-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Ashim
Kapoor: updated the counter (#694)
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Refactoring: Moved some code into a new
function. Renamed count->countSprintfLength. Added code to collect
sprintf parameters. Added a few TODO test cases.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #801
(Tokenizer: Simplify sizeof for function parameters)
http://sourceforge.net/apps/trac/cppcheck/ticket/801
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #487
(Tokenizer: Simplify sizeof for string array and string pointer)
http://sourceforge.net/apps/trac/cppcheck/ticket/487
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkmemoryleak.cpp,
src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
Refactored sizeof simplification and fixed one TODO assert.
2009-10-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Detect referenced by value
errors for std::map also.
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix #388 (resource
leak not detected, allocation through function call)
http://sourceforge.net/apps/trac/cppcheck/ticket/388
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #796
(segmentation fault while scanning)
http://sourceforge.net/apps/trac/cppcheck/ticket/796
2009-10-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: don't
write errors for static member variables
2009-10-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h, test/testother.cpp: Fix #797
(false positive: variable scope when using function call)
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #575
(Array index out of bounds check: get address of one-past-the-end
array is legal) http://sourceforge.net/apps/trac/cppcheck/ticket/575
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #580 (double
free not found) http://sourceforge.net/apps/trac/cppcheck/ticket/580
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp, test/testtokenize.cpp: Moved some
test cases from testtokenize into testsimplifytokens and added one
TODO case.
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix #795
(Preprocessor: Incorrect handling of #if (A) || (B))
http://sourceforge.net/apps/trac/cppcheck/ticket/795
2009-10-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #765 (divsion by zero
not detected in std::cout stream)
http://sourceforge.net/apps/trac/cppcheck/ticket/765
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Removed variable that wasn't used.
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Replace substr() with compare() to speed up
preprocessing. See #762 (version 1.37 of cppcheck runs extremely
slowly on windows)
http://sourceforge.net/apps/trac/cppcheck/ticket/762
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #794
(Floating point exception on CheckBufferOverrun)
http://sourceforge.net/apps/trac/cppcheck/ticket/794
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #365 (Improve
simplifyQuestionMark() in tokenize.cpp)
http://sourceforge.net/apps/trac/cppcheck/ticket/365
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: Refactoring: Remove
findClosing(). It is replaced by Token::link().
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #771 (False positive.
Null pointer dereference in a switch case)
http://sourceforge.net/apps/trac/cppcheck/ticket/771
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix
simplifyRedundantParanthesis() to work after '}'
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #776
(Tokenizer: remove useless brackets around variable assignment)
http://sourceforge.net/apps/trac/cppcheck/ticket/776
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #778
(Tokenizer: impove simplification inside if())
http://sourceforge.net/apps/trac/cppcheck/ticket/778
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #793 (Improve
passedByValue check)
http://sourceforge.net/apps/trac/cppcheck/ticket/793
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* generate_coverage_report: Better cleanup for coverage script.
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* generate_coverage_report: Add script generate_coverage_report for
generating test coverage report using gcov and lcov
2009-10-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #777
(Tokenizer: double casting simplified incorrectly)
http://sourceforge.net/apps/trac/cppcheck/ticket/777
2009-10-04 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #784
(Tokenizer: Simplify 2[a] -> a[2])
http://sourceforge.net/apps/trac/cppcheck/ticket/784
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #789 (false
positive: resource leak reported when using for loop)
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: Fixed #786 (memleak: segmentation fault
for 'if TRACE_ON(x)')
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
Minor fixes (#772)
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #785 (False
positive: resource leak of extern FILE*)
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h: doc: fixed linebreak in previous commit
6aea2faacd
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h: doc: refactoring of the docs for CheckOther
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, src/checkother.h: Removed
CheckOther::warningIf
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #727 (False
positive: Resource leak when release is done inside function call)
2009-10-04 Slava Semushin <php-coder@altlinux.ru>
* src/checkautovariables.cpp, src/checkautovariables.h: Fixed #783
(Refactoring: autoVariables error message is hard coded in 3
locations) http://sourceforge.net/apps/trac/cppcheck/ticket/783
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: astyle formatting
2009-10-04 Slava Semushin <php-coder@altlinux.ru>
* test/testother.cpp: Fixed #782 (Checks are missing test cases) http://sourceforge.net/apps/trac/cppcheck/ticket/782
2009-10-04 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.h: src/preprocessor.h: fixed comment. removeParantheses() doesn't throws exception. Correction for 1a48f869c84018d73fd63bf59263224b019a5997 commit. No code change.
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp,
test/testsimplifytokens.cpp, test/testtokenize.cpp: use '<'
comparisons instead of '>' (#610)
2009-10-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Fixed #772 (Preprocessor: #if(A) is not
seen equal to #if A)
2009-10-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #733 (New
check: locking & unlocking mutex and semaphore variables)
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #780
(Tokenizer: replace typedef for pointers to struct) http://sourceforge.net/apps/trac/cppcheck/ticket/780
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp: Token::Match(): made message about bug more
verbose.
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: Fixed #775 (###### If you see this,
there is a bug ###### Token::Match() - varid was 0) http://sourceforge.net/apps/trac/cppcheck/ticket/775
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::simplifyVarDecl(): join 2 conditions. No functional change.
2009-10-03 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #770 (Tokenizer:
Var id not set for static variables in some cases) http://sourceforge.net/apps/trac/cppcheck/ticket/770
2009-10-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/tokenize.cpp: Borland C++: Fixed
compiler errors
2009-10-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp: Attempt to speed up preprocessing on
macro-in-macro situations. See #762 (version 1.37 of cppcheck runs
extremely slowly on windows)
http://sourceforge.net/apps/trac/cppcheck/ticket/762
2009-10-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: TODO test cases
TestTokenizer::vardec_static added
2009-10-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Abort comma simplification when ", %num%" is
detected. This increases speed a lot in some rare situations.
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: refactoring unit tests
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fixed
#679 (False positive: Unused private function produced by exception
specification)
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/application.ui: eliedebrauwer: fix typo (#755)
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/cppcheck_nl.ts: eliedebrauwer: dutch translation (#756)
2009-10-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* gui/gui.pro, gui/translationhandler.cpp: eliedebrauwer: dutch
translation (#756)
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Minor fix to man page
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix #421 (Memory
leak not found when typeid() is used.)
http://sourceforge.net/apps/trac/cppcheck/ticket/421
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp: Trivial refactoring
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #741
(False positive: Buffer overrun with -a when index increased in
multiple locations)
http://sourceforge.net/apps/trac/cppcheck/ticket/741
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Fix #419 (missleading buffer overrun)
http://sourceforge.net/apps/trac/cppcheck/ticket/419
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Removed dead code created by previous commit
2009-10-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #763
(Tokenizer: Goto incorrectly simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/763
2009-09-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: fixed TODO_ASSERT_EQUALS
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testmemleak.cpp, test/testother.cpp,
test/testsimplifytokens.cpp, test/testtokenize.cpp: Fix #745 (false
positive: possible null pointer dereference , while)
http://sourceforge.net/apps/trac/cppcheck/ticket/745
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #744
(False positive: (possible error) Array index out of bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/744
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #759 (Tokenizer:
Incorrect var id when two variables with same name)
http://sourceforge.net/apps/trac/cppcheck/ticket/759
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp: Fix
#761 (Tokenizer: typedef inside class is incorrectly simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/761
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #760
(Tokenizer: Goto not simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/760
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: Added TODO test cases:
simplifyTypedef, simplifyTypedef2, simplifyTypedef3
2009-09-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #750 (cppcheck wants
variable outside do-loop to be only inside loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/750 Fix #758 (False
positive on variable scope with boost foreach)
http://sourceforge.net/apps/trac/cppcheck/ticket/758
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp: Changed simplifyConditionOperator() to create
also {} around if and else Fixed validate() in tokenizer.
2009-09-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: added a TODO_ASSERT_EQUALS for the
counter
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp, test/testconstructors.cpp:
Fix #757 (Change message: (style) The class 'KClass' has no
constructor) http://sourceforge.net/apps/trac/cppcheck/ticket/757
2009-09-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::tokenize(): removed useless
const_cast. No functional change.
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: TODO test case for count() added
2009-09-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Ashim
Kapoor: deal with backspace better (#694)
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Fix comment in test case
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.h, test/testother.cpp: Check nullpointer check is
now executed without --style flag Added TODO test case for
nullpointer check
2009-09-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #751 (if-condition
considered redundant even with else-branch)
http://sourceforge.net/apps/trac/cppcheck/ticket/751 Fix also other
issue with if(a.b) delete c.b; Fix also other issue with if(a.b.c)
delete a.b.c;
2009-09-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #746 (False
positive, Memory leak when goto is used)
2009-09-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
a TODO_ASSERT_EQUALS for a false positive
2009-09-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp: Fix #739 (Pre-defined output
format templates)
http://sourceforge.net/apps/trac/cppcheck/ticket/739 Patch from
lanurmi. Slightly modified by me.
2009-09-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fix #754
(Tokenizer: transform modifier "signed" to "int")
http://sourceforge.net/apps/trac/cppcheck/ticket/754 Also fix int
unsigned -> unsigned int
2009-09-28 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #753 (Tokenizer:
don't simplify variables inside do {} while loop) http://sourceforge.net/apps/trac/cppcheck/ticket/753
2009-09-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testbufferoverrun.cpp: Refactoring the unit testing of format
strings
2009-09-27 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #728 (False
positive, resource leak, when released in a loop)
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: src/checkbufferoverrun.cpp: fixed
regression. test suite was broken after my
e8c83613e4bcc95b7c3d91d5c71f4e2363a5cdf3 commit.
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #740
(False positive, buffer overrun with --all) Regression since 07f41f4563fc138b527af6ce153433a661250020 commit. http://sourceforge.net/apps/trac/cppcheck/ticket/740
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: src/checkbufferoverrun.cpp: removed
useless semicolon. No functional change.
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #738
(False Buffer overrun with -a when i is increased by more than 1
inside loop body) http://sourceforge.net/apps/trac/cppcheck/ticket/738
2009-09-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, gui/aboutdialog.cpp, gui/aboutdialog.h,
gui/applicationdialog.cpp, gui/applicationdialog.h,
gui/applicationlist.cpp, gui/applicationlist.h,
gui/checkthread.cpp, gui/checkthread.h, gui/common.h,
gui/csvreport.cpp, gui/csvreport.h, gui/fileviewdialog.cpp,
gui/fileviewdialog.h, gui/main.cpp, gui/mainwindow.cpp,
gui/mainwindow.h, gui/projectfile.cpp, gui/projectfile.h,
gui/report.cpp, gui/report.h, gui/resultstree.cpp,
gui/resultstree.h, gui/resultsview.cpp, gui/resultsview.h,
gui/settingsdialog.cpp, gui/settingsdialog.h,
gui/threadhandler.cpp, gui/threadhandler.h, gui/threadresult.cpp,
gui/threadresult.h, gui/translationhandler.cpp,
gui/translationhandler.h, gui/txtreport.cpp, gui/txtreport.h,
gui/xmlreport.cpp, gui/xmlreport.h, src/check.h,
src/checkautovariables.cpp, src/checkautovariables.h,
src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
src/checkclass.cpp, src/checkclass.h,
src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h,
src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp,
src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h,
src/checkstl.cpp, src/checkstl.h, src/checkunusedfunctions.cpp,
src/checkunusedfunctions.h, src/classinfo.h, src/cppcheck.cpp,
src/cppcheck.h, src/cppcheckexecutor.cpp, src/cppcheckexecutor.h,
src/errorlogger.cpp, src/errorlogger.h, src/filelister.cpp,
src/filelister.h, src/main.cpp, src/mathlib.cpp, src/mathlib.h,
src/preprocessor.cpp, src/preprocessor.h, src/settings.cpp,
src/settings.h, src/threadexecutor.cpp, src/threadexecutor.h,
src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h,
test/testautovariables.cpp, test/testbufferoverrun.cpp,
test/testcharvar.cpp, test/testclass.cpp,
test/testconstructors.cpp, test/testcppcheck.cpp,
test/testdangerousfunctions.cpp, test/testdivision.cpp,
test/testfilelister.cpp, test/testincompletestatement.cpp,
test/testmathlib.cpp, test/testmemleak.cpp, test/testother.cpp,
test/testpreprocessor.cpp, test/testredundantif.cpp,
test/testrunner.cpp, test/testsimplifytokens.cpp, test/teststl.cpp,
test/testsuite.cpp, test/testsuite.h, test/testtoken.cpp,
test/testtokenize.cpp, test/testunusedfunctions.cpp,
test/testunusedprivfunc.cpp, test/testunusedvar.cpp,
tools/dmake.cpp: Fix GPL comments in all files. ">." was missing
from the end.
2009-09-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheck.cpp: Remove redundant comparison
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #714
(False Buffer overrun with -a when i is increased by more than 1 in
a loop) http://sourceforge.net/apps/trac/cppcheck/ticket/714
2009-09-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/mathlib.cpp, src/mathlib.h, src/tokenize.cpp, src/tokenize.h,
test/testsimplifytokens.cpp: Fix #720 (String length for strings
like this "\x61" is calculated wrong)
http://sourceforge.net/apps/trac/cppcheck/ticket/720
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, test/teststl.cpp: Detects invalid iterator
inside for() when postfix form of increment used.
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, test/teststl.cpp: Fixed #735 (Detects invalid
iterator after push_back() when iterator declared inside for()) http://sourceforge.net/apps/trac/cppcheck/ticket/735
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Detect
buffer overruns when ?: use as sprintf() argument.
2009-09-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #729
(False positive: Buffer overrun when ? is used to select parameter) http://sourceforge.net/apps/trac/cppcheck/ticket/729
2009-09-26 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, test/testbufferoverrun.cpp, test/testtoken.cpp:
Fixed #731 (False positive, strcpy copying a buffer with a null
character) http://sourceforge.net/apps/trac/cppcheck/ticket/731
2009-09-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: CheckBufferOverrun::count(): commented
out debug message. Added in 3da779725db1de541fd5e0c14468b3b09e6234a6 commit.
2009-09-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Ashim
Kapoor: handle %i,%f,%d,%x,%X better (#694)
2009-09-26 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #732 (Tokenizer:
Incorrect simplification) Regression since 58a9e05697b4585883bbc00153d1584d9247190f commit. http://sourceforge.net/apps/trac/cppcheck/ticket/732
2009-09-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkstl.cpp, test/teststl.cpp: Fixed #710 (False positive:
invalid vector iterator after push_back)
2009-09-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #718 (False
positive, resource leak when break in a loop before exit)
2009-09-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #730
(False positive, buffer overrun with strncpy)
http://sourceforge.net/apps/trac/cppcheck/ticket/730
2009-09-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Memory leaks: Added a TODO assertion for a
false positive
2009-09-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #678 (False
positive: Unused private function produced by inner class)
2009-09-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkbufferoverrun.cpp, src/checkbufferoverrun.h,
test/testbufferoverrun.cpp: Ashim Kapoor: Added function that
returns minimum size of format strings (#694)
2009-09-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* : commit 16e55f4f8908acbc47b76ad7f89c73df2dabd8fe Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Thu Sep 24 23:46:08
2009 +0300
2009-09-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: fixed
a TODO_ASSERT_EQUALS
2009-09-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Revert "Makefile: made it ready for release" This reverts commit 67d695437430e93a788a378cb73611ff49fb7229.
2009-09-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #700 (False
positive: Memory leak)
2009-09-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.h, src/tokenize.h, testrunner.vcproj: Replaced
UNIT_TESTING ifdef with _MSC_VER
2009-09-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #713 (Tokenizer:
Simplify 0L) http://sourceforge.net/apps/trac/cppcheck/ticket/713
Use MathLib to handle other variations of 0.
2009-09-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/cppcheckexecutor.h: Changed some CppcheckExecutor functions
and variables protected and virtual.
2009-09-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/gui.wxs: added wix file for gui installation
2009-09-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* readme.txt: cross compiling info added to readme.txt
2009-09-23 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp:
Tokenizer::simplifySizeof(): use Token::getStrLength(). Fixed wrong result when string contains escaped quotes. Correction for 0e729fedc070962d1023d4cd9ad9bdaa8e0eee30 commit.
2009-09-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* win_installer/cppcheck.wxs: Windows Installer: A simple installer
without the gui
2009-09-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #713 (Tokenizer:
Simplify 0L) http://sourceforge.net/apps/trac/cppcheck/ticket/713
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Changelog: updated the Changelog
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile: Makefile: made it ready for release
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, src/main.cpp,
win_installer/cppcheck.iss: updated version to 1.37
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #716
(segmentation fault: sizeof string)
2009-09-22 Slava Semushin <php-coder@altlinux.ru>
* test/testdivision.cpp: test/testdivision.cpp: fixed syntax errors
in TestDivision::division8 Before testrunner complains: ### Unlogged error at Tokenizer::syntaxError: Invalid number of
character ({) ### Unlogged error at Tokenizer::syntaxError: Invalid
number of character ({) ### Unlogged error at
Tokenizer::syntaxError: Invalid number of character ({) Broken since 36c7108a2821c477cf4d5eb9289281de8cd285ce commit where
test case was added.
2009-09-22 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::createLinks(): fixed typo in comment. Since commit 1c01dd64f353d6872ec4b04867393aa283423445.
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #715 (False
positive: Resource leak when exit() after if loop)
2009-09-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #702 (If you see
this, there is a bug - varid was 0)
2009-09-21 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix #706 (false
positive: invalid number of character ((), can't process file)
http://sourceforge.net/apps/trac/cppcheck/ticket/706
2009-09-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #701 (false
positive: Invalid deallocation)
http://sourceforge.net/apps/trac/cppcheck/ticket/701
2009-09-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #703 (Tokenizer:
Create links for [])
http://sourceforge.net/apps/trac/cppcheck/ticket/703
2009-09-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkbufferoverrun.cpp: astyle fix
2009-09-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Changelog: Changelog
2009-09-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* createrelease, src/cppcheck.cpp, src/main.cpp,
win_installer/cppcheck.iss, win_installer/cppcheck.wxs: Version:
1.36
2009-09-20 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Additional fix for better
simplifying array declaration. Pointed out by hyd_danmar@ in IRC. Addressed to #696
2009-09-20 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #690
(False positive: (possible error) Buffer overrun) http://sourceforge.net/apps/trac/cppcheck/ticket/690
2009-09-20 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #696 (Tokenizer:
Simplify array declaration) http://sourceforge.net/apps/trac/cppcheck/ticket/696
2009-09-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix #667
(Preprocessor does not handle macro inside macro correctly)
http://sourceforge.net/apps/trac/cppcheck/ticket/667
2009-09-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp, test/testtokenize.cpp: astyle fix
2009-09-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h, src/tokenize.cpp, test/testother.cpp: Fixed #673
(False positive: null pointer dereference when dynamic cast is used)
2009-09-19 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, src/token.h: Token::stringifyList(): removed const
modifier from parameter. const useless in this case because argument passed by value. No functional change.
2009-09-19 Slava Semushin <php-coder@altlinux.ru>
* test/testtokenize.cpp: test/testtokenize.cpp: refactoring code. - introduce and use simplifyKnownVariables() function - don't append leading space to result string with tokens No functional change.
2009-09-19 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.h: Preprocessor: document that removeComments()
may throws exception. No code change.
2009-09-19 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #688 (False positive in error category
when --all is used)
2009-09-18 Vesa Pikki <spyree@gmail.com>
* gui/checkthread.cpp: Fixed ticket#687. Thread state is now
initialized to "Ready".
2009-09-18 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp: Preprocessor: Skip BOM
2009-09-17 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fixed #676 (The scope of
variable can actually not be limited)
2009-09-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #677 (False
positive: Unused private function produced by class member
initialization)
2009-09-16 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fixed by #675 (false
positive: when operator is overloaded)
2009-09-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #684
(Tokenizer: (65536*72/100) incorrectly simplified to zero)
http://sourceforge.net/apps/trac/cppcheck/ticket/684
2009-09-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #671 (False
positive. Leak when loop is before exit)
2009-09-15 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testdivision.cpp: Fixed #669 (possible
style without --all + false positives)
2009-09-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testpreprocessor.cpp: TODO test case for preprocessor macro
handling
2009-09-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #658
(Assertion 'begin != __null' failed)
2009-09-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testtokenize.cpp: Fix #670 (Tokenizer:
Simplify '\0' into 0)
http://sourceforge.net/apps/trac/cppcheck/ticket/670
2009-09-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: Tokenizer: Added a simple
validation function that we can use during debugging
2009-09-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: simplifyTemplates: assert that braces and
parantheses are handled correctly
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* test/testsimplifytokens.cpp: TestSimplifyTokens::sizeof_(): don't
append leading space. No functional change.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp: Token::getStrLength(): fixed errors from valgrind. Correction for 13b2edd61e70d4d886e0cf5ba587aa8b2f9f2d3e commit.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #645
(Tokenizer::simplifyCasts() breaks link() if casts function) http://sourceforge.net/apps/trac/cppcheck/ticket/645
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* test/testtoken.cpp: TestTOKEN::getStrLength(): allocate tok
variable in stack (instead of in heap) No functional change.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp: Token::getStrLength(): use Token::strValue(). No functional change.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, src/token.h: Token::strValue(): added const
modifier. Correction for 241f585d34cb6f645d112c5e0cc54fe852c21c3b commit. No functional change.
2009-09-13 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyMathFunctions(): change return type to void. Correction for 241f585d34cb6f645d112c5e0cc54fe852c21c3b commit. No functional change.
2009-09-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/check.h, src/checkbufferoverrun.cpp, src/checkmemoryleak.h,
src/cppcheck.cpp, src/preprocessor.cpp, src/threadexecutor.h,
src/tokenize.cpp, src/tokenize.h: Fixed #478 (Warnings in Visual
Studio build with -W4)
2009-09-13 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: added test assertion. simplify
';alloc;exit;' to ';exit;'
2009-09-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h,
test/testsimplifytokens.cpp, test/testtoken.cpp: Fix #594 (division
by zero not detected when using atol or atof)
http://sourceforge.net/apps/trac/cppcheck/ticket/594 Simplify
atol("0") into 0 (and other atol() calls also)
2009-09-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml: Fix #662 (Command line option --append not
documented) http://sourceforge.net/apps/trac/cppcheck/ticket/662
2009-09-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: minor
refactorings
2009-09-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/checkclass.h, test/testclass.cpp: Fixed
#375 (new check: Detect when using 'this-x')
2009-09-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #518 (False
positive for leaks when function from err()-family used)
2009-09-12 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #644
(Tokenizer::simplifyComma: Wrong simplification in cast)
2009-09-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: More Fixing of
#635 (Preprocessor: remove 'asm(...)')
2009-09-11 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/mathlib.cpp, test/testmathlib.cpp: Fix ticket #632 (Mathlib
isInt() identifies "330L" as not int)
http://sourceforge.net/apps/trac/cppcheck/ticket/632
2009-09-11 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, src/preprocessor.h,
test/testpreprocessor.cpp: Simple fix for #635 (preprocessor: remove
'asm(...)')
2009-09-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: Fixed some "is
passed by value" errors from cppcheck source.
2009-09-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h: Fix #656 (Improve
const-correctness)
http://sourceforge.net/apps/trac/cppcheck/ticket/656 Applied
slightly modified patch from elfring
2009-09-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: New test case in
TestSimplifyTokens::template_default_parameter
2009-09-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.h: Fixed #650 ('possible style' pre-incrementing
error shown without --all)
2009-09-08 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/cppcheck.cpp, src/settings.cpp, src/settings.h: Settings:
Added an 'append' command line flag that allows the user to provide
extra information about functions. See ticket #260
2009-09-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp: astyle fix
2009-09-06 Slava Semushin <php-coder@altlinux.ru>
* test/testsimplifytokens.cpp: Added test cases for #487.
2009-09-06 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Refactoring: move code for
sizeof() simplification to method. Introduce and use Tokenizer::simplifySizeof() method. No functional change.
2009-09-06 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyNestedStrcat): correctly set
line numbers for new tokens. Pointed out by aggro80@ in IRC. Thanks!
2009-09-06 Kimmo Varis <kimmov@gmail.com>
* readme_gui.txt: Upate QT framework's URL to readme.
2009-09-06 Kimmo Varis <kimmov@gmail.com>
* gui/readme.txt, readme_gui.txt: Move gui's readme to root
directory to make it easier to find.
2009-09-06 Kimmo Varis <kimmov@gmail.com>
* readme.txt: Wrap long line in readme.txt.
2009-09-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Templates: Scaled
up the handling of default values for template parameters (#638)
2009-09-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix another issue
related to #647 (Crash during tokenizing (wrong) K&R function
declaration) http://sourceforge.net/apps/trac/cppcheck/ticket/647
2009-09-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fix #647 (Crash
during tokenizing (wrong) K&R function declaration)
http://sourceforge.net/apps/trac/cppcheck/ticket/647 Thanks to
undingen for providing a patch
2009-09-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* man/cppcheck.1.xml, src/cppcheck.cpp, src/cppcheckexecutor.cpp,
src/errorlogger.cpp, src/errorlogger.h, src/settings.h,
test/testcppcheck.cpp: New command line argument added --template
Fix ticket #462 (Allow using template to customize output format)
http://sourceforge.net/apps/trac/cppcheck/ticket/462
2009-09-06 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.cpp: Fixed #585 (Preprocessor: Don't check the
same configuration twice) http://sourceforge.net/apps/trac/cppcheck/ticket/585
2009-09-05 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h, test/testbufferoverrun.cpp,
test/testsimplifytokens.cpp: Fixed #629 (Tokenizer: expand nested
strcat() calls) http://sourceforge.net/apps/trac/cppcheck/ticket/629
2009-09-05 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit d9d2f53df6eb547432366937175af8f8b29c63a8 Author: Aleksey
Palazhchenko <alek.silverstone@gmail.com> Date: Fri Sep 4 22:59:25
2009 +0400
2009-09-04 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: Added a todo test case for the
getcode function
2009-09-04 Aleksey Palazhchenko <alek.silverstone@gmail.com>
* test/test.pro: Fixes in test.pro
2009-09-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* : commit 74086740172d1d9dfdaf5501a5f22aa1f48d32a6 Author: Reijo
Tomperi <aggro80@users.sourceforge.net> Date: Thu Sep 3 23:28:00
2009 +0300
2009-09-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates: remove
typename tokens
2009-09-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/filelister.cpp: Fix ticket #642 (txx (template implementation
files) not recognized/checked.)
http://sourceforge.net/apps/trac/cppcheck/ticket/642
2009-09-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: templates: Quick
fix for the problem with default value for a template argument
2009-09-02 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: Templates: Added todo testcase for
handling default values for template arguments. Related with ticket
#638
2009-09-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix ticket #637 (False
positive, Using 'memset' on struct that contains a 'std::string')
http://sourceforge.net/apps/trac/cppcheck/ticket/637
2009-09-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testclass.cpp: Added few memset test cases
2009-09-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, src/mathlib.cpp, test/testmathlib.cpp,
test/testother.cpp: Don't warn about division by zero if zero if
floating point number. Fix bug from mathlib isInt() and add test
case from which few are false positives
2009-09-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
a todo testcase to find more leaks
2009-09-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
todo testcases to find more memory leaks
2009-09-02 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp: CheckMemoryLeakInFunction: print
simplified tokens only with --debug and --verbose. Suggested by aggro80@ and approved by hyd_danmar@ in IRC.
2009-09-02 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::syntaxError(): throw exception when
debug enabled. This allows to stop test suite when first syntax error found.
2009-09-02 Slava Semushin <php-coder@altlinux.ru>
* src/mathlib.cpp, src/token.cpp, src/tokenize.cpp: Print error
messages to stderr (instead of stdout).
2009-09-02 Slava Semushin <php-coder@altlinux.ru>
* test/testmemleak.cpp: test/testmemleak.cpp(dofindleak): provide
settings object with debug enabled. This allows to print tokens when syntax error found in one of tests.
2009-09-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: fixed
a todo testcase
2009-09-01 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: memory leaks: minor fix for testcase
2009-09-01 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::syntaxError: show details about
unlogged syntax error.
2009-09-01 Slava Semushin <php-coder@altlinux.ru>
* src/checkstl.cpp, test/teststl.cpp: Fixed #631 (False positive
matching iterator which is dereferenced) http://sourceforge.net/apps/trac/cppcheck/ticket/631
2009-09-01 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix #630 (Division by zero
check only looks at first character of divisor)
http://sourceforge.net/apps/trac/cppcheck/ticket/630 Thanks to
liam_routt for finding this and providing fix for it.
2009-08-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testpreprocessor.cpp: Preprocessor: Added a todo testcase
2009-08-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkclass.cpp, src/tokenize.cpp, test/testclass.cpp: Borland
C++: Don't warn about uninitialized variables that are declared in
the __published section. These are auto-initialized
2009-08-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: astyle fix
2009-08-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Refactoring:
Refactoring of the unit testing for the CheckMemoryLeakInFunction
2009-08-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fix ticket #612 (Division
by zero not detected when zero has type suffix)
http://sourceforge.net/apps/trac/cppcheck/ticket/612
2009-08-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : commit c50f7787f90ecd44395f2fb1fae4f69ca3a37899 Author: Slava
Semushin <php-coder@altlinux.ru> Date: Sun Aug 30 18:44:23 2009
+0700
2009-08-30 Aleksey Palazhchenko <alek.silverstone@gmail.com>
* src/src.pro: Fixes in src.pro 1) Binary shouldn't be in bundle (Mac OS X). 2) Binary doesn't use Qt at all.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp: CheckBufferOverrun::checkScope(): use
Token::getStrLength(). No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/token.cpp, src/token.h, test/testtoken.cpp:
Token::getStrLength(): introduce new static method. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/preprocessor.cpp: Preprocessor::getcfgs(): use
std::list::unique() for removing duplicates. No functional change.
2009-08-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: Refactoring: Use the Token::link
2009-08-30 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #611
(Preprocessor: the configurations "A;B" and "B;A" are the same)
http://sourceforge.net/apps/trac/cppcheck/ticket/611
2009-08-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp,
test/testsimplifytokens.cpp: astyle fix
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::setVarId(): simplify code a bit. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::setVarId(): use Token::link() instead
of loop. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer::setVarId(): simplify condition. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer: don't call simplifyCalculations()
twice. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyFunctionParameters(): change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyConditionOperator(): change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::elseif(): change
return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyDoWhileAddBraces(): change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyIfAddBraces(): change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyComma():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyIfNotNull():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyIfNot():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyIfAssign():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyVarDecl():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h: Tokenizer::simplifyCasts():
change return type to void. No functional change.
2009-08-30 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h:
Tokenizer::simplifyLogicalOperators(): change return type to void. No functional change.
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #615 (Memleak
was detected in 1.32 but not in 1.33 and later)
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #414 (memory
leak in if-else construct not detected)
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
improved the simplification of 'if* ;'
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
todo test case. reduce exit better
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp:
Tokenizer: enhance simplifyNot() and rename to
simplifyLogicalOperators(). Don't replace "and" everything becuse it may be used as variable
name. Better fix for #620 Corrections for commit
eb05cf904df3b9b1e90de5dcc912817e83d422c8
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyNot): replace "if" by "else
if" and added braces. No functional change.
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp: memory leaks: fixed bug. return|else are
not part of a variable declaration
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #620
(Tokenizer: replace "and" by "&&") http://sourceforge.net/apps/trac/cppcheck/ticket/620
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyIfAssign): fixed to link()
just inserted tokens. Fixed segfault on samba sources.
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyComma): join two if bodies to
one. No functional change.
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #618
(Tokenizer: Wrong handling of enum) http://sourceforge.net/apps/trac/cppcheck/ticket/618
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp: CheckMemoryLeakInFunction(getcode): don't
call Token::Match() if varid equals to zero.
2009-08-29 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer: call createLinks() only once. Fixed simplifyIfAssign() and simplifyIfNot() to link() just inseted
tokens. No functional change.
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks:
better handling of open/close
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: astyle
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #627 (False
positive with --all, Resource leak with open())
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
handling asprintf better
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: Fixed
two todo testcases (getcode handling of asprintf)
2009-08-29 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed
a todo testcase
2009-08-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks:
Testing that asprintf is handled correctly
2009-08-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/token.cpp, src/tokenize.cpp: Fixed bug in Token::deleteThis
and optimized createLinks() calls.
2009-08-28 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/tokenize.cpp: astyle fix
2009-08-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: fixed failed assertions when running
the testrunner
2009-08-28 danmar <danmar@ab00979.kgk.ad>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #625
(cppcheck dumps core on valid code)
2009-08-28 danmar <danmar@ab00979.kgk.ad>
* src/tokenize.cpp, test/testsimplifytokens.cpp, test/testsuite.h:
Fixed #622 (Tokenizer: Calculations are wrong)
2009-08-28 danmar <danmar@ab00979.kgk.ad>
* src/filelister.cpp: Borland C++: Fixed problem in FileLister
2009-08-28 danmar <danmar@ab00979.kgk.ad>
* src/checkmemoryleak.cpp, src/mathlib.cpp: borland c++: fixed
compiler errors
2009-08-28 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkother.cpp, test/testother.cpp: Fixed #623 (False
positive: possible null pointer dereference when using the ?:
operator)
2009-08-27 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Fixed #616 (Tokenizer: simplifyTemplates()
should link() all inserted brackets) This also fixed #619. http://sourceforge.net/apps/trac/cppcheck/ticket/616
http://sourceforge.net/apps/trac/cppcheck/ticket/619
2009-08-27 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Revert "Fixed #616 (cppcheck crashes with
Eigen/src/Cholesky/CholeskyInstantiations.cpp)" This reverts commit 89f96451742fcab458650581e01895acb7e1de07. This change not fully and properly fixes a problem but just work
arround it. The root of problem is because
Tokenizer::simplifyTemplates() inserts new tokens with brackets
which not link()-ed.
2009-08-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix the last test case
from ticket #613 (array members variables are not checked in
constructor) http://sourceforge.net/apps/trac/cppcheck/ticket/613
2009-08-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor:
better handling of pragma asm and pragma endasm
2009-08-27 Slava Semushin <php-coder@altlinux.ru>
* src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #617
(False positive "buffer overrun" when sprintf() doesn't have
optional parameters) http://sourceforge.net/apps/trac/cppcheck/ticket/617
2009-08-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testsimplifytokens.cpp: added testcase for the
Tokenizer::simplifyGoto
2009-08-26 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #498
(Tokenizer: simplify 'goto')
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Fixed #616 (cppcheck crashes with
Eigen/src/Cholesky/CholeskyInstantiations.cpp) http://sourceforge.net/apps/trac/cppcheck/ticket/616
2009-08-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testclass.cpp: Fix sytax error in uninitVarArray(). This also
causes the test to fail, so changing it as TODO. See
http://sourceforge.net/apps/trac/cppcheck/ticket/613
2009-08-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testmemleak.cpp: astyle fix
2009-08-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testmemleak.cpp: Refactoring the unit tests of
TestMemleakInFunction
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp: Fixed #614 (If you see this, there is a
bug ###### Token::Match() - varid was 0) http://sourceforge.net/apps/trac/cppcheck/ticket/614
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h:
src/checkmemoryleak.{h,cpp}: minor improvements. Corrections for commit 0d6b6e840dea7a09fa3d52b98f3148a12942e067 No functional change.
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: Replace "const
unsigned int" to "unsigned int" in methods parameters. No functional change.
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/checkclass.cpp: src/checkclass.cpp: propagate Token::strAt(). No functional change.
2009-08-26 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenizer(simplifyGoto): create links for
inserted braces.
2009-08-25 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp: fixed segmentation fault
2009-08-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/tokenize.cpp, src/tokenize.h, test/testmemleak.cpp,
test/testother.cpp, test/testsimplifytokens.cpp: Fixed #498
(Tokenizer: simplify 'goto')
2009-08-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* test/testclass.cpp: TestClass: Added a testcase where a array
member variable is initialized through strcpy
2009-08-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* src/checkclass.cpp, test/testclass.cpp: Fix ticket #613 (array
members variables are not checked in constructor)
http://sourceforge.net/apps/trac/cppcheck/ticket/613 Patch from
micres
2009-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/token.h: astyle formatting
2009-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h,
test/testmemleak.cpp: Refactoring the unit testing. Wrote special
tests for CheckMemoryLeakInFunction::findleak
2009-08-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* : Merge commit 'd0k/master'
2009-08-23 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp, test/testtokenize.cpp: Fixed #603 (Tokenizer:
Incorrect simplification of < >) http://sourceforge.net/apps/trac/cppcheck/ticket/603
2009-08-23 Slava Semushin <php-coder@altlinux.ru>
* src/checkother.cpp, test/testother.cpp: Fixed #581 (Wrong usage of
div-function) http://sourceforge.net/apps/trac/cppcheck/ticket/581
2009-08-23 Slava Semushin <php-coder@altlinux.ru>
* src/tokenize.cpp: Tokenize: minimize createLinks() calls. No functional change.
2009-08-22 Benjamin Kramer <benny.kra@gmail.com>
* src/token.cpp, src/token.h: Token: inline some functions
2009-08-22 Benjamin Kramer <benny.kra@gmail.com>
* src/checkmemoryleak.cpp, src/checkmemoryleak.h: Improve
performance by using bsearch(3) instead of a std::set The function name list is already in memory so we can avoid copying
it into a std::set if we sort the list alphabetically. This way no
binary search tree has to be allocated. Before (best of 5 runs): ./testrunner > /dev/null 0,21s user 0,00s
system 95% cpu 0,221 total After (best of 5 runs): ./testrunner >
/dev/null 0,20s user 0,00s system 95% cpu 0,210 total
2009-08-22 Slava Semushin <php-coder@altlinux.ru>
* test/testother.cpp: TestOther::varScope5: fixed syntax error in
test case. Testrunner complains about "Unlogged error at
Tokenizer::syntaxError" since
74bbe945f6a55c3eb9d125b1f16566b0f10c1479 commit.