Daniel Marjamäki
ebee7928e2
operator=: changed error message when variable is not assigned
2009-03-31 19:00:56 +02:00
Reijo Tomperi
14bdf1ee62
Fix ticket #239 (missing function implementation in namespace causes crash)
...
http://apps.sourceforge.net/trac/cppcheck/ticket/239
2009-03-31 00:59:33 +03:00
Daniel Marjamäki
263c5b9e5a
division with zero => division by zero
2009-03-29 20:27:10 +02:00
Daniel Marjamäki
d7aee72fcd
zero division: it's an error
2009-03-29 18:47:05 +02:00
Daniel Marjamäki
e45bb20f92
tokenizer: don't replace sizeof when size can't be determined ( #233 )
2009-03-29 16:36:34 +02:00
Reijo Tomperi
bd66f12e60
astyle fix
2009-03-28 23:11:03 +02:00
Gianluca Scacco
f5104d6d0a
Added new test to autovariable
2009-03-28 21:54:12 +01:00
Gianluca Scacco
c88a362893
Fixed ticket #228 : false positive with usage of an auto-variable
2009-03-28 21:47:38 +01:00
Daniel Marjamäki
6f7f8c4b4f
Tokenizer: Don't treat typedefs as variable declarations ( #234 )
2009-03-28 21:07:33 +01:00
Daniel Marjamäki
4c4f138639
Memory leaks: refactoring the TODO test cases
2009-03-28 20:50:09 +01:00
Daniel Marjamäki
447c830e8f
performance enhancement (patch submitted by davidmiller in ticket 231)
2009-03-28 20:33:55 +01:00
Nicolas Le Cam
ad7df1cbe0
Add TestMemleak::realloc4 that currently fail.
...
Change TestMemleak::if10, TestMemleak::forwhile8 and TestMemleak::realloc2 as they are currently leaking memory, mark them as TODO.
Comment out TestMemleak::forwhile9 and TestMemleak::forwhile10 as they are wrong (infinite loops).
2009-03-28 16:21:55 +01:00
Daniel Marjamäki
022dbc651e
removed TestOther::zeroDiv3 - it is not valid
2009-03-28 08:02:15 +01:00
Daniel Marjamäki
4059a2ad05
added check for zero division. The code was written by Nguyen Duong Tuan
2009-03-28 07:49:47 +01:00
Daniel Marjamäki
c0b608059a
possible null pointer dereference after a while-loop
2009-03-27 17:19:34 +01:00
Daniel Marjamäki
063f59c86c
moved checks back to style (where they used to be)
2009-03-27 15:55:14 +01:00
Daniel Marjamäki
4eeac1f364
tokenizer: fix segmentation fault if end of token list is reached
2009-03-27 15:12:49 +01:00
Daniel Marjamäki
7afccc395a
testing: new handling of todo test cases. If they use TODO_ASSERT_EQUALS instead we can detect when they are fixed
2009-03-25 18:31:40 +01:00
Daniel Marjamäki
0cfa241abb
variable id: enabled test case for function parameters
2009-03-25 18:15:49 +01:00
Daniel Marjamäki
c74da7bab9
variable id: give std::string variables an id
2009-03-25 18:10:03 +01:00
Daniel Marjamäki
8db1ac8c5d
astyle formatting
2009-03-25 07:25:33 +01:00
Daniel Marjamäki
b9f4a773b8
Buffer overrun: Added check to detect when size argument to memset is a char constant ( #213 )
2009-03-25 07:25:10 +01:00
Daniel Marjamäki
9f3634412e
simplify tokens (known variable values in conditions)
2009-03-25 07:10:17 +01:00
Gianluca Scacco
a66cf8b20f
Fixed Ticket #202 : Return of the address of an auto-variable
2009-03-24 21:53:46 +01:00
Daniel Marjamäki
afcaa30b51
Fixed ticket 216 (False positive: variable scope)
2009-03-24 20:59:56 +01:00
Daniel Marjamäki
6c1af7e5e6
register CheckClass
2009-03-24 20:47:43 +01:00
Daniel Marjamäki
586037ed11
fixed testcase
2009-03-24 20:28:44 +01:00
Daniel Marjamäki
c0039a2551
added testcase
2009-03-24 20:24:03 +01:00
Daniel Marjamäki
da0b571aee
Fixed ticket 197 (false positive: condition is always true/false)
2009-03-24 19:49:01 +01:00
Daniel Marjamäki
6580e0eb21
fixed snprintf false positive ( #210 )
2009-03-24 18:43:39 +01:00
Daniel Marjamäki
65070cc067
Simplify if conditions more.. simplifyIfAssign + simplifyIfNot
2009-03-24 18:23:21 +01:00
Daniel Marjamäki
44c952873e
Fixed ticket 205 (False positive: char variable used in bit operation)
2009-03-23 19:04:51 +01:00
Daniel Marjamäki
06776c6ac7
Fixed the testcase TestMemleak::realloc3
2009-03-23 18:34:59 +01:00
Daniel Marjamäki
7905cbc5e7
simplify tokens: move assignment out from condition (Ticket #201 )
2009-03-23 18:20:56 +01:00
Daniel Marjamäki
c9d02273b8
added todo test case for ticket 200
2009-03-22 21:42:01 +01:00
Vesa Pikki
8efae83184
Removed unnecessary options from settings dialog.
2009-03-22 20:00:06 +02:00
Daniel Marjamäki
24e22ac942
Merge branch 'master' of git@github.com:danmar/cppcheck
2009-03-22 18:58:19 +01:00
Daniel Marjamäki
a87419f59b
Fixed Ticket 199 (The error messages generated by 'unused functions' are wrong)
2009-03-22 18:57:53 +01:00
Vesa Pikki
d1e43ee6ea
Added a window title.
2009-03-22 19:51:49 +02:00
Vesa Pikki
31845a89bc
Added license text.
2009-03-22 19:47:25 +02:00
Vesa Pikki
f752cca1e2
Merge branch 'gui'
...
Conflicts:
gui/resultstree.cpp
2009-03-22 19:42:45 +02:00
Vesa Pikki
1e66d7f0e4
Merge conflicts.
2009-03-22 19:41:32 +02:00
Vesa Pikki
855dda69b7
Conflicts:
...
gui/mainwindow.cpp
gui/resultstree.cpp
2009-03-22 19:40:29 +02:00
Vesa Pikki
0953995ee3
Merged gui branch to master.
2009-03-22 19:39:44 +02:00
Vesa Pikki
55ad06a7b2
Astyle formatting.
2009-03-22 19:38:03 +02:00
Vesa Pikki
856b3cd949
Can now hide and show results based on cpp flags.
2009-03-22 19:37:26 +02:00
Vesa Pikki
592ff8ba3c
Added view menu and buttons for it.
2009-03-22 18:46:51 +02:00
Vesa Pikki
c6e8d61db3
Added recheck and clear results buttons.
2009-03-22 17:42:48 +02:00
Vesa Pikki
9eda0ce52c
astyle formatting.
2009-03-22 17:41:14 +02:00
Vesa Pikki
84853aa7f9
Added recheck and clear results buttons.
2009-03-22 17:40:47 +02:00