Robert Reif
|
244974a61a
|
unused variables: fixed false negatives with the help of the symbol database. ticket: #2317
|
2010-12-21 08:13:40 +01:00 |
Daniel Marjamäki
|
f73cce9eca
|
Fixed #2317 ((style) Variable is allocated memory that is never used)
|
2010-12-20 18:31:16 +01:00 |
Daniel Marjamäki
|
cdc8801be0
|
Fixed #2334 (Internal class index function (no need to 'strchr'))
|
2010-12-20 18:13:26 +01:00 |
Daniel Marjamäki
|
02892499d2
|
Fixed #2286 (Variable 'ownKilled' is assigned a value that is never used)
|
2010-12-19 18:27:31 +01:00 |
Daniel Marjamäki
|
8247270f35
|
Fixed #2328 (false positive: buffer overrun (for loop with a break => the end value is not reached))
|
2010-12-19 10:39:43 +01:00 |
Daniel Marjamäki
|
afbf5a8ef3
|
Visual Studio: updated project files with qmake
|
2010-12-19 07:51:34 +01:00 |
Daniel Marjamäki
|
41ac2c252f
|
Fixed #2325 (Tokenizer: Remove for-loop if condition is false)
|
2010-12-18 21:43:12 +01:00 |
Kimmo Varis
|
67713e47bd
|
Update test.pro for using base path for included pri files.
|
2010-12-18 17:07:20 +02:00 |
Daniel Marjamäki
|
da15277675
|
QMake: added test/test.pro
|
2010-12-18 12:13:11 +01:00 |
Daniel Marjamäki
|
8ffc2b0ac6
|
Tokenizer: better handling for switch/break in the simplifyKnownVariables. Ticket: #2324
|
2010-12-18 11:14:31 +01:00 |
Daniel Marjamäki
|
f6c00fc478
|
Fixed #2323 (false positive: Buffer access out of bounds)
|
2010-12-18 10:54:36 +01:00 |
Daniel Marjamäki
|
fc9c450eed
|
Fixed #2320 (false positive: Uninitialized variable: kbuf)
|
2010-12-18 10:06:21 +01:00 |
Daniel Marjamäki
|
7eb9855104
|
Tokenizer: Remove redundant parantheses in rhs. Ticket: #2320
|
2010-12-18 09:44:58 +01:00 |
Daniel Marjamäki
|
814efb2512
|
Fixed #2313 (False Positive: memory leak)
|
2010-12-17 21:34:22 +01:00 |
Daniel Marjamäki
|
7050e9610b
|
checkmemoryleaks: added assertion for todo assertion
|
2010-12-17 21:30:02 +01:00 |
Daniel Marjamäki
|
c2335f845e
|
Fixed #2306 (False positive: array of std::string is reported as uninitialized)
|
2010-12-17 21:20:04 +01:00 |
Daniel Marjamäki
|
696550abd3
|
Fixed #2299 (false positive: possible nullpointer dereference)
|
2010-12-17 21:09:12 +01:00 |
Daniel Marjamäki
|
845d1491f9
|
Fixed #2307 (No constructor defined false positive when class is enclosed in namespace)
|
2010-12-17 20:56:46 +01:00 |
Daniel Marjamäki
|
0cebcc8fa9
|
Fixed #2300 (false positive: possible nullpointer dereference)
|
2010-12-16 21:41:50 +01:00 |
Daniel Marjamäki
|
49ee1533d9
|
Fixed #2301 (false positive: The given size 3 is mismatching)
|
2010-12-16 21:27:33 +01:00 |
Daniel Marjamäki
|
2d97189486
|
Fixed #2311 (False positive: Index out of bounds)
|
2010-12-16 20:16:59 +01:00 |
Daniel Marjamäki
|
eb0231b48f
|
astyle formatting
|
2010-12-16 20:15:22 +01:00 |
Robert Reif
|
bf136f0123
|
Fixed #2314 (False positive: (style) Template instantiation 'Foo' hides typedef with same name)
|
2010-12-16 07:48:46 +01:00 |
Ettl Martin
|
a55d7df8a3
|
test:testpreprocessor.cpp; fixed broken unit test due to wrong charcter encoding
|
2010-12-15 21:34:31 +01:00 |
Kimmo Varis
|
5ac9a7eaa7
|
Update VS2010 project files for new TinyXml location.
|
2010-12-15 22:13:31 +02:00 |
Kimmo Varis
|
cf46f2ffb9
|
Update VS2008 project files for new TinyXml location.
|
2010-12-15 22:05:05 +02:00 |
vBm
|
46a11183a5
|
Fixed some spelling mistakes
|
2010-12-15 18:45:53 +01:00 |
Daniel Marjamäki
|
5ce63a1df0
|
Fixed #2292 (segmentation fault with cppcheck 1.46 with --errorlist)
|
2010-12-13 18:17:33 +01:00 |
Daniel Marjamäki
|
2d3865a671
|
Add support for user defined rules
|
2010-12-12 11:56:22 +01:00 |
Daniel Marjamäki
|
69bacde479
|
Tokenizer: Cleanup redundant statement '; x = x + 0;'. Ticket: #2283
|
2010-12-09 19:35:52 +01:00 |
Daniel Marjamäki
|
ee083cd7a0
|
Fixed #2284 (False positive: Possible null pointer reference)
|
2010-12-09 18:17:56 +01:00 |
Daniel Marjamäki
|
3918aa4953
|
memory leaks: fixed test that I broke in my last commit
|
2010-12-09 06:13:59 +01:00 |
Daniel Marjamäki
|
cad9c5f232
|
Fixed #2285 (False Positive: memory leak)
|
2010-12-08 21:02:02 +01:00 |
Robert Reif
|
980a90071c
|
Fixed #2282 (Improve check: Function can be const)
|
2010-12-07 19:42:30 +01:00 |
Robert Reif
|
399cc63d2d
|
Symbol database: adds new tests that verify that namespaces work for the class check
|
2010-12-07 07:08:05 +01:00 |
Robert Reif
|
271d8988aa
|
Symbol database: fixed a TODO test where class variables were qualified with the class name
|
2010-12-07 07:07:36 +01:00 |
Daniel Marjamäki
|
26864dd011
|
Memory leaks: Removed the experimental checking using ExecutionPath.
|
2010-12-06 21:46:18 +01:00 |
Daniel Marjamäki
|
0b696b7079
|
Fixed #2280 (Tokenizer::setVarId : variable id not set for inner iterator)
|
2010-12-06 17:52:44 +01:00 |
Kimmo Varis
|
cdcd3c4a8f
|
Merge branch 'master' of github.com:danmar/cppcheck
|
2010-12-05 22:25:45 +02:00 |
Kimmo Varis
|
3ab725fa04
|
Add few tests for ErrorLogger.
|
2010-12-05 22:23:36 +02:00 |
Robert Reif
|
626a814241
|
Symbol database: better handling of inline functions. Ticket: #2219
|
2010-12-05 20:26:52 +01:00 |
Daniel Marjamäki
|
b25e6ff24c
|
Fixed #2279 ((style) struct of union member is never used)
|
2010-12-05 18:33:53 +01:00 |
Robert Reif
|
c20b8831ee
|
Fixed #2275 (False Positive: Member variable not initialized in the constructor)
|
2010-12-04 20:24:13 +01:00 |
Robert Reif
|
04b811b74f
|
Fixed #2273 (False Positive: Member variable not initialized in the constructor)
|
2010-12-04 17:47:00 +01:00 |
Daniel Marjamäki
|
1f1df0645b
|
Merge branch 'xml2' of github.com:danmar/cppcheck
|
2010-12-04 14:06:57 +01:00 |
Kimmo Varis
|
c6c5fc6a1c
|
Add tests for remaining CLI options.
|
2010-12-04 14:13:44 +02:00 |
Kimmo Varis
|
d14b5039ce
|
Improve 'Use x.empty() instead of x.size() for emptiness' warning.
Improve the performance warning message as discussed at dev-forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192#p926
|
2010-12-04 10:15:48 +02:00 |
Kimmo Varis
|
8369d0ddd6
|
Improving 'Wrong assignment of auto variable' error message.
Improving the error message as discussed at dev-forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192&start=0
|
2010-12-04 09:55:20 +02:00 |
Robert Reif
|
758fc85a12
|
Memory leaks: Determine that some classes are not auto-deallocated. Reduce false negatives. Ticket: #2219 and #1618
|
2010-12-04 07:29:12 +01:00 |
Daniel Marjamäki
|
93ebdca313
|
Fixed #2264 (False positive: variable assigned value that is never used)
|
2010-12-03 18:45:49 +01:00 |
Robert Reif
|
b29568c81d
|
Fixed #2271 (Tokenizer: simplify Qt signals and slots)
|
2010-12-03 08:14:09 +01:00 |
Robert Reif
|
2cd8bc74cc
|
Symbol database: The symbol database has a bug where it can find an out of line constructor when looking for a destructor. Ticket: #2272
|
2010-12-03 07:35:06 +01:00 |
Daniel Marjamäki
|
8118e4755a
|
Fixed #2263 (False positive: variable assigned value that is never used)
|
2010-12-02 20:08:05 +01:00 |
Robert Reif
|
eda4bcae29
|
Fixed #2271 (Tokenizer: simplify Qt signals and slots)
|
2010-12-02 17:41:49 +01:00 |
Daniel Marjamäki
|
af80384ae7
|
xml2: replace --xml2 with --xmlver=2. Ticket: #2106
|
2010-12-02 17:32:51 +01:00 |
Robert Reif
|
1bc8a2b6ba
|
Fixed #2172 (False positive: struct is not initialized in constructor)
|
2010-12-02 07:35:01 +01:00 |
Daniel Marjamäki
|
12c8eeff2c
|
xml2: Added experimental --xml2 result format. Ticket: #2106
|
2010-12-01 21:24:17 +01:00 |
Robert Reif
|
f12c0c7ada
|
Tokenizer: add assert(_settings) to Tokenizer to insure the tokenizer always has settings. Ticket: #2219
|
2010-12-01 18:00:55 +01:00 |
Robert Reif
|
43dcc51752
|
Fixed #2252 (segmentation fault with enable=all)
|
2010-11-30 19:52:42 +01:00 |
Robert Reif
|
f90236a183
|
Fixed #2252 (segmentation fault with enable=all)
|
2010-11-30 19:40:32 +01:00 |
Daniel Marjamäki
|
0081800a20
|
Fixed #2261 (False positive: memory leak)
|
2010-11-30 19:36:04 +01:00 |
Daniel Marjamäki
|
6761765a70
|
Fixed #2262 (False positive: Resource leak: fd)
|
2010-11-30 19:14:31 +01:00 |
Daniel Marjamäki
|
234b1e0098
|
Fixed #2265 (False positive: Uninitialized variable: path)
|
2010-11-30 18:40:36 +01:00 |
Daniel Marjamäki
|
065af5c444
|
Fixed #2251 (False positive: Possible null pointer reference)
|
2010-11-29 20:30:23 +01:00 |
Daniel Marjamäki
|
cdb685c83c
|
Fixed #2245 (False positive: Possible null pointer dereference)
|
2010-11-29 20:19:31 +01:00 |
Daniel Marjamäki
|
4de64209fb
|
Fixed #2248 (memory leak : pointer inserted in an object)
|
2010-11-29 19:53:34 +01:00 |
Kimmo Varis
|
f467e3120e
|
Improve redundant STL container condition -message.
Have separate summary and verbose messages. Se discusion at forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
|
2010-11-29 20:24:08 +02:00 |
Kimmo Varis
|
8d8945ac57
|
Improve "Assert statement 'varname' -message.
Modifying the message so that we have short message and verbose
message. As discussed in dev-forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
|
2010-11-29 20:12:21 +02:00 |
Daniel Marjamäki
|
add8584612
|
Fixed #2232 (segmentation fault of cppcheck)
|
2010-11-29 17:46:10 +01:00 |
Kimmo Varis
|
85735e382f
|
Improve the 'suspicious code sizeof sizeof' -message.
As discussed at dev-forum:
https://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=3&t=192
|
2010-11-28 14:20:46 +02:00 |
Daniel Marjamäki
|
00da0adf25
|
Fixed #2236 (False positive: Assignment to itself)
|
2010-11-28 11:48:06 +01:00 |
Daniel Marjamäki
|
095f725b3c
|
Fixed #2218 (False positive: Data is allocated but not initialized)
|
2010-11-27 17:34:54 +01:00 |
Daniel Marjamäki
|
03a92582ca
|
Fixed #2235 (false Resource leak)
|
2010-11-27 11:09:42 +01:00 |
Kimmo Varis
|
2ed14431fe
|
Ticket #2237 (Too long "short" message about iterator increment)
Improve the message for suspicious iterator increment in loop.
|
2010-11-27 10:57:26 +02:00 |
Kimmo Varis
|
837605b05b
|
Ticket #2239 (Too long "short" message about function parameter passing)
Have a proper short message for the parameter passing warning and
improve the message.
|
2010-11-27 10:46:34 +02:00 |
Kimmo Varis
|
9b4b8b2abe
|
Ticket #2238 (Improve postincrement warning message)
Have a proper short message for post ++/-- operators.
Pre ++/-- operators are usually more efficient for non-primitive types.
|
2010-11-27 10:30:57 +02:00 |
Kimmo Varis
|
87b69a10fa
|
Ticket #2240 (Improve no constructor-message).
Improve the message about missing constructor but having class
attributes. Have proper short and long messages.
|
2010-11-27 10:17:03 +02:00 |
Daniel Marjamäki
|
0a744c0c6e
|
Fixed #2234 (Variable is assigned a value that is never used)
|
2010-11-25 18:16:11 +01:00 |
Robert Reif
|
03b12c5494
|
Fixed #2230 (segmentation fault of cppcheck)
|
2010-11-25 07:43:39 +01:00 |
Robert Reif
|
08b86e0b7e
|
Fixed #2228 (False positive: Claims function can be const when it can not be (shared_ptr))
|
2010-11-25 07:15:33 +01:00 |
Daniel Marjamäki
|
fc57e06cdd
|
Fixed #2226 (segmentation fault of cppcheck)
|
2010-11-24 18:08:21 +01:00 |
Daniel Marjamäki
|
22a4dd2cc3
|
Fixed #2225 (false positive: variable is assigned a value that is never used '*(stack[0])+=arg')
|
2010-11-23 20:35:08 +01:00 |
Robert Reif
|
1842a122da
|
reuse symbol database in checkmemoryleak.cpp. ticket: #2219
|
2010-11-23 18:41:07 +01:00 |
Robert Reif
|
f1eef49fcb
|
Fixed #2221 (segmentation fault of cppcheck)
|
2010-11-23 07:31:15 +01:00 |
Daniel Marjamäki
|
9d88e17c39
|
Tokenizer::simplifyKnownVariables: Reduce debug-warnings for conditional increment
|
2010-11-21 13:40:42 +01:00 |
Daniel Marjamäki
|
ec6edaee6e
|
Buffer overflow: Added unit test that makes sure that array index out of bounds is detected inside loop. Ticket: #2199
|
2010-11-21 12:24:57 +01:00 |
Zachary Blair
|
215cb5ac8d
|
Fixed #2162 (false positive: Mutual exclusion over ||)
|
2010-11-21 00:06:43 -08:00 |
Daniel Marjamäki
|
0fe4249cfc
|
Fixed #2216 (wrong warning when C++0x keyword delete is used)
|
2010-11-20 17:20:25 +01:00 |
Daniel Marjamäki
|
e8ca76e02e
|
Fixed #2200 (MathLib: Calculation overflow)
|
2010-11-20 10:05:33 +01:00 |
Daniel Marjamäki
|
9ccc57a455
|
Fixed #2214 (Improve check: Memory leak not detected when pointer is incremented)
|
2010-11-20 08:35:23 +01:00 |
Daniel Marjamäki
|
fd64a7e683
|
Mutual exclusion: Disable this check until #2162 is fixed.
|
2010-11-20 07:43:07 +01:00 |
Daniel Marjamäki
|
66c2825b23
|
Fixed #2210 (False positive: buffer overrun (snprintf, unknown type))
|
2010-11-18 19:26:46 +01:00 |
Daniel Marjamäki
|
aa653fe42b
|
Uninitialized variables: Fixed simple undetected case for '= %var% |' and '| %var% ;'
|
2010-11-16 20:16:44 +01:00 |
Daniel Marjamäki
|
35c72db251
|
Uninitialized variables: Fixed simple undetected case for '= %var% -'
|
2010-11-16 20:07:41 +01:00 |
Daniel Marjamäki
|
cbdae275ed
|
Uninitialized variables: Fixed false negative. Ticket: #2207
|
2010-11-16 20:01:57 +01:00 |
Robert Reif
|
77a5d4e399
|
Fixed #2204 (False positive when using const class members)
|
2010-11-16 07:30:55 +01:00 |
Ettl Martin
|
379daa3f24
|
fixed: wrong testcase from my last commit im testmathlib.cpp
|
2010-11-15 22:12:25 +01:00 |
Ettl Martin
|
88cc29ea0a
|
mathlib: added todo testcases for ticket #2200
|
2010-11-15 21:03:49 +01:00 |
Daniel Marjamäki
|
29bb553782
|
Fixed #2207 (False positive: uninitialized variable (return if uninitialized))
|
2010-11-15 20:35:01 +01:00 |
Daniel Marjamäki
|
d250cb5aa2
|
Fixed #2206 (False positive: variable is assigned a value that is never used (array initializers))
|
2010-11-15 17:53:55 +01:00 |