Daniel Marjamäki
|
7905cbc5e7
|
simplify tokens: move assignment out from condition (Ticket #201)
|
2009-03-23 18:20:56 +01:00 |
Daniel Marjamäki
|
0a71771c6a
|
improved the Tokenizer::setVarId to handle function parameters better
|
2009-03-21 21:58:39 +01:00 |
Daniel Marjamäki
|
f37dd4f143
|
Fixed ticket 184 (Tokenizer - Simplification: Split up variable declarations)
|
2009-03-18 20:32:05 +01:00 |
Reijo Tomperi
|
2fb4c52728
|
Fixed tokenizer: "return - 2 ;" --> "return -2 ;"
|
2009-03-18 20:48:06 +02:00 |
Daniel Marjamäki
|
9c057c707b
|
tokenize negative numbers into a single token
|
2009-03-17 20:50:06 +01:00 |
Reijo Tomperi
|
2a3535c04f
|
Fix ticket #186 (runtime error when checking code that has a namespace)
http://apps.sourceforge.net/trac/cppcheck/ticket/186
|
2009-03-17 20:16:15 +02:00 |
Daniel Marjamäki
|
9fe8ae452a
|
Refactoring the code for the templates handling
|
2009-03-17 18:55:28 +01:00 |
Reijo Tomperi
|
b3dd9e699b
|
--debug flag can be used to printout token list (for development purposes)
|
2009-03-16 23:31:52 +02:00 |
Reijo Tomperi
|
21b687b301
|
Improved tokenizer to handle '#' better. Previously everything after # was combined into a single token,
now # is considered more like an alphabet, with few exceptions, e.g. "##" tokens.
|
2009-03-15 23:09:27 +02:00 |
Daniel Marjamäki
|
a6ad972aad
|
Fix Ticket 180 (Templates: Expanding member functions that are not implemented inline)
|
2009-03-15 20:03:29 +01:00 |
Daniel Marjamäki
|
9b06b22053
|
templates: replace constructor/destructor names when expanding template classes
|
2009-03-15 17:07:05 +01:00 |
Reijo Tomperi
|
ca7870af33
|
Fix ticket #177 (Tokenizer doesn't add braces around if-scope)
http://apps.sourceforge.net/trac/cppcheck/ticket/177
|
2009-03-15 14:44:57 +02:00 |
Reijo Tomperi
|
c385b3e045
|
Improve creation of link() for Token class. Tokenizer::simplifyTokenList() should now return
code where Token::link() actually works.
|
2009-03-15 01:39:45 +02:00 |
Daniel Marjamäki
|
6eadbaae04
|
templates: better handling of templates with multiple type arguments
|
2009-03-14 21:26:32 +01:00 |
Daniel Marjamäki
|
01c39daa13
|
Merge branch 'ref'
|
2009-03-13 22:39:47 +01:00 |
Daniel Marjamäki
|
daa911daeb
|
refactoring: moved 'FindClassFunction' from CheckClass to Tokenizer
|
2009-03-13 22:28:44 +01:00 |
Reijo Tomperi
|
116e940214
|
Fixed ticket #169 (Add Token::link())
http://apps.sourceforge.net/trac/cppcheck/ticket/169
|
2009-03-13 23:25:56 +02:00 |
Reijo Tomperi
|
3c4704a00c
|
Fix ticket #151 (Handling of namespaces)
http://apps.sourceforge.net/trac/cppcheck/ticket/151
|
2009-03-13 01:07:05 +02:00 |
Daniel Marjamäki
|
4c28882a12
|
expanding template classes
|
2009-03-12 22:17:42 +01:00 |
Daniel Marjamäki
|
1514e65464
|
astyle style fixes
|
2009-03-11 19:14:45 +01:00 |
Daniel Marjamäki
|
77cf2213fe
|
templates: simplify template functions with 1 type argument
|
2009-03-11 18:50:24 +01:00 |
Daniel Marjamäki
|
eac29d151c
|
made the Tokenizer::simplifyCasts more generic
|
2009-03-10 21:26:08 +01:00 |
Daniel Marjamäki
|
f8cd34198b
|
simplify casts
|
2009-03-09 19:47:21 +01:00 |
Reijo Tomperi
|
42a9eb9e53
|
Fix ticket #133 (Segmentation fault when static_cast is in for loop)
|
2009-03-05 21:32:02 +02:00 |
Daniel Marjamäki
|
8b7a5dd494
|
fixed tokenizer problem when reading char constants
|
2009-03-04 17:02:45 +00:00 |
Daniel Marjamäki
|
5c1d4f2703
|
simplify calculations better
|
2009-03-04 06:24:03 +00:00 |
Daniel Marjamäki
|
547f120ee9
|
known variables: better handling of ++ and --
|
2009-03-04 06:03:51 +00:00 |
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 |