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 |
Daniel Marjamäki
|
9d29de02d3
|
removed windows encodings
|
2009-01-23 21:34:03 +00:00 |
Daniel Marjamäki
|
42e56153a4
|
borland and visual c++ fixes
|
2009-01-23 21:28:45 +00:00 |
Reijo Tomperi
|
8d6f41397a
|
Fixing ticket #35 (Get rid of #ifdefs in our code where possible)
|
2009-01-23 20:25:13 +00:00 |
Reijo Tomperi
|
176dd41306
|
Fixed Ticket #40, Check copyright texts in files, now that we have new developers.
|
2009-01-21 20:04:20 +00:00 |
Daniel Marjamäki
|
820df7fdbd
|
code style
|
2009-01-21 07:23:15 +00:00 |
Nicolas Le Cam
|
001a4b588e
|
Fix Tokenizer::setVarId for pointers and two types variable declaration
|
2009-01-20 23:31:54 +00:00 |
Reijo Tomperi
|
6d8387914b
|
Fixes test case "file2", fixes bug with include file handling
|
2009-01-20 22:25:49 +00:00 |
Nicolas Le Cam
|
5d8f506d6b
|
Tokenizer: Remove 'unlikely' keyword in simplifyTokenList;
Don't check for it in CheckMemoryLeak.
|
2009-01-20 21:21:12 +00:00 |
Daniel Marjamäki
|
fad65663e5
|
tokenizer: tokenize ## better
|
2009-01-20 17:26:16 +00:00 |
Daniel Marjamäki
|
ea3094166c
|
code cleanup
|
2009-01-20 06:20:55 +00:00 |
Reijo Tomperi
|
de28502bb1
|
Fixed bug in line numbers and enabled test case that spots it.
|
2009-01-19 18:51:27 +00:00 |
Daniel Marjamäki
|
e90857ce0d
|
tokenizer: activated the handling of #file and #endfile
|
2009-01-19 17:49:44 +00:00 |
Reijo Tomperi
|
45c1b3c3ca
|
More work for includes, still commented out. Uncomment from tokenize.cpp and
preprocessor.cpp to take into use.
|
2009-01-18 18:59:58 +00:00 |
Daniel Marjamäki
|
a269cfc8d9
|
tokenizer: The tokenizer shouldn't handle comments nor preprocessor directives. The preprocessor will take care of
that
|
2009-01-18 08:38:25 +00:00 |