Daniel Marjamäki
|
57056bcf61
|
Fixed #2689 (False positive: Possible null pointer dereference)
|
2011-03-27 21:29:49 +02:00 |
Robert Reif
|
dd5e15b40c
|
output a debug message when a member variable is used that has a varid of 0
|
2011-03-27 14:27:14 -04:00 |
Robert Reif
|
1e1434e191
|
make member variable change detection simpler and more accurate for CheckClass::checkConst
|
2011-03-27 13:59:12 -04:00 |
Robert Reif
|
20853fe273
|
add anonymous union support to the symbol database
|
2011-03-27 13:48:41 -04:00 |
Daniel Marjamäki
|
c87037c29d
|
Fixed #2674 (False positive: possible null pointer dereference (check if pointer is null in one function, dereference it in another function))
|
2011-03-27 11:04:58 +02:00 |
Daniel Marjamäki
|
e89f6d6ec0
|
Fixed #2660 (False positive: Variable 'v' is assigned a value that is never used)
|
2011-03-27 08:19:09 +02:00 |
Daniel Marjamäki
|
3c2d3ca3a4
|
Fixed #2653 (segmentation fault of cppcheck 'x=b=0;')
|
2011-03-26 12:20:23 +01:00 |
Daniel Marjamäki
|
7d9872a134
|
Tokenizer::setVarId: Prevent that wrong varid is given when uncertain. Ticket: #2680
|
2011-03-26 10:05:07 +01:00 |
Daniel Marjamäki
|
0ff5320d19
|
CMake: There is no need for PCRE when building the lib
|
2011-03-26 09:33:21 +01:00 |
Daniel Marjamäki
|
2b1277aa64
|
Fixed #2680 (setVarId: variables with class qualification don't get varid)
|
2011-03-26 08:56:41 +01:00 |
Robert Reif
|
c27ecf5aeb
|
only break when we know we are inc/dec a member variable in CheckClass::checkConstFunc
|
2011-03-25 23:22:28 -04:00 |
Robert Reif
|
168db82fd6
|
better checking of assignment to array element in CheckClass::checkConstFunc
|
2011-03-25 23:02:13 -04:00 |
Robert Reif
|
f8e1735b0f
|
add support to CheckClass::checkConstFunc for ++/-- array elements
|
2011-03-25 22:37:32 -04:00 |
Robert Reif
|
ca50bc7850
|
move 2 CheckClass helper functions to follow externally called functions so code matches comments
|
2011-03-25 22:21:40 -04:00 |
Markus Elfring
|
9301ee28a8
|
Added CMake files
|
2011-03-25 07:14:53 +01:00 |
Robert Reif
|
710eb8ffd9
|
add support for global namespace to Tokenizer::simplifyVarDecl()
|
2011-03-24 23:06:20 -04:00 |
Robert Reif
|
fc258164cd
|
fix #2675 (false positive: syntax error)
|
2011-03-24 22:26:42 -04:00 |
Robert Reif
|
d643918761
|
symbol database: add a link from a Function to its Function Scope namd make function parameters belong to Function Scope
|
2011-03-24 22:08:18 -04:00 |
Daniel Marjamäki
|
74105f5d83
|
Fixed #2673 (false positive: memory leak (address stored in list))
|
2011-03-24 17:14:12 +01:00 |
Robert Reif
|
61e720c82b
|
fix #1288 (Use of memset on struct - nested structs not handled)
|
2011-03-23 21:58:58 -04:00 |
Robert Reif
|
cbc81e20f5
|
fix Tokenizer::simplifyVarDecl() template assignment
|
2011-03-23 21:15:49 -04:00 |
Robert Reif
|
7e3e5d628d
|
better fix for #2672 (False positive: function can be const, nested classes declared in one line)
|
2011-03-23 20:19:32 -04:00 |
Daniel Marjamäki
|
5f36ede4f5
|
Fixed #2662 (Segfault: overloaded function call function with same name)
|
2011-03-23 18:45:47 +01:00 |
Robert Reif
|
3259239dfe
|
fix #2672 (False positive: function can be const, nested classes declared in one line)
|
2011-03-23 07:48:18 -04:00 |
Robert Reif
|
14c07e988e
|
fix pointer/reference check in CheckClass::noMemset symbol database conversion
|
2011-03-22 22:29:39 -04:00 |
Robert Reif
|
5314cc02b2
|
convert remainder of CheckClass::noMemset to use symbol database
|
2011-03-22 22:23:57 -04:00 |
Robert Reif
|
468a983db1
|
use the symbol database to look up base classes in CheckClass::noMemset check
|
2011-03-22 21:24:28 -04:00 |
Robert Reif
|
d36ed9aff1
|
fix #2670 (False positive: function can be const, overloaded functions)
|
2011-03-22 19:23:36 -04:00 |
Robert Reif
|
5cdd635701
|
run astyle
|
2011-03-22 19:20:05 -04:00 |
Ettl Martin
|
8308fb72e3
|
fixed performance issues, found by selfcheck with cppcheck.
|
2011-03-22 23:15:15 +01:00 |
Ettl Martin
|
ff1de4c896
|
extended checkmemoryleak-whitelist
|
2011-03-22 22:13:29 +01:00 |
Zachary Blair
|
f89f0c748f
|
Fixed #2665 (Slightly sped-up how Token::Match() parses patterns)
|
2011-03-22 00:15:12 -07:00 |
Robert Reif
|
c043e6e1a2
|
fix
|
2011-03-21 20:57:17 -04:00 |
Robert Reif
|
dc0dfea079
|
fix invalid bitfield match and simplification that created invalid code
|
2011-03-21 20:17:14 -04:00 |
Robert Reif
|
15fc071514
|
add virtual base class support to symbol database
|
2011-03-21 20:03:41 -04:00 |
Robert Reif
|
3c5134bb21
|
run astyle
|
2011-03-21 19:59:53 -04:00 |
Ettl Martin
|
7e31c91a79
|
extended checkmemoryleak white list
|
2011-03-21 23:59:43 +01:00 |
Ettl Martin
|
38cf9f26df
|
#2667 added open(), _open() and _wopen() function to checkmemoryleak whitelist, incl. unittests;
|
2011-03-21 23:20:46 +01:00 |
Ettl Martin
|
78bcb07e19
|
#2667 added perror to checkmemoryleak white list; added unit-tests.
|
2011-03-21 17:43:26 +01:00 |
Ettl Martin
|
f242cb639e
|
#2668 fixed memory leak ( freopen() )
|
2011-03-21 15:12:21 +01:00 |
Ettl Martin
|
a975301ce4
|
#2659 added chown,chmod and chdir functions to checkmemoryleak white list; added unittests for each case;
|
2011-03-21 00:07:37 +01:00 |
Ettl Martin
|
01249d4f48
|
#2659 added access()-function to checkmemoryleak white-list and provided untittests.
|
2011-03-20 23:39:44 +01:00 |
Ettl Martin
|
7afc0978c2
|
#2659 added stat function to white list and provide unit tests.
|
2011-03-20 22:17:51 +01:00 |
Ettl Martin
|
ab6888dbfe
|
fixed ticket 2659: added lstat function to white list; provided unit-tests.
|
2011-03-20 21:52:25 +01:00 |
Robert Reif
|
2277cb6965
|
fix #2663 (False negative: function can be const (changing unknown or uninitialised variable))
|
2011-03-20 13:29:52 -04:00 |
Robert Reif
|
41d80b5c8d
|
fix #2664 (False negative: function can be const (using type from another namespace))
|
2011-03-20 12:53:37 -04:00 |
Daniel Marjamäki
|
27506b4231
|
Fixed #2661 (False positive: object destroyed immediately)
|
2011-03-20 09:55:26 +01:00 |
Daniel Marjamäki
|
2613780b85
|
Fixed #2662 (Segfault: overloaded function call function with same name)
|
2011-03-20 09:16:52 +01:00 |
Robert Reif
|
fc13854095
|
fix #1280 (Pointer to function support)
|
2011-03-19 16:21:26 -04:00 |
Robert Reif
|
92316e5745
|
fix #1987 (Internal error:: CheckClass::SpaceInfo::getVarList found variable 'element_size' with varid 0.)
|
2011-03-19 16:00:43 -04:00 |