Robert Reif
|
54141f2e7f
|
fix #2943 (Symbol database: Wrong parsing of std::vector as base class.)
|
2011-07-27 11:23:22 -04:00 |
Daniel Marjamäki
|
2b48c7624c
|
Auto Variables: Reverted fix for #1514 because my idea was wrong. See ticket: #2944
|
2011-07-27 10:43:44 +02:00 |
Daniel Marjamäki
|
5cb701d3c1
|
Fixed #2946 (False positive: Uninitialized buffer variable (init in subfunction))
|
2011-07-27 10:34:12 +02:00 |
Daniel Marjamäki
|
4e55fb604c
|
Fixed #2945 (False positive: Uninitialized variable reading from stream)
|
2011-07-26 21:30:58 +02:00 |
Daniel Marjamäki
|
a6740200cf
|
Null pointer: Added check for 'if (fred); return fred->a;'
|
2011-07-25 21:58:00 +02:00 |
Daniel Marjamäki
|
6e14da7eba
|
Fixed #2812 (false negative: null pointer dereference when returning struct member)
|
2011-07-25 21:40:32 +02:00 |
Daniel Marjamäki
|
63a0c6ad4a
|
Fixed #2796 (uninitialized and leaving scope)
|
2011-07-25 16:35:30 +02:00 |
Daniel Marjamäki
|
2c6e4c423a
|
Fixed #2681 (False negative: Possible null pointer dereference)
|
2011-07-25 15:45:00 +02:00 |
Daniel Marjamäki
|
9a3f95613a
|
Uninitialized variables: Fixed false positive if there is assignment in return statement
|
2011-07-24 22:41:40 +02:00 |
Daniel Marjamäki
|
1bb7a1c23c
|
Fixed #2938 (Uninitialized variable not detected when part of expression)
|
2011-07-24 22:26:11 +02:00 |
Robert Reif
|
9a4447c835
|
add support for unused const local variables
|
2011-07-24 12:09:59 -04:00 |
Daniel Marjamäki
|
4e6800c474
|
Fixed #2921 (False positive: Memory leak with static pointer)
|
2011-07-24 16:08:29 +02:00 |
Daniel Marjamäki
|
1ce261e44d
|
astyle formatting
|
2011-07-24 14:54:13 +02:00 |
Simon Martin
|
3fa3a53580
|
Added testcases for #2933 (Postfix operator check fails to warn for structs)
|
2011-07-24 14:53:03 +02:00 |
Simon Martin
|
539c2e5acb
|
Fixed #2932 (segmentation fault of cppcheck ( i / i ))
|
2011-07-24 09:06:38 +02:00 |
Simon Martin
|
fc0f75fe6a
|
Preprocessor: Fix #if0 #elif todo test case. Ticket: #2619
|
2011-07-24 08:54:24 +02:00 |
Robert Reif
|
e332f0c186
|
Merge branch 'master' of github.com:danmar/cppcheck
|
2011-07-22 08:32:08 -04:00 |
Robert Reif
|
527c1aae33
|
fix #2931 (another false negative in auto variables checking when function parameter is a struct)
|
2011-07-22 08:31:31 -04:00 |
Daniel Marjamäki
|
0dd5472642
|
Tokenizer::simplifyFunctionPointer: don't simplify function call. Ticket: #2873
|
2011-07-22 07:58:53 +02:00 |
Robert Reif
|
84ca1902a5
|
fix #1514 (Improve CheckAutoVariables: assign autovariable address to effective parameter)
|
2011-07-21 22:37:36 -04:00 |
Robert Reif
|
4e64d35462
|
fix #2926 (false negative in auto variables checking when function parameter is a struct)
|
2011-07-21 22:26:42 -04:00 |
Robert Reif
|
c3c3eb74e8
|
fix #2929 (Additional Unused variable check)
|
2011-07-21 18:37:37 -04:00 |
Robert Reif
|
cc1ecccd01
|
fix #2928 (False positive (static variable misinterpreted as auto variable))
|
2011-07-21 18:20:19 -04:00 |
Daniel Marjamäki
|
fb3870071a
|
Fixed #2885 (crash of cppcheck while checking gcc-testsuite)
|
2011-07-21 16:13:35 +02:00 |
Daniel Marjamäki
|
d34a778848
|
Fixed #2848 (False positive: Memory leak when assigning and freeing from another struct)
|
2011-07-21 13:33:20 +02:00 |
Daniel Marjamäki
|
9f22d2fc6b
|
Fixed #2897 (out of bounds false positive, using reinterpret_cast)
|
2011-07-21 09:32:24 +02:00 |
Robert Reif
|
32f94a47cc
|
fix #2925 (False negative: auto variables - assigning address of array to function parameter)
|
2011-07-20 19:02:54 -04:00 |
Daniel Marjamäki
|
7e7f6eecf5
|
Fixed #2794 (Improper hanling of preprocessor directives #if defined)
|
2011-07-20 23:50:57 +02:00 |
Daniel Marjamäki
|
f0a7cc5961
|
Merge pull request #28 from bwy/master
Fix "auto_ptr assignment" false positive
|
2011-07-20 10:45:49 -07:00 |
Daniel Marjamäki
|
6ce5107e49
|
Tokenizer: Better handling of constants. Related with #2920
|
2011-07-20 09:07:47 +02:00 |
Benjamin Wolsey
|
c983608d88
|
Test false auto_ptr positive.
Assignments after a function returning an auto_ptr is declared are
detected as auto_ptr assignments!
|
2011-07-20 08:22:35 +02:00 |
Daniel Marjamäki
|
3cfef6285c
|
Fixed #2920 (False positive: Array 'arr[0]' index 0 out of bounds (array size and index are unknown))
|
2011-07-20 07:57:42 +02:00 |
Ettl Martin
|
80ed0b2ad1
|
testmathlib: improved testcoverage of mathlib
|
2011-07-19 09:10:34 +02:00 |
Daniel Marjamäki
|
b66e6e73db
|
Fixed #2917 (Problem with || in #if)
|
2011-07-18 21:44:23 +02:00 |
Robert Reif
|
76d0872c0d
|
made #2827 fix more generic by adding more ops and using pattern matching rather than string matching
|
2011-07-17 16:28:00 -04:00 |
Daniel Marjamäki
|
7dcb68f5a4
|
CheckBufferOverrun: Detect overflows when buffer is allocated with alloca
|
2011-07-17 09:35:51 +02:00 |
Daniel Marjamäki
|
481be84004
|
TestSimplifyTokens: removed copy/pasted comment
|
2011-07-17 09:14:03 +02:00 |
Robert Reif
|
4149617978
|
fix #2827 to use numeric comparisons
|
2011-07-16 23:05:35 -04:00 |
Robert Reif
|
430d22032d
|
fix #2827 condition always false or true)
|
2011-07-16 22:06:23 -04:00 |
Daniel Marjamäki
|
35938e74ad
|
Tokenizer: better handling of 'struct AB ab; sizeof(ab)'
|
2011-07-16 22:07:30 +02:00 |
Daniel Marjamäki
|
cf3ab649fb
|
Fixed #2873 (segmentation fault of cppcheck while scanning rose-compiler suite)
|
2011-07-16 19:26:11 +02:00 |
Daniel Marjamäki
|
35178cc161
|
Fixed #2912 (false positive: (portability) Assigning an integer (int/long/etc) to a pointer is not portable)
|
2011-07-16 17:08:03 +02:00 |
Daniel Marjamäki
|
c55b0ff651
|
Fixed #2871 (Define in source not set when -D is used)
|
2011-07-16 16:59:06 +02:00 |
Kimmo Varis
|
74d086d5a0
|
Add more tests for ErrorLogger.
Add tests that have two items in error location stack.
|
2011-07-16 16:04:43 +03:00 |
Robert Reif
|
76960e54a1
|
testcase for broken Token::Match %oror%|&&
|
2011-07-16 07:28:26 -04:00 |
Daniel Marjamäki
|
07a1222ac6
|
Preprocessor: fix handling of (1&&2) condition
|
2011-07-16 09:24:27 +02:00 |
Daniel Marjamäki
|
274fd2b985
|
Tokenizer: Fix minor problem with 'X&&Y'
|
2011-07-15 19:37:39 +02:00 |
Daniel Marjamäki
|
d78d8660ab
|
astyle formatting
|
2011-07-15 19:02:16 +02:00 |
John Smits
|
7f2d62cbde
|
Fixed #2882 (One-character token can be mistaken for a multiCompare)
|
2011-07-15 19:01:36 +02:00 |
Robert Reif
|
af1e51f648
|
fix some more false negatives for #2904 (Memory leak not detected when creating a new class instance)
|
2011-07-14 20:45:27 -04:00 |