Commit Graph

1756 Commits

Author SHA1 Message Date
Kimmo Varis c3072856df Merge branch 'master' of git@github.com:danmar/cppcheck 2009-06-07 14:47:01 +03:00
Kimmo Varis 8375d1f1ae Fix #372 (Link error with Visual C++ 2008 Express)
Add shlwapi.lib to Visual Studio project.
2009-06-07 14:46:34 +03:00
Daniel Marjamäki 97c407cfb6 Added a Changelog file that is generated automaticly by git2cl 2009-06-07 13:14:28 +02:00
Daniel Marjamäki 548f45899f Updated version to 1.33 2009-06-07 12:57:39 +02:00
Reijo Tomperi 9bac4aca75 Fix ticket #371 (Resource leak when exit() and if() uses together)
http://apps.sourceforge.net/trac/cppcheck/ticket/371
2009-06-07 09:55:20 +03:00
Daniel Marjamäki 5747133fa8 Fix #370 (Assign auto variable to parameter false positive) 2009-06-06 21:25:41 +02:00
Daniel Marjamäki a8c5526c84 Fix #368 (Leak detected when allocated memory assigned to member of structure which returned from function)
The return value of strcpy wasn't handled very well
2009-06-06 20:55:16 +02:00
Daniel Marjamäki acaa22ff6c Refactoring: Simple code cleanup 2009-06-06 14:48:48 +02:00
Kimmo Varis 9bc8fb8eec Merge branch 'master' of git@github.com:danmar/cppcheck 2009-06-06 13:09:18 +03:00
Kimmo Varis 3142a73fd9 GUI: Limit application name's max length. Limit the application name in Applications-dialog to 100 chars. Nobody should need longer names especially when the application name is shown as a menuitem. 2009-06-06 13:07:53 +03:00
Kimmo Varis db17236000 GUI: Make Settings-dialog a parent of Add Application-dialog. 2009-06-06 12:57:16 +03:00
Kimmo Varis 13eb74173c GUI: Make mainwindow parent of Settings-dialog. 2009-06-06 12:51:14 +03:00
Kimmo Varis 3e0f1a5e56 GUI: Astyle fix. 2009-06-06 12:49:59 +03:00
Daniel Marjamäki dd473b074a Fix #153 (Unsigned divide)
The "unsigned i" variable declaration wasn't handled well. So I added an "int" token.
2009-06-06 10:40:48 +02:00
Kimmo Varis 3b080e5b0b GUI: Convert native path to internal presentation.
If application path is edited by hand there can be native Windows path separators. Unify path separators to internal presentation before storing the path.
2009-06-06 11:38:48 +03:00
Kimmo Varis d0757c5797 GUI: Fix handling UTF-8 strings in sources.
Our source files are UTF-8 and as such contain some chars outside 7-bit ASCII. To handle UTF-8 correctly we must set text codec for QT to UTF-8.
2009-06-06 10:51:50 +03:00
Reijo Tomperi 9cd5558f5e Fix ticket #364 (false positive:: division by zero)
http://apps.sourceforge.net/trac/cppcheck/ticket/364
2009-06-06 00:33:13 +03:00
Reijo Tomperi 51349d126b UTF-8 fixes to GUI files
aboutdialog.* added to codeblocks projectfile
2009-06-05 23:52:05 +03:00
Reijo Tomperi 90b786b09c Fix ticket #353 (No pair for character (').)
http://apps.sourceforge.net/trac/cppcheck/ticket/353
2009-06-05 23:45:31 +03:00
Daniel Marjamäki 5193a36a6a Created an undocumented command line flag "--errorlist" that prints all messages 2009-06-05 18:34:55 +02:00
Daniel Marjamäki cfb4e91986 Fix #359 (Incorrect unused function) 2009-06-05 15:02:26 +02:00
Kimmo Varis 8470cdafc0 GUI: Fix warning from About-dialog layout. 2009-06-05 12:29:02 +03:00
Kimmo Varis 337721f740 Merge branch 'master' of git@github.com:danmar/cppcheck 2009-06-05 10:38:28 +03:00
Kimmo Varis aaba5735ed Add more generated files to gitignore.
GUI project/makefiles are ignored as they are generated by qmake.
2009-06-05 10:37:50 +03:00
Kimmo Varis 8436dbda6f Update Windows installer readme for including QT GUI and other installer improvements. 2009-06-05 10:26:19 +03:00
Daniel Marjamäki d0f3dccc6d Fixed #354 (false positive: memory leak) 2009-06-05 08:56:46 +02:00
Slava Semushin 21e0639443 Fixed ticket #360 (Teach about new(std::nothrow) form)
http://apps.sourceforge.net/trac/cppcheck/ticket/360
2009-06-05 11:03:48 +07:00
Slava Semushin 58781c761c Fixed ticket #329 (snprintf size is out of bounds when two variables in one scope with similar names)
FIXME:
Because it's fix for simplifyTokenList() test should be moved to
test/testsimplifytokens.cpp file.

