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
Kimmo Varis
88c16ab226
Fix mixed EOL style.
2009-06-02 00:52:14 +03:00
Kimmo Varis
fb53806172
Fix mixed EOL style.
2009-06-02 00:49:15 +03:00
Kimmo Varis
a89380e93d
GUI: Include result tree icons to resource (and executable).
2009-06-02 00:06:44 +03:00
Daniel Marjamäki
6ef87e8eab
Fixed #339 (Buffer overrun not detected with pointer arrays)
...
http://apps.sourceforge.net/trac/cppcheck/ticket/339
2009-06-01 19:21:08 +02:00
Slava Semushin
37a485f4f0
Fixed ticket #349 (Add detection for resource leaks after tmpfile() usage)
...
https://apps.sourceforge.net/trac/cppcheck/ticket/349
2009-06-01 17:40:24 +07:00
Slava Semushin
09fce76e30
Fixed ticket #348 (Simplify sizeof for pointers)
...
https://apps.sourceforge.net/trac/cppcheck/ticket/348
2009-06-01 17:01:45 +07:00
Slava Semushin
3d0926936f
Tokenizer::simplifyTokenList: use SizeOfType().
...
No functional change.
2009-06-01 16:59:35 +07:00
Slava Semushin
fa5cdcb128
Tokenizer::simplifyTokenList: reduce indent.
...
No functional change.
2009-06-01 16:27:04 +07:00
Slava Semushin
dc6168b9d7
Tokenizer::simplifyTokenList: some improvements.
...
Corrections for 2de4c516e9
commit:
- declare variable near their usage
- set right position of next token
2009-06-01 03:01:10 +07:00
Slava Semushin
e5c0383594
Strip redundant std::string usage from tests.
...
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-01 02:50:25 +07:00
Reijo Tomperi
2de4c516e9
Fixed ticket #338 (Simplify sizeof for pointer arrays) by patch submitted by php-coderrr
...
http://apps.sourceforge.net/trac/cppcheck/ticket/338
2009-05-31 22:33:44 +03:00
Slava Semushin
8822cbb713
src/tokenize.cpp(unwantedWords): propagate const modifier.
...
No functional change.
2009-06-01 02:04:29 +07:00
Daniel Marjamäki
2120edb89b
Variable Id: structs must not have variable id
2009-05-31 18:46:32 +02:00
Slava Semushin
5f57e4ac2d
Merge branch 'master' of git@github.com:danmar/cppcheck
2009-05-31 20:50:55 +07:00
Slava Semushin
fb0c217c3e
src/tokenize.cpp(combineWithNext): propagate const modifier.
...
No functional change.
2009-05-31 20:48:40 +07:00
Reijo Tomperi
3fe1b50e60
Fix ticket #344 (Tokenizer crash in Windows)
...
http://apps.sourceforge.net/trac/cppcheck/ticket/344
2009-05-31 15:55:06 +03:00
Daniel Marjamäki
aba7518aeb
Fixed ticket #345 ('!' and 'not' tokens interpreted differently even though they mean the same)
2009-05-31 10:42:27 +02:00
Daniel Marjamäki
8b76301ee2
Fix ticket #318 ('..' in include will cause conflicting slashes in messages)
2009-05-31 10:12:19 +02:00
Daniel Marjamäki
375dfeab06
Fix for #341 (Functions passed as pointer not detected as used)
2009-05-31 08:01:16 +02:00
Daniel Marjamäki
2cbbc65691
cppcheck: removed the 'this may take several minutes' when checking unused functions. The check is much faster nowadays
2009-05-31 07:48:35 +02:00
Daniel Marjamäki
bf98ff85e5
Memory leaks: calling function that deallocates the memory and allocates new memory
...
https://apps.sourceforge.net/trac/cppcheck/ticket/336
2009-05-30 20:30:44 +02:00
Kimmo Varis
fba1102689
GUI: Add manifest for Windows build.
2009-05-30 20:49:17 +03:00
Kimmo Varis
997872f624
GUI: Fix building with MinGW.
...
Add shlwapi library to qmake project file. Use WCHAR instead of wchar_t.
2009-05-30 20:45:51 +03:00
Kimmo Varis
55acefa206
Make GUI work in Windows compiled with VS.
...
Since GUI is QT project it is also Unicode project. And other cppcheck code is ANSI code. So we must convert data between Unicode and ANSI when calling WinAPI functions. WinAPI functions want Unicode strings but e.g. std::string contains ANSI strings.
2009-05-30 19:46:04 +03:00
Kimmo Varis
04264db9bd
Add more generated GUI files to gitignore.
2009-05-30 19:30:40 +03:00
Daniel Marjamäki
e987b23509
Merge branch 'aa'
2009-05-30 14:26:07 +02:00
Daniel Marjamäki
d33139b2c7
Preprocessor: Added todos for better handling of UTF / extended ASCII
...
http://apps.sourceforge.net/trac/cppcheck/ticket/343
2009-05-30 14:24:55 +02:00