Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17570 lines (10976 sloc) 625.356 kB
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
man/manual.docbook, win_installer/productInfo.wxi: updated version
to 1.42
2010-03-09 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Add custom banner with
Cppcheck icon.
2010-03-09 Kimmo Varis <kimmov@gmail.com>
* : commit 04ff061bbb1c4d4d894196f9ebf52481d443a4ba Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Mar 9 12:41:40 2010
+0100
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: checkbufferoverrun: Refactorings
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* Makefile, cli/cli.pro, tools/dmake.cpp: dmake,qmake: temporarily
removed -Wsign-conversion
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Revert "checkbufferoverrun: Fixed
signedness compiler warnings" This reverts commit 3123de346cd959244315a687c7c8adc89ae46488. This commit caused failed tests
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: checkbufferoverrun: Fixed signedness
compiler warnings
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* createrelease: createrelease: set release mode for Makefile
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: updated by latest dmake
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* cli/cli.pro, tools/dmake.cpp: dmake, qmake: more sensitive
compiler and runtime
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: dmake: debug/release mode, more gcc
warnings
2010-03-09 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Function
constness: I don't think it's necessary to show both definition and
implementation location. I changed so only the location of the
definition is shown. This fixes #1486.
2010-03-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/check.h: Fix #1485 (cppcheck.exe 1.41 crashes when calling
with option --errorlist)
http://sourceforge.net/apps/trac/cppcheck/ticket/1485
2010-03-08 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wixproj, win_installer/readme.txt:
Installer: Put installer to Build folder and temp files to BuildTmp.
2010-03-08 Kimmo Varis <kimmov@gmail.com>
* win_installer/cli.wxs: Installer: remove unused file.
2010-03-07 Reijo Tomperi <aggro80@users.sourceforge.net>
* AUTHORS: Robert Reif added to AUTHORS file
2010-03-07 Kimmo Varis <kimmov@gmail.com>
* createrelease: Fix filepaths in release script.
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* createrelease: 1.41: Updated version in 'createrelease' script
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* cli/cppcheck.rc, cli/main.cpp, lib/cppcheck.cpp,
win_installer/productInfo.wxi: 1.41: Set version in files
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Simplify enum:
Fixed segmentation fault if code ends with enum type id
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1474
(segmentation fault of cppcheck)
2010-03-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1472 (false
positive: Data is allocated but not initialized: service)
2010-03-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp: Fix
#1469 (False positive: Resource leak when fclose() is inside while)
http://sourceforge.net/apps/trac/cppcheck/ticket/1469
2010-03-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1432 (false
positive: uninitialized variable)
2010-03-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix #1454 (False
positive: arrayindexoutofbounds, static member sharing local name)
http://sourceforge.net/apps/trac/cppcheck/ticket/1454
2010-03-05 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed
#1321 (Improve check const-function: function that is not
implemented inline can be made const)
2010-03-04 Kimmo Varis <kimmov@gmail.com>
* tools/dmake.vcproj: Add VS project file for building dmake.
2010-03-04 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1466
(false positive: Invalid number of character ({) when these macros
are defined: '')
2010-03-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: simplify templates: show debug message when
bailout out
2010-03-04 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: SimplifyTemplates: some simple refactoring so
template name is properly seen. If it's not properly handled then
bailout. Related with #1464
2010-03-03 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Partial fix #1464
(takes too long (days) to process some files) Fix template functions
that return "&T".
http://sourceforge.net/apps/trac/cppcheck/ticket/1464
2010-03-03 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: don't warn about the
suspicious string::find condition because it's not always a bug
2010-03-02 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp: Add simple debug print to make it possible to
detect cases where template simplification goes wrong.
http://sourceforge.net/apps/trac/cppcheck/ticket/1464
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Preprocessor: Removed unused function
renameMacroVariables
2010-02-28 Kimmo Varis <kimmov@gmail.com>
* gui/translationhandler.cpp: Apply patch #1408 (gui build fails
with Qt-4.4.3: QLocale) Add missing QLocale include. Patch by barsnick.
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: STL: refactorings
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/tokenize.cpp: cleanup: removed unused
variables
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/tokenize.cpp, test/testother.cpp: null
pointer: Fixed better error message for 'possible null pointer' +
removed redundant check in our Tokenizer.
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: suspicious condition when
using std::find
2010-02-28 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: STL if find: check given severity
2010-02-27 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1453
(possible infinite loop processing GNU Go's engine/montecarlo.c)
http://sourceforge.net/apps/trac/cppcheck/ticket/1453
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* test/teststl.cpp: STL: suspicious conditions when using find.
Added ok testcases and assert that no error message is written
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: STL:
suspicious condition when using find on strings and containers
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi: Installer: Fix path to gui executable.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Remove tabs from project file.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro: GUI: Build to similar folders than cli in Windows. This makes it easier to handle build files and manage installer.
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1439 (false
positive: memory leak when using realloc)
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, lib/tokenize.cpp: Refactoring error messages
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj: Resource compiler still got unnecessary
precompiler defines.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi: Installer: Fix cli executable path.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, test/test.vcproj: Move build products to
Build and BuildTmp folders. This avoids polluting source folders with created/temp files. Also
makes it easier for installer to pick files from consistently named
folders.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, test/test.vcproj: Projfiles: Fix preprocessor
definitions.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* test/test.vcproj: Projfiles: fix test project include paths.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj: Projfiles: Fix include paths - remove
unneeded paths.
2010-02-27 Kimmo Varis <kimmov@gmail.com>
* cli/cppcheck.vcproj, test/test.vcproj: Projfiles: Use $IntDir and
$OutDir as paths where applicable. Try to also keep outdir clean of unnecessary files and direct most
of build- time files to intdir.
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp: Fixed #1448 (Trying to check Unicode file
prints confusing error)
2010-02-27 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1456 (PATCH:
Variable hides typedef with same name false positive)
2010-02-26 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1397 (false
positive: Memory leak in while loop)
2010-02-26 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1455
(Preprocessor: Wrong line number in "No pair for character" error)
http://sourceforge.net/apps/trac/cppcheck/ticket/1455
2010-02-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1456 (PATCH:
Variable hides typedef with same name false positive)
2010-02-26 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1457 (PATCH:
Variable hides enumerator with same name false negative)
2010-02-26 Kimmo Varis <kimmov@gmail.com>
* lib/cppcheck.cpp: Fix comment.
2010-02-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testother.cpp: Add TODO test case for #1444 (inline
suppression suppress all errors of the same type in a function)
http://sourceforge.net/apps/trac/cppcheck/ticket/1444
2010-02-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Add TODO test cases for #1454 (False
positive: arrayindexoutofbounds, static member sharing local name)
http://sourceforge.net/apps/trac/cppcheck/ticket/1454
2010-02-25 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Cleanup test/testtokenize.cpp a bit by
putting duplicate code into a function.
2010-02-25 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1452
(Simplify goto better)
2010-02-25 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1451 (false
positive: operator = should return reference to self)
2010-02-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1445
(segfault in Tokenizer::simplifyRedundantParanthesis())
2010-02-24 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testsimplifytokens.cpp, tools/dmake.cpp: Add TODO test case
for #1452 (Simplify goto better)
http://sourceforge.net/apps/trac/cppcheck/ticket/1452
2010-02-24 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1449
(segmentation fault of cppcheck)
2010-02-23 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1434 (###
Internal error in Cppcheck. Please report it.)
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* : commit 5254822bedb2d18341542fc1947dd2768fbbf068 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Feb 23 21:27:01 2010
+0100
2010-02-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp: Attempt to fix: #1425: -I doesn't work
properly in Windows
http://sourceforge.net/apps/trac/cppcheck/ticket/1425
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* cli/CMakeLists.txt, test/CMakeLists.txt: removed some more cmake
files
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* tools/Makefile: tools/Makefile: fixed so the dmake can be built
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Makefile: Readded old Makefile again
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* tools/dmake.cpp: Readded man/install to the Makefile
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme: removed cmake/scons
2010-02-23 Daniel Marjamäki <danielm77@spray.se>
* : commit 8e58cfcd3229b4dca94795f9215bea3a76be5c7d Author: Daniel
Marjamäki <danielm77@spray.se> Date: Tue Feb 23 18:14:33 2010
+0100
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Fix GUI compile error on Linux.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/CMakeLists.txt: Add htmlhelp lib to GUI's CMake file.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Update MSI installer to install
HtmlHelp manual.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.h: Remove some excessive empty lines.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts,
gui/cppcheck_nl.ts, gui/cppcheck_pl.ts, gui/cppcheck_ru.ts,
gui/cppcheck_se.ts: Update translation files.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/gui.pro, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h:
Open HTML help from Help-menu in Windows.
2010-02-23 Kimmo Varis <kimmov@gmail.com>
* gui/mainwindow.cpp: Remove some excessive empty lines.
2010-02-22 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Fixed #1442 (false
positive: getting offset instead of dereferencing a null pointer)
2010-02-21 Kimmo Varis <kimmov@gmail.com>
* readme.txt: Fix mixed EOL styles in readme.txt. Use LF for now.
2010-02-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, test/testbufferoverrun.cpp, test/testclass.cpp:
Fixed #1409 (False positive: Buffer access out-of-bounds with
strncpy and an array in typedef'ed struct)
2010-02-21 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: readme: removed 'dmake' information
2010-02-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1426 (false
positive: returning LPVOID can be const)
2010-02-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Fixed
#1396 (false positive: Resource leak)
2010-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Fixed #1430 (void foo(int nb))
2010-02-21 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp: Refactored the
CheckOther::functionVariableUsage
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp:
Tokenizer: simple simplification of array sizes
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1395 (false
positive: Possible null pointer dereference)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1424 (false
positive: unintialized variable)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1422 (false
positive: uninitialized variable)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1407 (false
positive memory leak when returning pointer to the allocated memory)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1403 (false
positive: The function can be const)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1402 (false
positive: uninitialized variable)
2010-02-20 Daniel Marjamäki <danielm77@spray.se>
* tools/dmake.cpp: astyle formatting
2010-02-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1427 (new check: check for typedef name hiding)
2010-02-20 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkmemoryleak.cpp, lib/tokenize.cpp: Borland C++: Fixed
compiler errors (operands must be same type)
2010-02-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct: SConstruct, fix compiling on systems where qt4 is not
installed
2010-02-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct: Add: 'scons ccwin32' - Cross compile win32 (cli)
in Linux
2010-02-19 Daniel Marjamäki <danielm77@spray.se>
* tools/dmake.cpp: dmake: simplified a little
2010-02-19 Daniel Marjamäki <danielm77@spray.se>
* readme.txt: updated readme.txt
2010-02-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct: SConstruct updated, help target added. Use 'scons -h'
to see help
2010-02-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct: SConstruct update: Add coverage-target and add more
gcc compiler flags
2010-02-19 Daniel Marjamäki <danielm77@spray.se>
* lib/mathlib.cpp: Refactoring: Using string::compare instead of
strncmp
2010-02-19 Daniel Marjamäki <danielm77@spray.se>
* gui/test.cpp, test/test.cxx: renamed gui/test.cpp to test/test.cxx
2010-02-18 Reijo Tomperi <aggro80@users.sourceforge.net>
* SConstruct, qt4.py: Add SConstruct and qt4.py for alternative
build system
2010-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkbufferoverrun.cpp: Refactoring CheckBufferOverrun. Use
std::string instead of const char *
2010-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testunusedvar.cpp:
astyle formatting
2010-02-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp,
test/testunusedvar.cpp: readded checks for unused variables and
unreachable code that were removed in
42c608b6f085693f9bc80bf9be9a3570f0a5bf87
2010-02-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1411 (###
Internal error in Cppcheck. Please report it.)
2010-02-17 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1405 (false
positive: operator = should return reference t
2010-02-17 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1405 (false
positive: operator = should return reference to itself)
2010-02-17 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp, test/testother.cpp: Fixed #1389 (false
positive: uninitialized variable)
2010-02-16 Moritz Barsnick <barsnick@users.sourceforge.net>
* gui/main.ui: Fixed #1334 (gui build fails)
2010-02-16 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1388 (enum token/template parameter confusion - False
positive)
2010-02-15 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1392
(Segfault in CheckBufferOverrun::checkScope)
http://sourceforge.net/apps/trac/cppcheck/ticket/1392
2010-02-14 Monika Lukow <mlukow@jpembedded.eu>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed
#1333 (Detect access out of bounds 'for (i = 100; i > 0; --i) a[i] =
0;')
2010-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp: Remove unnecessary file open.
2010-02-14 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkclass.h: astyle fix
2010-02-14 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h,
lib/checkclass.cpp, lib/checkclass.h, lib/checkheaders.cpp,
lib/checkmemoryleak.cpp, lib/checkmemoryleak.h, lib/checkother.cpp,
lib/checkother.h, lib/checkunusedfunctions.cpp, lib/filelister.cpp,
lib/filelister.h, lib/settings.cpp, lib/settings.h, lib/token.cpp,
lib/token.h, lib/tokenize.cpp, lib/tokenize.h: Refactoring: Use
std::string instead of const char *
2010-02-14 Daniel Marjamäki <danielm77@spray.se>
* cli/CMakeLists.txt: Output the cppcheck program in the base folder
2010-02-14 Daniel Marjamäki <danielm77@spray.se>
* Makefile: Removed old Makefile - we'll use CMake from now on
2010-02-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/token.cpp, lib/token.h: Added %name% pattern to Token.
Currenly same as %var%, but in the future %var% is supposed to match
only tokens that have varid != 0.
2010-02-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.h: Fix operator= warning from our own code.
2010-02-12 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkother.cpp, lib/tokenize.cpp, test/testdivision.cpp: Fix
#1385 (False positive: unsigned division)
http://sourceforge.net/apps/trac/cppcheck/ticket/1385 This also
fixes a bug in setVarId(). "unsigned int a" didn't get varid, untill
later when unsigned was simplified away.
2010-02-12 Daniel Marjamäki <danielm77@spray.se>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1382
(False positive: uninitialized variable when using assembly to
initialize variable)
2010-02-10 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1340
(False positive: Array out of bounds for re-initialised array
pointer) http://sourceforge.net/apps/trac/cppcheck/ticket/1340
2010-02-10 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1376 (Member
variable not initialized in the constructor false positive)
2010-02-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/filelister.cpp, lib/preprocessor.cpp, test/testfilelister.cpp:
Possibly fix #1369 (Internal error - double-declared enum followed
by another enum)
http://sourceforge.net/apps/trac/cppcheck/ticket/1369 Don't include
same file twice if one is a/a.h and other is a/../a/a.h
2010-02-09 Daniel Marjamäki <danielm77@spray.se>
* test/teststl.cpp: Fixed #1373 (###### If you see this, there is a
bug ######)
2010-02-09 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fix #1366 (void
Tokenizer::simplifyTemplates() --> Abort)
http://sourceforge.net/apps/trac/cppcheck/ticket/1366
2010-02-08 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed #1364 (False positive: (error) Possible
null pointer dereference)
2010-02-08 Daniel Marjamäki <danielm77@spray.se>
* lib/executionpath.cpp: Fixed #1360 (false positive:: uninitialized
class member of nested class inside a function)
2010-02-08 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testother.cpp: astyle fix
2010-02-08 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1344 (false
negative: missing const not found)
2010-02-07 Monika Lukow <mlukow@jpembedded.eu>
* lib/checkother.cpp, test/testother.cpp: Fixed #1094 (Improve
check: unusual pointer arithmetic: 'ch+str')
2010-02-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1361 (### Internal
error in Cppcheck. Please report it)
2010-02-07 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/token.cpp, lib/tokenize.cpp,
test/testtokenize.cpp: Fixed #1356 (Double-False positive:
uninitialized variable)
2010-02-07 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed bug in
setVarId. functions should never have a variable id
2010-02-07 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1362
(Internal error when using ?-operator and nested {})
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp: astyle formatting
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1346 (False
positive: Memory leak when allocated memory is stored elsewhere
inside a condition)
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1363 (false
positive: memory leak)
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: Fixed #824 (Exit code of cppcheck)
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp: fixed null pointer dereference when using
--errorlist
2010-02-06 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1352 (false
positive: uninitialized variable)
2010-02-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkstl.cpp: Borland C++: Fixed compiler error. When using
'a?b:c', Borland C++ requires that 'b' and 'c' has the same types
2010-02-06 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1355 (Fixed
enum bug when expression contain comma)
2010-02-06 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/preprocessor.cpp, test/testpreprocessor.cpp: Partial fix for
#322 (get configurations from headers that don't start at the
beginning of the file)
2010-02-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Minor fix to previous commit
2010-02-06 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testtokenize.cpp: Test case for #1356 (Double-False positive:
uninitialized variable)
2010-02-05 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix #1358
(False negative: out-of-bounds not found near return)
http://sourceforge.net/apps/trac/cppcheck/ticket/1358
2010-02-05 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed
#984 (improve output if strncpy is followed by strncat)
2010-02-05 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1351 (add
expression support to simplifyEnum)
2010-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: CheckClass::noMemset:
Refactoring so it handles more complex std template types
2010-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Class checking: Minor
refactoring when analysing memset on class
2010-02-04 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1287 (Use of memset
on struct - std template types not handled)
2010-02-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1337
(Division by zero with __alignof__())
2010-02-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1345 (Not
initialised variables warning missing in classes with dllexport)
2010-02-03 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fixed
#1342 (Superclass constructors in initializer lists are considered
unused functions when superclass has a namespace.)
2010-02-03 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1343
(simplifyTypedef doesn't support deeply nested classes)
2010-02-02 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1341 (false
positive 'uninitialized variable' when using Exception
specifications)
2010-02-01 Kimmo Varis <kimmov@gmail.com>
* man/CMakeLists.txt: CMake - build htmlhelp manual in Cygwin. I want to build htmlhelp manual for Windows with Cygwin. This is the
easiest way to create "native" manual for Windows users.
2010-02-01 Kimmo Varis <kimmov@gmail.com>
* man/CMakeLists.txt: CMake - build HTML manual in Cygwin. Latest update to Cygwin made possible to build HTML manual also in
the Cygwin. Requires latest version 4.5 of DocBook XML.
2010-02-01 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1339 (add
nested struct support to simplifyEnum and simplifyTypedef)
2010-02-01 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Reverted
4f30468c80e954c8f91e95052d777caf31a01e58. There was false positives
such as #1335 so please fix them and then re-commit.
2010-02-01 Kimmo Varis <kimmov@gmail.com>
* gui/checkthread.cpp: GUI part of ticket #1068 (GUI: stop or quit
when processing a large file).
2010-02-01 Kimmo Varis <kimmov@gmail.com>
* test/CMakeLists.txt: CMake - fix building tests for Visual Studio. Need to include lib sources directly to test project also.
2010-01-31 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1338
(simplify typedefs with global and nested namespace)
2010-01-31 Reijo Tomperi <aggro80@users.sourceforge.net>
* test/testbufferoverrun.cpp: Added test case for #1333 (Detect
access out of bounds 'for (i = 100; i > 0; --i) a[i] = 0;')
http://sourceforge.net/apps/trac/cppcheck/ticket/1333
2010-01-31 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1004 (improve check: Unintialized variable not detected when
using a reference (&))
2010-01-31 Monika Lukow <mlukow@jpembedded.eu>
* : commit 25822dff2462d00e7293fbc0793b8e3994acb1a4 Author: Monika
Lukow <mlukow@jpembedded.eu> Date: Sun Jan 31 11:44:30 2010 +0100
2010-01-31 Monika Lukow <mlukow@jpembedded.eu>
* lib/checkbufferoverrun.cpp: Fixed #1274 (false positive: Dangerous
usage of strncat)
2010-01-31 Monika Lukow <mlukow@jpembedded.eu>
* lib/checkother.cpp, test/testother.cpp: Fixed #1094 (Improve
check: unusual pointer arithmetic: 'ch+str')
2010-01-31 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, cli/CMakeLists.txt, gui/CMakeLists.txt: Make
workaround fix for ticket #1299. Since lib does not work when built as an static library, compile lib
code as part of cli/gui code.
2010-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: remove redundant assignments and
variables
2010-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Tokenizer: Remove redundant assignments and
variables
2010-01-31 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: remove
the keyword 'inline'
2010-01-31 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: fix for
multiple array definitions for a single typedef
2010-01-31 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp: Fixed #1326 (remove simplified enum definitions)
2010-01-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1331
(simplify typedef of complex arrays)
2010-01-30 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Null pointer dereference:
sending to output stream
2010-01-30 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: improved
the simplifyInitVar
2010-01-30 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp,
test/testtokenize.cpp: Fixed #1005 (improve check: nullpointer
dereference not found when it is initialized with NULL-cast)
2010-01-30 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed 1329
(simplify typedef of function pointer returning template)
2010-01-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1327 (False
positive: Redundant code: Found a statement that begins with numeric
constant)
2010-01-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/checkclass.cpp: Remove debug print
2010-01-29 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp, lib/checkclass.cpp, lib/checkmemoryleak.cpp,
lib/tokenize.cpp, lib/tokenize.h, test/testtokenize.cpp: Improved
updateClassList(), but not yet took it into use. findClassFunction
is now non-static. updateClassList usage is currently commented out
as it doesn't handle class inside a function
2010-01-29 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1319 (false
negative: missing const not found)
2010-01-29 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed const
simplification
2010-01-29 Robert Reif <reif@earthlink.net>
* test/testsuite.cpp, test/testsuite.h: Fixed #1324 (show number of
tests that don't produce the desired results)
2010-01-29 Robert Reif <reif@earthlink.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1323 (segfault with
style in CheckClass::operatorEqRetRefThis())
2010-01-29 Robert Reif <reif@earthlink.net>
* lib/preprocessor.cpp, lib/tokenize.cpp: Fixed #1325 (Segmentation
fault in simplifyTypedef due to bad preprocessing)
2010-01-29 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1326 (remove
simplified enum definitions)
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1286 (Memory
leak not detected)
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp: killerbot: Fixed #1314 (specify the files to
check in 1 input file)
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #1315 (mismatched allocation and
deallocaton not detected)
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.h, lib/checkstl.h: updated --doc output about new
checks in 1.40
2010-01-27 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: Auto variables: Improved handling of
temporaries
2010-01-27 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1316 (###
Internal error in Cppcheck. Please report it.)
2010-01-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: Auto variables: returning pointer to
temporary .c_str() data
2010-01-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1302 (False
positive: Confusion between POSIX open() and class member)
2010-01-26 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: Fixed #1278 (Confusing style
message formatting)
2010-01-26 Kimmo Varis <kimmov@gmail.com>
* CMakeLists.txt, gui/CMakeLists.txt: CMake - Build GUI also in
Cygwin if QT4 is found.
2010-01-25 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1312 (false
positive: missing const message on functions returning references)
2010-01-25 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1313
(unnamed enums not simplified properly)
2010-01-24 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1307
(Internal error with typedef in parameter list)
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: some
refactorings and minor improvements
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1238 (False
Negative : memory leak with template class)
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Tokenizer: Fixed
Tokenizer::simplifyKnownVariable bug when the variable is
re-assigned in a loop
2010-01-24 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1308 (False
positive: The function 'x' can be const for a static member
function)
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* test/testother.cpp: TestOther::uninitvar1: refactoring. splitting
up this function into multiple functions
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp: const class functions: refactorings
2010-01-24 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: const: fixed false
positive when using increment/decrement
2010-01-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/preprocessor.cpp, lib/tokenize.cpp, lib/tokenize.h: Fix some
style errors found from our own code.
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: CheckClass: The operator<
etc member functions can often be const
2010-01-23 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/cppcheck.cpp, lib/tokenize.cpp, lib/tokenize.h,
test/teststl.cpp, test/testtokenize.cpp: Fix #1279 (Change error
message: Invalid number of character ({). Can't process file.)
http://sourceforge.net/apps/trac/cppcheck/ticket/1279
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkstl.cpp, test/teststl.cpp: STL: fixed false positive when
using erase
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1301 (False
positive: Data is allocated but not initialized)
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1305 (False
positive: The function 'x' can be const when indirectly calling a
non-const member)
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1304 (False
positive: The function 'x' can be const when modifing a member)
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #1303 (False
positive: The function 'x' can be const for a constructor)
2010-01-23 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.cpp, lib/checkautovariables.h,
test/testautovariables.cpp: New Check: Detect return of invalid
reference
2010-01-23 Duraffort <ivoire@dinauz.org>
* gui/CMakeLists.txt: Do not build the gui if Qt4 headers are not
present.
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* Makefile, tools/dmake.cpp: Revert "removed tools/dmake and
Makefile. Please use cmake from now on." This reverts commit cfacd5fe1014d3fac2cf617f9f9a32ad5c92f561.
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: only run
CheckClass::checkConst if style checking is on
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Partial
fix for #13 - detect simple cases of member functions that can be
const
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: detect when function
pointer that is null is used
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/checkother.cpp, test/testother.cpp: Report when using
uninitialized function pointer
2010-01-23 Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Function pointers:
re-enabled the simplifyFunctionPointers
2010-01-22 Daniel Marjamäki <danielm77@spray.se>
* Makefile, tools/dmake.cpp: removed tools/dmake and Makefile.
Please use cmake from now on.
2010-01-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1298
((error) ### Internal error in Cppcheck. Please report it. (typedef
in fun proto))
2010-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp:
Fixed #1276 (False Uninitialized variable when using goto)
2010-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, lib/checkclass.h, lib/checkstl.h: doxygen and
minor refactorings
2010-01-22 Daniel Marjamäki <danielm77@spray.se>
* lib/checkclass.cpp, test/testclass.cpp: Fixed #643 (Member
variable not initialized not detected if any unknown function
called)
2010-01-22 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1297
(typedef causes internal error in vlc/modules/access/imem.c)
2010-01-21 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1290 (1.40:
Internal error)
2010-01-21 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1273 (scope of
variable limited not detected in latest versions)
2010-01-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: This patch
simplifies the function pointer return type code and allows more
complex return types.
2010-01-21 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Improved typedef
simplification of function pointers
2010-01-20 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1293 (Things
to add to call_func_white_list)
2010-01-20 Daniel Marjamäki <danielm77@spray.se>
* : commit 96359b14ffb8580939a91e57bdc4e4e74b71ee51 Author: Daniel
Marjamäki <danielm77@spray.se> Date: Wed Jan 20 21:19:06 2010
+0100
2010-01-20 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Handle/simplify
function pointer typedefs
2010-01-20 Reijo Tomperi <aggro80@users.sourceforge.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #1296 (false
positive: index out of bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/1296
2010-01-19 Reijo Tomperi <aggro80@users.sourceforge.net>
* cppcheck.cbp: Updated cppcheck.cbp project file. Fixes #1292
(cppcheck.cbp needs an update (V1.40))
http://sourceforge.net/apps/trac/cppcheck/ticket/1292
2010-01-19 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1282 (False
positive for a memory leak in a simple loop)
2010-01-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, test/testmemleak.cpp: CheckMemoryLeak:
Added 'scanf' and 'sscanf' to the whitelist
2010-01-18 Daniel Marjamäki <danielm77@spray.se>
* lib/checkmemoryleak.cpp, lib/checkmemoryleak.h,
test/testmemleak.cpp: Fixed #1266 ('qsort' missing in
call_func_white_list)
2010-01-18 Daniel Marjamäki <danielm77@spray.se>
* lib/cppcheck.cpp, lib/cppcheck.h, lib/settings.cpp,
lib/settings.h: Added Cppcheck::terminate function that will
terminate the checking ASAP
2010-01-18 Robert Reif <reif@earthlink.net>
* lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1251
(tokenize typedef of reference)
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi, win_installer/cppcheck.wxs: Installer:
Add config variable for pdf manual path.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* : commit 2581c9fa9fc8974ccd150f3a4b05e89d592b6bff Author: Kimmo
Varis <kimmov@gmail.com> Date: Sun Jan 17 20:41:26 2010 +0200
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/readme.txt, win_installer/readme_InnoSetup.txt:
Installer: Create short documentation for WiX installer.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/cppcheck.wxs: Installer: Path variable for gui.exe
was missing in one place.
2010-01-17 Kimmo Varis <kimmov@gmail.com>
* win_installer/config.wxi, win_installer/cppcheck.wxs,
win_installer/productInfo.wxi: Installer: Move installer
configuration to new file.
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkother.cpp, test/testother.cpp: Fixed #1262 (cppcheck
false positives: 'Possible null pointer dereference', 'Uninitialized
variable')
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* lib/tokenize.h: Fixed doxygen error messages
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* lib/checkautovariables.h, lib/checkclass.h,
lib/checkdangerousfunctions.h, lib/checkexceptionsafety.h,
lib/checkother.h, lib/checkstl.h: Reformatting the --doc output to
work better in the wiki
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* man/manual.docbook: manual: updated version to 1.40
2010-01-17 Daniel Marjamäki <danielm77@spray.se>
* Changelog: updated Changelog
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>