http://apps.sourceforge.net/trac/cppcheck/ticket/329
2009-06-05 09:53:34 +07:00
Slava Semushin 52a8368b02 Strip redundant std::string usage from tests.
Second round: handle empty strings.

Done by command:
git grep -l ASSERT_EQUALS | xargs sed -i 's|ASSERT_EQUALS(std::string(\(".*"\)),|ASSERT_EQUALS(\1,|'

Should be no functional change.
2009-06-05 07:43:55 +07:00
Slava Semushin 6745d9b8ef Fixed ticket #358 (Local typedef flagged as uninitialized member)
http://apps.sourceforge.net/trac/cppcheck/ticket/358
2009-06-05 07:34:12 +07:00
Kimmo Varis 9b5350e369 GUI: Enable sorting in results view. 2009-06-04 17:46:19 +03:00
Kimmo Varis 0fe601a1c9 GUI: Improve Settings-dialog layout. 2009-06-04 17:20:01 +03:00
Kimmo Varis c9ceccfd3d GUI: Prevent exiting the application while checking. 2009-06-04 17:02:35 +03:00
Kimmo Varis 6d37cd0371 GUI: Add program icon to the About-dialog. 2009-06-04 16:03:36 +03:00
Kimmo Varis d5a5df7fe6 GUI: Add About-dialog.
Replace messagebox containing about-text with dialog. About-dialog must contain copyright information.
2009-06-04 15:35:41 +03:00
Kimmo Varis 62741bfd4a Remove some empty lines. 2009-06-04 13:07:21 +03:00
Kimmo Varis a574eb1012 Merge branch 'master' of git@github.com:danmar/cppcheck 2009-06-04 12:46:27 +03:00
Kimmo Varis a74faf334e Installer: Add QT GUI to Windows installer.
Add new QT GUI -component to the installer. The component installs QT libraries, GUI executable and shortcut to Start-menu.
2009-06-04 12:38:08 +03:00
Reijo Tomperi 1bb7b01a06 Fix ticket #352 (Memory leaks: Missed memory leak when "--all" is not given)
http://apps.sourceforge.net/trac/cppcheck/ticket/352
Detect memory leaks without --all when there is "alloc ; assign callfunc ;
2009-06-03 23:20:33 +03:00
Reijo Tomperi 3428584925 Fix ticket #351 (false positive::resource leak)
http://apps.sourceforge.net/trac/cppcheck/ticket/351
2009-06-03 22:02:16 +03:00
Vesa Pikki 95c9fe5d20 Added a missing include. 2009-06-03 21:42:43 +03:00
Vesa Pikki a330e9c35f Added the initial version of saving results to a file. 2009-06-03 21:18:22 +03:00
Reijo Tomperi 2a7470e986 Changed EOL character to LF in a few files. 2009-06-02 23:32:58 +03:00
Reijo Tomperi 5ca3ba59d5 astyle fix 2009-06-02 23:13:29 +03:00
Daniel Marjamäki b4c637c58b Fixed #350 (False positive: Array index out of bounds) 2009-06-02 18:56:53 +02:00
Kimmo Varis 52a0da7335 Add GUI code to doxygen output. 2009-06-02 07:01:20 +03:00
Kimmo Varis 027c31f39c GUI: Implement stopping the compare.
Threads must be exited from check cleanly even though it takes small amount of time. Just terminating thread can have unpredictable side-effects (even weird crashes).
2009-06-02 02:01:53 +03:00
Kimmo Varis e791d1c960 Fix mixed EOL style. 2009-06-02 01:39:52 +03:00
Kimmo Varis 0178fed611 GUI: Add Collapse/Expand all -items to View-menu. 2009-06-02 01:26:44 +03:00
Kimmo Varis acedcebf25 Fix mixed EOL style. 2009-06-02 00:54:21 +03:00