Daniel Marjamäki
|
81aed3fbd7
|
Tokenize: Fixed bug in Tokenize::simplifyKnownVariables
|
2010-10-10 19:27:42 +02:00 |
Daniel Marjamäki
|
e0ba626351
|
ClassInfo: Removed unused functionality
|
2010-10-08 19:43:41 +02:00 |
Daniel Marjamäki
|
a58ba811a6
|
Unit Testing: added missing TEST_CASE
|
2010-10-02 12:44:38 +02:00 |
Daniel Marjamäki
|
416f093fc3
|
Tokenizer: fixed variable declaration simplification
|
2010-09-15 19:53:47 +02:00 |
Daniel Marjamäki
|
0afd19c59b
|
Fixed #2039 (unions not handled properly, false positive about initialization)
|
2010-09-09 20:15:00 +02:00 |
Daniel Marjamäki
|
929a54e1b0
|
Fixed #2038 (memleak false positive with assignment expression in arguments)
|
2010-09-09 19:40:36 +02:00 |
Daniel Marjamäki
|
5af0d65aef
|
Fixed #2025 (iso646 c++ operators are not handled correctly)
|
2010-09-09 17:43:09 +02:00 |
Daniel Marjamäki
|
86a08b9f0e
|
unit testing: moved TestTokenizer::match tests to the TestToken
|
2010-09-07 20:42:29 +02:00 |
Daniel Marjamäki
|
3a4cda0f0d
|
Fixed #2034 (false positive: unused private function (Borland C++ __property))
|
2010-09-07 18:37:43 +02:00 |
Daniel Marjamäki
|
0f8bc429ad
|
Fixed #2021 (false positive: syntax error with -std=gnu++0x code)
|
2010-09-05 08:16:19 +02:00 |
Daniel Marjamäki
|
7d3ccb064b
|
Fixed #2020 (false positive: (error) Uninitialized variable, used in asm statement)
|
2010-09-05 08:06:37 +02:00 |
Daniel Marjamäki
|
51bc784537
|
Tokenizer: Fixed problem in Tokenizer::simplifyRedundantParanthesis when simplifying 'void delete(double num);'
|
2010-09-05 07:53:43 +02:00 |
Daniel Marjamäki
|
75fb99cee7
|
Fixed #2015 (### Internal error in Cppcheck. Please report it.)
|
2010-09-04 11:49:56 +02:00 |
Daniel Marjamäki
|
1938b8a423
|
Fixed #1976 (False Positives with unions)
|
2010-09-03 08:10:29 +02:00 |
Daniel Marjamäki
|
01b05618e5
|
Tokenizer: Fixed Cppcheck warnings
|
2010-09-02 20:51:01 +02:00 |
Daniel Marjamäki
|
eb74bfc15a
|
Fixed #2007 (False positive: member variable not initialized (Borland C++ property))
|
2010-09-01 18:10:12 +02:00 |
Daniel Marjamäki
|
55e0e435bd
|
Fixed #1959 (Do you support the oracle Pro*C ?)
|
2010-08-31 23:25:41 +03:00 |
Daniel Marjamäki
|
513826d8c2
|
Tokenizer::setVarId : don't give operator function variable id 'operator new []('. Ticket: #1997
|
2010-08-31 20:15:24 +02:00 |
Daniel Marjamäki
|
fbe11b9bb9
|
Fixed #1999 (False positive: uninitialized variable (__published variables))
|
2010-08-31 19:48:04 +02:00 |
Daniel Marjamäki
|
54e313efdc
|
Tokenizer: Added testcase that asserts that there are not internal errors when using typedefs. Ticket: #1887
|
2010-08-29 13:54:26 +02:00 |
Daniel Marjamäki
|
71453871d4
|
Fixed #1989 (false positive: Variable 'Aux13' is assigned a value that is never used)
|
2010-08-28 13:32:43 +02:00 |
Daniel Marjamäki
|
83a8879f11
|
Tokenizer::simplifyInitVar : Refactorings and fixes related to ticket #1989
|
2010-08-27 22:58:21 +02:00 |
Daniel Marjamäki
|
8eee4cf2e8
|
Fixed #1984 (false positive: syntax error in for loop (< -operator))
|
2010-08-26 23:24:01 +02:00 |
Daniel Marjamäki
|
57523574ef
|
Fixed #1985 (false positive: syntax error in try catch-block with for()-loop inside)
|
2010-08-26 23:19:18 +02:00 |
Daniel Marjamäki
|
8b18aaff25
|
Fixed #1981 (false positive: syntax error on template operator <)
|
2010-08-26 07:43:00 +02:00 |
Daniel Marjamäki
|
ca9cdf5bf5
|
Tokenizer: If syntax errors are found then don't return a token list. Ticket: #1961
|
2010-08-25 22:10:21 +02:00 |
Daniel Marjamäki
|
6c8287913c
|
Tokenizer: Detect some syntax errors when trying to use templates. Ticket: #1961
|
2010-08-25 21:57:57 +02:00 |
Robert Reif
|
4a6070d2af
|
fix 2 problems related to ticket 1976:
1. nested unnamed anonymous structures and unions were not supported.
2. declaration split up in class had bug if proceeded by access specifier.
|
2010-08-25 20:17:31 +02:00 |
Daniel Marjamäki
|
39a69b0871
|
Fixed #1970 (Internal error. CheckClass::SpaceInfo::getVarList found variable '_root' with varid 0.)
|
2010-08-23 21:22:11 +02:00 |
Daniel Marjamäki
|
f7063bed7c
|
Fixed #1967 (Tokenizer::setVarid doesn't set variable value (list of function pointers))
|
2010-08-23 20:15:02 +02:00 |
Daniel Marjamäki
|
3b716dfcc9
|
Tokenizer: Simplified the bitfields handling. This patch just looks for the bitfield signature but doesn't care about the type. I don't think any other code would have this same signature so it should be OK. We could add code to only look in structures and classes but I don't think that is necessary. Ticket: #1956
|
2010-08-23 07:29:05 +02:00 |
Robert Reif
|
cb7b508f77
|
Tokenizer::simplifyBitfields: fixed more issues. Ticket #1956
|
2010-08-22 13:25:47 +02:00 |
Robert Reif
|
3fcca23b53
|
Tokenizer: better handling of bitfields. Ticket: #1956
|
2010-08-22 09:41:22 +02:00 |
Robert Reif
|
77d634127c
|
Tokenizer: simplify DECLARE_DYNAMIC and DECLARE_DYNCREATE
|
2010-08-22 09:38:05 +02:00 |
Robert Reif
|
ac9078857e
|
Tokenizer: simplify bitfields. Ticket: #1956
|
2010-08-21 16:34:41 +02:00 |
Robert Reif
|
9c594684db
|
Tokenizer: handle DECLARE_DYNAMIC. Ticket: #1956
|
2010-08-21 07:55:14 +02:00 |
Daniel Marjamäki
|
741ce40e3d
|
Tokenizer::setVarId : fixed problem for class members
|
2010-08-20 19:28:10 +02:00 |
Daniel Marjamäki
|
cfa7b4906e
|
Symbol database: bug fixes. Ticket: #1895
|
2010-08-18 22:42:04 +02:00 |
Daniel Marjamäki
|
0934035fcf
|
Fixed #1955 (cppcheck hangs with 100% cpu load)
|
2010-08-18 22:22:14 +02:00 |
Daniel Marjamäki
|
aa00587fed
|
#1943 (segmentation fault of cppcheck (= default))
|
2010-08-17 19:50:21 +02:00 |
Daniel Marjamäki
|
64cdee62ef
|
Fixed #1942 (false positive: uninitialized variable in __asm__ statement)
|
2010-08-16 19:38:47 +02:00 |
Daniel Marjamäki
|
85acb005a2
|
Fixed #1941 (Internal error::Space Info::getVarList found variable with varid 0)
|
2010-08-16 18:51:25 +02:00 |
Daniel Marjamäki
|
fe482785aa
|
Variable Id: Fixed various bugs related to templates and bitfields. Ticket: #1928
|
2010-08-15 11:54:28 +02:00 |
Daniel Marjamäki
|
4ff9a1ac94
|
Fixed #1928 (missing varId for template class variable)
|
2010-08-14 20:50:49 +02:00 |
Daniel Marjamäki
|
a1f288d088
|
Tokenizer::setVarId : Fixed a problem when using static class members
|
2010-08-10 18:22:58 +02:00 |
Daniel Marjamäki
|
7c5219324e
|
Refactoring: Cleanup include that checkheaders reported as not needed
|
2010-07-26 22:05:51 +02:00 |
Daniel Marjamäki
|
0c65796984
|
Refactoring: Cleanup headers using checkheaders
|
2010-07-24 22:12:56 +02:00 |
Daniel Marjamäki
|
f69109fbf6
|
Fixed #1828 (### Internal error in Cppcheck. Please report it.)
|
2010-07-22 19:57:48 +02:00 |
Daniel Marjamäki
|
d4d0bc050a
|
Fixed #1865 (Tokenizer::simplifyRedundantParantheses: wrong handling of 'operator delete')
|
2010-07-19 12:06:20 +02:00 |
Daniel Marjamäki
|
61150498c4
|
Variable Id: fixed issue with function call. Ticket: #1848
|
2010-07-12 20:18:03 +02:00 |
Daniel Marjamäki
|
18a75edd20
|
Fixed #1823 (tokenize && wrong)
|
2010-07-05 22:41:02 +02:00 |
Daniel Marjamäki
|
b173d5f117
|
Fixed #1817 (False positive: Resource leak (casting))
|
2010-07-05 13:16:33 +02:00 |
Daniel Marjamäki
|
f82895c1f2
|
Fixed #1809 (false positive: uninitialized variable with nested if)
|
2010-06-26 17:15:44 +02:00 |
Robert Reif
|
539804369a
|
Fixed #1811 (false positive: Uninitialized variable)
|
2010-06-26 07:50:53 +02:00 |
Robert Reif
|
fac9f66cc0
|
Fixed #1810 (False positive: Variable 'separator' is assigned a value that is never used)
|
2010-06-22 17:07:41 +02:00 |
Daniel Marjamäki
|
85bf4b2be6
|
Fixed #1795 (false positive: nullpointer dereference (needs to improve Tokenizer::simplifyKnownVariables))
|
2010-06-19 17:54:38 +02:00 |
Daniel Marjamäki
|
82b63dd736
|
Fixed #1633 (tokenizer: simplifyKnownVariable: improved handling of arithmetic)
|
2010-06-19 14:00:45 +02:00 |
Daniel Marjamäki
|
a42273da63
|
Fixed #887 (Tokenizer: Simplify variable value after loop)
|
2010-06-15 17:56:14 +02:00 |
Daniel Marjamäki
|
cb7e9fbec1
|
Fixed #1776 (False Negative: Unitialized array)
|
2010-06-14 08:36:34 +02:00 |
Daniel Marjamäki
|
70bfa890a8
|
Fixed #1718 (Tokenizer add close braces to for loop at wrong place when if-else presents inside)
|
2010-06-13 08:00:46 +02:00 |
Daniel Marjamäki
|
e64ce2e812
|
Fixed #1781 (false positive: uninitialized variable when using asm statement in macro)
|
2010-06-09 21:28:15 +02:00 |
Robert Reif
|
4c4844b722
|
Fixed #1723 (Variable assigned value which is never used but is thrown)
|
2010-06-03 07:05:57 +02:00 |
Robert Reif
|
dc34a1b3ff
|
Fixed #1711 (Wrong typedef name shown when struct declared with __attribute__)
|
2010-05-27 18:15:42 +02:00 |
Daniel Marjamäki
|
f87eb774eb
|
Fixed #1646 (False positive: array access after return cannot have default loop value)
|
2010-05-18 19:55:23 +02:00 |
Daniel Marjamäki
|
56d176e1ce
|
Fixed #1684 (false positive: buffer access out of bounds when using extern variable declaration)
|
2010-05-16 20:21:22 +02:00 |
Daniel Marjamäki
|
d19dd2c61d
|
Fixed #1654 (False positive: Memory leak with: ( delete ( p ) , ( p ) = 0 );)
|
2010-05-07 18:37:50 +02:00 |
Daniel Marjamäki
|
c8c5f95721
|
Fixed #1651 (Tokenizer::setVarId wrong handling of return statement)
|
2010-05-06 18:40:52 +02:00 |
Daniel Marjamäki
|
af4c4cef34
|
Fixed #1646 (False positive: array access after return cannot have default loop value)
|
2010-05-05 18:29:56 +02:00 |
Daniel Marjamäki
|
612be2557b
|
Fixed #1646 (False positive: array access after return cannot have default loop value)
|
2010-05-04 20:02:47 +02:00 |
Daniel Marjamäki
|
804b2a0952
|
Fixed #1642 (Tokenizer::simplifyKnownVariables: simplify after loop)
|
2010-05-02 14:41:21 +02:00 |
Daniel Marjamäki
|
080374dc04
|
Fixed #1638 (Tokenizer::simplifyKnownVariables: removing variable declaration)
|
2010-05-01 10:09:53 +02:00 |
Robert Reif
|
99a7755218
|
tokenizer improvements: remove calling convention (#1619)
|
2010-04-24 09:40:05 +02:00 |
Zachary Blair
|
5835b2665b
|
Fixed #1169 (improve check: divsion by zero not detected when using the shift (>>) operator)
|
2010-04-23 22:59:53 -07:00 |
Daniel Marjamäki
|
c0e9a546f7
|
Refactoring: Refactoring the Settings class
|
2010-04-17 09:23:54 +02:00 |
Daniel Marjamäki
|
3fa2137ee3
|
Fixed #1596 ('Index out of bounds' false positive)
|
2010-04-15 19:09:19 +02:00 |
Robert Reif
|
176795ef95
|
Another fix for #1601 (change simplifyInitVar to split declaration from initialization)
|
2010-04-15 18:42:11 +02:00 |
Robert Reif
|
3bbb2e1d7f
|
Fixed #1601 (change simplifyInitVar to split declaration from initialization)
|
2010-04-14 19:04:16 +02:00 |
Reijo Tomperi
|
35d2a27b9c
|
Update copyright year in all source files
|
2010-04-13 22:23:17 +03:00 |
Daniel Marjamäki
|
05eb894b82
|
Unit Testing: Better unit testing of Tokenizer::setVarId. Related to ticket #1592
|
2010-04-12 21:16:47 +02:00 |
Daniel Marjamäki
|
ba2843883b
|
Added TODO testcase for ticket #1169 (improve check: divsion by zero not detected when using the shift (>>) operator)
|
2010-04-04 18:48:51 +02:00 |
Daniel Marjamäki
|
849be383e6
|
Tokenizer: tokenize 1E-2 into a single token
|
2010-04-04 08:01:05 +02:00 |
Daniel Marjamäki
|
0cad22314e
|
Reverted 'astyle fix'. Those changes are not in sync with my astyle configuration/setup.
|
2010-04-02 07:30:58 +02:00 |
Martin Ettl
|
193aa7d1d3
|
astyle fix
|
2010-04-02 02:21:53 +02:00 |
Daniel Marjamäki
|
a68d8dbc77
|
Fixed #1549 (false positive: uninitialized variable)
|
2010-03-31 20:20:51 +02:00 |
Robert Reif
|
ef57d01f7a
|
Fixed #1492 (false negatives: array index out of bounds)
|
2010-03-31 17:14:49 +02:00 |
Robert Reif
|
62d2845014
|
Fixed #1492 (false negatives: array index out of bounds)
|
2010-03-28 15:56:13 +02:00 |
Daniel Marjamäki
|
80edb4d8f4
|
Tokenizer: Simplify 'false ==' to '!'
|
2010-03-24 19:55:02 +01:00 |
Daniel Marjamäki
|
5b1b845750
|
Fixed #1504 (False positive: Cppcheck incorrectly reports that extern variable is not initialized)
|
2010-03-20 08:03:18 +01:00 |
Daniel Marjamäki
|
f687e85be5
|
Fixed #1498 (false positive: The function 'V<unsigned>::vSet' can be const)
|
2010-03-19 19:34:26 +01:00 |
Robert Reif
|
9c2248254e
|
Here is a patch that adds support for derived structs and fixes a bug that missed some nested structs. (#1493)
|
2010-03-19 16:17:25 +01:00 |
Robert Reif
|
5ea7e32bf9
|
Partial fix for #1493 (false positives: function can be const and struct or union member is never used)
|
2010-03-18 18:14:52 +01:00 |
Daniel Marjamäki
|
89719b023e
|
unit testing: made Tokenizer functions public so they can be unit tested
|
2010-03-17 22:08:02 +01:00 |
Daniel Marjamäki
|
382e41d92a
|
Fixed #1494 (Improve Tokenizer::simplifyKnownVariables to handle for loops better)
|
2010-03-14 09:57:34 +01:00 |
Reijo Tomperi
|
237fdbc653
|
Fix #1454 (False positive: arrayindexoutofbounds, static member sharing local name)
http://sourceforge.net/apps/trac/cppcheck/ticket/1454
|
2010-03-06 14:35:04 +02:00 |
Reijo Tomperi
|
13f8e10c40
|
Add TODO test cases for #1454 (False positive: arrayindexoutofbounds, static member sharing local name)
http://sourceforge.net/apps/trac/cppcheck/ticket/1454
|
2010-02-25 22:02:12 +02:00 |
Reijo Tomperi
|
23407c7f1d
|
Cleanup test/testtokenize.cpp a bit by putting duplicate code into a function.
|
2010-02-25 22:00:39 +02:00 |
Daniel Marjamäki
|
459a3bac50
|
Fixed #1396 (false positive: Resource leak)
|
2010-02-21 09:47:41 +01:00 |
Daniel Marjamäki
|
7a72932078
|
Tokenizer: simple simplification of array sizes
|
2010-02-20 18:13:09 +01:00 |
Daniel Marjamäki
|
e4cc8cf1a0
|
Fixed #1395 (false positive: Possible null pointer dereference)
|
2010-02-20 15:50:44 +01:00 |
Daniel Marjamäki
|
ccef1d6eb5
|
Fixed #1424 (false positive: unintialized variable)
|
2010-02-20 13:24:50 +01:00 |