Daniel Marjamäki
|
53fc0ca5e6
|
Tokenizer: Refactoring. Merged two patterns into one pattern.
|
2010-11-06 15:55:37 +01:00 |
Daniel Marjamäki
|
afcc28e9ee
|
Tokenizer: Added debug warning that is shown when bailing out in simplifyKnownVariables
|
2010-11-06 15:42:41 +01:00 |
Robert Reif
|
8a379d4826
|
Fixed #2176 (Tokenizer::simplifyTypedef function pointer bug)
|
2010-11-06 15:15:50 +01:00 |
Robert Reif
|
0205498a12
|
Symbol database: improved handling of out of line functions returning function pointers
|
2010-11-06 13:31:56 +01:00 |
Robert Reif
|
c49a8a99a3
|
Fixed #2175 (Tokenizer::simplifyTypedef : wrong simplification of 'typedef float vec_t[3];')
|
2010-11-06 13:28:44 +01:00 |
Daniel Marjamäki
|
c39fbb86db
|
Tokenizer::simplifyKnownVariables : Fixed TODO test case when simplifying pointer alias in function call
|
2010-11-06 13:24:33 +01:00 |
Daniel Marjamäki
|
13c2a73d3f
|
Tokenizer::simplifyKnownVariables: Fixed TODO test case.
|
2010-11-06 11:38:58 +01:00 |
Daniel Marjamäki
|
694853249f
|
Refactoring: Added ASSERT_EQUALS above TODO_ASSERT_EQUALS to catch changes in the behaviour better
|
2010-11-06 11:08:05 +01:00 |
Daniel Marjamäki
|
e901ee2e68
|
Added TODO unit test for ticket #2175. simplify 'typedef float x[3];'
|
2010-11-06 09:31:43 +01:00 |
Daniel Marjamäki
|
dd41c74d7f
|
Fixed #2136 (false negative: array bounds)
|
2010-11-06 09:10:10 +01:00 |
Daniel Marjamäki
|
314e5b838b
|
Tokenizer: removed redundant assignments such as 'x+=0;'. Ticket: #2173
|
2010-11-06 07:23:35 +01:00 |
Robert Reif
|
431201dd67
|
Fixed #2174 (Tokenizer::simplifyFunctionReturn bug)
|
2010-11-06 06:53:09 +01:00 |
Daniel Marjamäki
|
52faadda89
|
Tokenizer: simplify calculations with zero better
|
2010-11-05 20:35:31 +01:00 |
Daniel Marjamäki
|
4fdb420454
|
Tokenizer: simplifyknownvariables, improved handling of string constant
|
2010-11-05 20:05:57 +01:00 |
Daniel Marjamäki
|
65c7b6eb8b
|
Uninitialized variables: better handling of for example 'a[1] = 1+a[2];'
|
2010-11-05 19:24:14 +01:00 |
Daniel Marjamäki
|
a90a7202cb
|
Uninitialized variables: detect usage of dead pointer: '*p += 10'
|
2010-11-05 17:04:41 +01:00 |
Daniel Marjamäki
|
95bfa50d7e
|
Null pointers: Fixed false negatives in the CheckAndDeRef checking
|
2010-11-04 21:22:29 +01:00 |
Daniel Marjamäki
|
f3bf14ba13
|
Fixed #2171 (false positive: possible nullpointer dereference)
|
2010-11-04 21:09:32 +01:00 |
Daniel Marjamäki
|
06ec4d9a84
|
GCC: Fixed compiler warnings about sign-conversion
|
2010-11-04 20:52:20 +01:00 |
Daniel Marjamäki
|
d21974777c
|
Fixed #2161 (false positive: assigned a value that is never used)
|
2010-11-04 20:16:17 +01:00 |
Daniel Marjamäki
|
0984a0be47
|
Tokenizer: Fixed 'a[b-1]+=1'
|
2010-11-04 19:38:19 +01:00 |
Daniel Marjamäki
|
fce6f11ed8
|
Tokenizer: simplify 'a[b-1]+=1' better
|
2010-11-04 19:02:54 +01:00 |
Daniel Marjamäki
|
c29940b114
|
Fixed #2166 (false positive: possible null pointer dereference)
|
2010-11-04 18:18:19 +01:00 |
Robert Reif
|
bc8ecf2aa7
|
Fixed #2168 (Segmentation fault of cppcheck)
|
2010-11-04 17:54:04 +01:00 |
Zachary Blair
|
10a4dde105
|
Fixed #2137 (Invalid mutual exclusion report)
|
2010-11-04 00:10:25 -07:00 |
Robert Reif
|
003f99da82
|
Symbol database: Fixed bug. Ticket: #2149
|
2010-11-04 06:58:37 +01:00 |
Robert Reif
|
cf0403434d
|
Symbol database: Bug fix
|
2010-11-03 20:33:07 +01:00 |
Daniel Marjamäki
|
c0100bac94
|
Tokenizer: Added TODO test case for better handling of function calls
|
2010-11-03 20:13:34 +01:00 |
Daniel Marjamäki
|
1323cbdb6d
|
Fixed #2160 (#2160 (Invalid unused variable report (style)))
|
2010-11-03 19:30:00 +01:00 |
Daniel Marjamäki
|
14803643ca
|
empty string test: Removed this check
|
2010-11-03 17:56:14 +01:00 |
Daniel Marjamäki
|
19f809c9b4
|
Unused variables: better handling of '= %var% ++'. Ticket: #2160
|
2010-11-02 20:01:12 +01:00 |
Daniel Marjamäki
|
dd4b2b8b46
|
Tokenizer: simplify 'x[0] += 1;'
|
2010-11-02 19:22:48 +01:00 |
Robert Reif
|
0fe72839d8
|
Symbol Database: Better handling of namespaces. Ticket: #2149
|
2010-11-02 18:30:57 +01:00 |
Daniel Marjamäki
|
c4452effa3
|
Tokenizer: simplify 'x.y += 1;'
|
2010-11-01 20:33:55 +01:00 |
Daniel Marjamäki
|
1b9de20f9b
|
Tokenizer: simplify 'case 0: x += y;'
|
2010-11-01 19:31:30 +01:00 |
Daniel Marjamäki
|
94fc13f0c4
|
Fixed #2159 (False positive: Null pointer dereference 'if (!x) return *y;')
|
2010-11-01 19:21:08 +01:00 |
Daniel Marjamäki
|
3fb17baa12
|
Fixed #2158 (False positive: value is not unused when using +=)
|
2010-11-01 17:36:54 +01:00 |
Kimmo Varis
|
7e33b8fb9f
|
Update VS2010 project files.
|
2010-10-31 22:59:44 +02:00 |
Daniel Marjamäki
|
285d76a413
|
Null pointers: Fixed false positive for 'x && x->y'
|
2010-10-31 19:48:58 +01:00 |
Daniel Marjamäki
|
69c6358198
|
CheckNullPointer: Reuse CheckNullPointer::isPointerDeRef in CheckNullPointer::nullPointerByDeRefAndChec
|
2010-10-31 16:07:50 +01:00 |
Daniel Marjamäki
|
32def3a3f0
|
CheckNullPointer: Reuse the CheckNullPointer::isPointerDeRef function
|
2010-10-31 15:46:08 +01:00 |
Daniel Marjamäki
|
33d3fd4716
|
CheckNullPointer: Reduced false negatives by making pattern more generic
|
2010-10-31 15:40:34 +01:00 |
Daniel Marjamäki
|
6faa4b79d3
|
CheckNullPointer: Refactoring. Created the function CheckNullPointer::isPointerDeRef that can be used to detect if a pointer is dereferenced
|
2010-10-31 15:32:19 +01:00 |
Kimmo Varis
|
c80c709d7e
|
Add missing include lines.
|
2010-10-31 13:26:23 +02:00 |
Daniel Marjamäki
|
75776b86a3
|
Visual Studio 2008: added nullpointer and uninitvar files
|
2010-10-31 11:52:55 +01:00 |
Daniel Marjamäki
|
1e866c3235
|
Visual Studio: Fixed compiler error
|
2010-10-31 11:42:45 +01:00 |
Daniel Marjamäki
|
bc283d8b99
|
Uninitialized variables: Broke out the checking into separate file
|
2010-10-31 12:31:11 +01:00 |
Daniel Marjamäki
|
df8a93bf97
|
Null pointers: Broke out the checking into separate file
|
2010-10-31 11:51:25 +01:00 |
Daniel Marjamäki
|
1ef09147f3
|
CheckOther: updated CheckOther::getErrorMessages
|
2010-10-31 10:07:35 +01:00 |
Daniel Marjamäki
|
6c19ea7b53
|
Tokenizer: Added a few comments
|
2010-10-31 09:58:44 +01:00 |