Daniel Marjamäki
|
fdaa1af694
|
removed deprecated flag 'firstMatch'
|
2009-03-01 20:02:24 +00:00 |
Reijo Tomperi
|
fc8f47145a
|
Copyrights updated
|
2009-03-01 19:52:33 +00:00 |
Daniel Marjamäki
|
c7b068c174
|
variable id: fixed so that the variable ids are assigned correctly (ticket:126)
|
2009-03-01 16:37:02 +00:00 |
Daniel Marjamäki
|
4e465f7073
|
variable declarations: don't simplify when declaring and assigning array in the same statement
|
2009-02-28 20:40:37 +00:00 |
Daniel Marjamäki
|
c3bbd603c0
|
variable id: handling 'return' and 'else' better
|
2009-02-28 20:21:48 +00:00 |
Daniel Marjamäki
|
7d9bf491ec
|
sizeof: fixed a problem with 'sizeof(varname)' but there are more to fix with it
|
2009-02-28 08:34:02 +00:00 |
Daniel Marjamäki
|
6b7b27a2e8
|
simplify known variable: don't simplify this ';i++;'
|
2009-02-27 18:25:47 +00:00 |
Daniel Marjamäki
|
f4a8bc85f2
|
simplify tokens: fixed bug when removing redundant parantheses around variable
|
2009-02-27 06:07:38 +00:00 |
Daniel Marjamäki
|
c1da4ae57d
|
simplify tokens: remove redundant parantheses around variable.. 'p = (q);'
|
2009-02-25 19:55:24 +00:00 |
Daniel Marjamäki
|
159332fde4
|
sizeof fix. classes and structs are always given the size 100. This removes false positives about mismatching size
|
2009-02-24 16:30:57 +00:00 |
Daniel Marjamäki
|
1e3047b9c2
|
simplify tokens: simplify known variable value handles ++ and -- better
|
2009-02-24 16:11:37 +00:00 |
Daniel Marjamäki
|
d8927e720d
|
constructors: don't warn about missing constructor if class only has static variable members
|
2009-02-21 13:35:55 +00:00 |
Daniel Marjamäki
|
439b8c4051
|
simplify known variables: variable used as array index
|
2009-02-20 17:27:57 +00:00 |
Daniel Marjamäki
|
f30d7db1e8
|
activated the Tokenizer::elseif functionality
|
2009-02-17 20:03:08 +00:00 |
Daniel Marjamäki
|
1043b76d31
|
Added Tokenizer::elseif for breaking up 'else if' into 'else { if ..'
|
2009-02-17 19:18:26 +00:00 |
Daniel Marjamäki
|
4aef89c311
|
tokenizer: fixed issues related to variable ids
* use setVarId in simplifyTokenList
* make sure function parameters and variables declared in for example for loops get variable ids
|
2009-02-16 17:41:33 +00:00 |
Reijo Tomperi
|
ba28c07f9d
|
astyle fix
|
2009-02-15 18:47:24 +00:00 |
Daniel Marjamäki
|
b1982b2041
|
tokenizer: improved the simplification of '*(var+num)' => 'var[num]'
|
2009-02-15 14:02:57 +00:00 |
Daniel Marjamäki
|
56d685c179
|
tokenizer: Remove redundant parantheses around number. Ticket: #105
|
2009-02-15 13:28:54 +00:00 |
Daniel Marjamäki
|
265ef0f4a5
|
Tokenizer: Fixed bug in tokenizer that removed '\' from preprocessor lines
Ticket: #106
|
2009-02-15 11:42:04 +00:00 |
Reijo Tomperi
|
1e07847ecf
|
Constant variable converting converted struct members (foo.a => foo.45) also, fixed that.
|
2009-02-14 21:33:28 +00:00 |
Reijo Tomperi
|
fba8c54758
|
Fix ticket #107 (Convert + + into + and + - into -) and add test case for it
|
2009-02-14 20:56:08 +00:00 |
Reijo Tomperi
|
997cb071b7
|
astyle fix
|
2009-02-14 18:40:04 +00:00 |
Daniel Marjamäki
|
4a1488b1a9
|
tokenizer: tokenize '++', '--' and '>>' correctly
|
2009-02-14 10:13:50 +00:00 |
Daniel Marjamäki
|
17fbab018c
|
simplify known value: insert known variable value into calculations
|
2009-02-14 06:11:37 +00:00 |
Leandro Penz
|
127a910516
|
Tokenizer: fixed ## tokenization.
|
2009-02-13 13:33:12 +00:00 |
Reijo Tomperi
|
5d3574bb03
|
Fix ticket #100 (Simplify constants simplifies leaks out from variable scope and simplifies whole file)
|
2009-02-12 19:26:42 +00:00 |
Reijo Tomperi
|
1373e14bc9
|
Fix ticket #93 (Write xml results into error stream instead of results.xml file.) and also refactor the
code to use ErrorLogger::reportErr() for all errors, for both xml and plain text. And move xml formatting
from Cppcheck to CppcheckExecutor.
|
2009-02-09 20:51:04 +00:00 |
Reijo Tomperi
|
cb5974e94e
|
Fixed issue about 4+5 being made a single token, problem appeared in recent commits.
|
2009-02-08 10:56:20 +00:00 |
Reijo Tomperi
|
c345fa6186
|
Fix ticket #89 (False positive, (style) Redundant code - begins with numeric constant (e-value))
|
2009-02-08 10:39:55 +00:00 |
Reijo Tomperi
|
da3efe8fa2
|
Improve fix made for Ticket #85 to handle strings that are in 3 parts also.
|
2009-02-08 10:25:33 +00:00 |
Reijo Tomperi
|
4305d749ff
|
Fixed ticket #88 (False positive, (style) Redundant code - begins with numeric constant)
|
2009-02-08 09:51:45 +00:00 |
Reijo Tomperi
|
200a159c67
|
Fix ticket #85 (False positive (style) Redundant code, begins with string)
|
2009-02-08 08:52:03 +00:00 |
Reijo Tomperi
|
d48671bdfb
|
Fixed more of ticket #81 (getting rid of compiler warnings)
|
2009-02-07 20:55:25 +00:00 |
Reijo Tomperi
|
798d86216a
|
Fix ticket #83 (cppcheck hangs) and add a test case for it
|
2009-02-07 19:15:10 +00:00 |
Daniel Marjamäki
|
3c289e52c5
|
memory allocation: check for mismatching size
|
2009-02-07 10:54:39 +00:00 |
Daniel Marjamäki
|
7ccb6217bf
|
remove casts: Added test case to ensure that function declarations are not reduced
|
2009-02-04 19:40:48 +00:00 |
Reijo Tomperi
|
142a21973a
|
Fixed varid is 0 bug which happened with sizeof(var[0]) and added testcase for it
|
2009-02-03 21:42:50 +00:00 |
Daniel Marjamäki
|
59f95d311b
|
tokenizer: setvarid handle variable declaration at start of token list
|
2009-02-02 19:19:36 +00:00 |
Daniel Marjamäki
|
0059ceefb9
|
Tokenizer: sizeof handling of 'sizeof(var[0])'
|
2009-02-02 18:59:32 +00:00 |
Daniel Marjamäki
|
d0af67a1b1
|
Tokenizer: setVarId improved to handle declaration at the first token
|
2009-02-02 17:35:46 +00:00 |
Daniel Marjamäki
|
27c0f786bc
|
tokenizer: improved sizeof handling
|
2009-02-02 17:27:34 +00:00 |
Daniel Marjamäki
|
b7b055e885
|
tokenizer: fixed TestTokenizer::sizeof1
|
2009-01-28 17:38:32 +00:00 |
Reijo Tomperi
|
2f7dec2fc3
|
Partial support for sizeof x, by converting it into sizeof(x). Does not handle complex structures. Closing ticket #65
|
2009-01-27 20:47:00 +00:00 |
Daniel Marjamäki
|
762ae69304
|
function parameters: fixed segmentation fault (derefence null)
|
2009-01-27 07:39:11 +00:00 |
Reijo Tomperi
|
e764cc4f95
|
Fix ticket #25 (simplify "void f(x) int x; {" into "void f(int x) {")
|
2009-01-26 22:26:50 +00:00 |
Daniel Marjamäki
|
ca0f007ca4
|
tokenizer: simplify redundant paranthesis
|
2009-01-26 16:38:08 +00:00 |
Reijo Tomperi
|
22593adeac
|
Fix ticket #57 (wrong path in error message)
|
2009-01-24 20:34:16 +00:00 |
Reijo Tomperi
|
98d7f02ebc
|
Added test case preprocessor_and_operation for ticket #55 (also fixed style from previous commit)
|
2009-01-24 18:50:09 +00:00 |
Daniel Marjamäki
|
0b95fdafb7
|
tokenizer: Added guard in case the preprocessor is mismatching
|
2009-01-24 17:15:38 +00:00 |