Slava Semushin
|
7bee0cd2df
|
Fixed ticket #390 (wrong allocation and deallocation not detected)
http://sourceforge.net/apps/trac/cppcheck/ticket/390
|
2009-06-12 20:04:58 +07:00 |
Reijo Tomperi
|
092bd79ec4
|
Fix ticket #386 (False positive (memory leak) with comma)
http://apps.sourceforge.net/trac/cppcheck/ticket/386
|
2009-06-11 00:12:26 +03:00 |
Daniel Marjamäki
|
d8f95f68c3
|
Fixed ticket #377 (False positive with "char a[]")
Updated the tokenizer so "char a[]" is tokenized into "char *a"
|
2009-06-10 19:36:00 +02:00 |
Daniel Marjamäki
|
dd473b074a
|
Fix #153 (Unsigned divide)
The "unsigned i" variable declaration wasn't handled well. So I added an "int" token.
|
2009-06-06 10:40:48 +02:00 |
Reijo Tomperi
|
9cd5558f5e
|
Fix ticket #364 (false positive:: division by zero)
http://apps.sourceforge.net/trac/cppcheck/ticket/364
|
2009-06-06 00:33:13 +03:00 |
Slava Semushin
|
58781c761c
|
Fixed ticket #329 (snprintf size is out of bounds when two variables in one scope with similar names)
FIXME:
Because it's fix for simplifyTokenList() test should be moved to
test/testsimplifytokens.cpp file.
http://apps.sourceforge.net/trac/cppcheck/ticket/329
|
2009-06-05 09:53:34 +07:00 |
Reijo Tomperi
|
3428584925
|
Fix ticket #351 (false positive::resource leak)
http://apps.sourceforge.net/trac/cppcheck/ticket/351
|
2009-06-03 22:02:16 +03:00 |
Slava Semushin
|
09fce76e30
|
Fixed ticket #348 (Simplify sizeof for pointers)
https://apps.sourceforge.net/trac/cppcheck/ticket/348
|
2009-06-01 17:01:45 +07:00 |
Slava Semushin
|
3d0926936f
|
Tokenizer::simplifyTokenList: use SizeOfType().
No functional change.
|
2009-06-01 16:59:35 +07:00 |
Slava Semushin
|
fa5cdcb128
|
Tokenizer::simplifyTokenList: reduce indent.
No functional change.
|
2009-06-01 16:27:04 +07:00 |
Slava Semushin
|
dc6168b9d7
|
Tokenizer::simplifyTokenList: some improvements.
Corrections for 2de4c516e9 commit:
- declare variable near their usage
- set right position of next token
|
2009-06-01 03:01:10 +07:00 |
Reijo Tomperi
|
2de4c516e9
|
Fixed ticket #338 (Simplify sizeof for pointer arrays) by patch submitted by php-coderrr
http://apps.sourceforge.net/trac/cppcheck/ticket/338
|
2009-05-31 22:33:44 +03:00 |
Slava Semushin
|
8822cbb713
|
src/tokenize.cpp(unwantedWords): propagate const modifier.
No functional change.
|
2009-06-01 02:04:29 +07:00 |
Daniel Marjamäki
|
2120edb89b
|
Variable Id: structs must not have variable id
|
2009-05-31 18:46:32 +02:00 |
Slava Semushin
|
5f57e4ac2d
|
Merge branch 'master' of git@github.com:danmar/cppcheck
|
2009-05-31 20:50:55 +07:00 |
Slava Semushin
|
fb0c217c3e
|
src/tokenize.cpp(combineWithNext): propagate const modifier.
No functional change.
|
2009-05-31 20:48:40 +07:00 |
Reijo Tomperi
|
3fe1b50e60
|
Fix ticket #344 (Tokenizer crash in Windows)
http://apps.sourceforge.net/trac/cppcheck/ticket/344
|
2009-05-31 15:55:06 +03:00 |
Daniel Marjamäki
|
aba7518aeb
|
Fixed ticket #345 ('!' and 'not' tokens interpreted differently even though they mean the same)
|
2009-05-31 10:42:27 +02:00 |
Reijo Tomperi
|
58eda6e978
|
Fix ticket #325 (Replace developer names in source files with AUTHORS file)
http://apps.sourceforge.net/trac/cppcheck/ticket/325
|
2009-05-30 08:48:12 +03:00 |
Reijo Tomperi
|
8876f0ee57
|
Fix ticket #342 (Simplify "if( (true) == true )")
http://apps.sourceforge.net/trac/cppcheck/ticket/342
|
2009-05-30 00:04:01 +03:00 |
Reijo Tomperi
|
a3be307c03
|
Fix bug related to ticket #330, cppcheck hanged with some files containing "(("
http://apps.sourceforge.net/trac/cppcheck/ticket/330
|
2009-05-28 23:03:36 +03:00 |
Daniel Marjamäki
|
a3990648a9
|
Tokenizer: Simplifying redundant parantheses
http://apps.sourceforge.net/trac/cppcheck/ticket/330
|
2009-05-28 19:37:39 +02:00 |
Reijo Tomperi
|
adb1ed4947
|
Fix ticket #319 (Function names are tagged as variables)
http://apps.sourceforge.net/trac/cppcheck/ticket/319
|
2009-05-27 23:34:08 +03:00 |
Daniel Marjamäki
|
ca6d927dfa
|
Fix ticket 330 (found memory leak when __builtin_expect uses)
|
2009-05-27 20:49:29 +02:00 |
Daniel Marjamäki
|
e89c03da92
|
Fix ticket 308 (cppcheck msg:: invalid number of ((). Cant process file)
|
2009-05-27 20:07:18 +02:00 |
Daniel Marjamäki
|
b9b542d05b
|
Fixed ticket #333 (tokenizer: incorrect removal of decrement/increment)
|
2009-05-25 14:21:58 +02:00 |
Daniel Marjamäki
|
2d2c0e42cc
|
Fix ticket #317 (pre-increment causes style false positive)
|
2009-05-25 08:31:20 +02:00 |
Daniel Marjamäki
|
7fdd497c44
|
Fix ticket #317 (pre-increment causes style false positive)
|
2009-05-25 08:26:11 +02:00 |
Reijo Tomperi
|
0f9b2efa43
|
Fix ticket #326 (Reported memory leak when pointer returned by assign to function's parameter)
http://apps.sourceforge.net/trac/cppcheck/ticket/326
|
2009-05-22 23:36:03 +03:00 |
Slava Semushin
|
0f20ce738d
|
Replaced two Token::simpleMatch() calls to one Token::Match().
Suggested by hyd_danmar in ticket
http://apps.sourceforge.net/trac/cppcheck/ticket/323
No functional change.
|
2009-05-22 22:03:42 +07:00 |
Daniel Marjamäki
|
f182365bd2
|
Applied patch 0001-Use-Token-simpleMatch-instead-of-Token-Match-w
Author: php-coder
Ticket: http://apps.sourceforge.net/trac/cppcheck/ticket/323
|
2009-05-21 17:55:52 +02:00 |
Reijo Tomperi
|
997a784bb6
|
Added TODO test case TestPreprocessor::multiline_comment
Made tokenizer to printout token list in case of syntax error, if debug is used
|
2009-05-13 00:01:53 +03:00 |
Reijo Tomperi
|
e83db8ac7b
|
Fix ticket #288 (Tokenizer::syntaxError should use error logger instead of std::cout)
http://apps.sourceforge.net/trac/cppcheck/ticket/288
|
2009-05-11 22:52:04 +03:00 |
Reijo Tomperi
|
f2a5527e60
|
Fix #289 (if() is not properly tokenized)
http://apps.sourceforge.net/trac/cppcheck/ticket/289
|
2009-05-09 23:12:14 +03:00 |
Reijo Tomperi
|
63da926ed2
|
Fix ticket #294 (### Error: Invalid number of character ()
http://apps.sourceforge.net/trac/cppcheck/ticket/294
|
2009-05-09 22:32:29 +03:00 |
Daniel Marjamäki
|
e9eba16053
|
templates: fixed problem when for example calling static member function in a template class (#293)
|
2009-05-09 08:02:59 +02:00 |
Daniel Marjamäki
|
dae530d8de
|
template: no usage -> no expansion (#292)
|
2009-05-08 16:19:22 +02:00 |
Reijo Tomperi
|
dd8b738f7f
|
Initial fix for ticket #283 (segmentation fault when checking xterm sources)
http://apps.sourceforge.net/trac/cppcheck/ticket/283
It should print out error message now instead of crashing. Cleanup is needed.
|
2009-05-07 23:17:29 +03:00 |
Daniel Marjamäki
|
917a48cd65
|
templates: don't expand forward declarations for templates
|
2009-05-07 16:05:07 +02:00 |
Daniel Marjamäki
|
51beadd81c
|
templates: instantiations in a template class (#280)
|
2009-05-06 21:03:11 +02:00 |
Daniel Marjamäki
|
feba87187a
|
templates: speedup by breaking out inner loops (#257)
|
2009-05-05 20:16:57 +02:00 |
Daniel Marjamäki
|
96ebf343f1
|
speedup: made the token simplifications a little faster
|
2009-05-03 21:32:22 +02:00 |
Daniel Marjamäki
|
7a8b980627
|
templates: extracted the template simplification into a separate function
|
2009-05-03 21:23:47 +02:00 |
Reijo Tomperi
|
0f59ef9064
|
Fix #276 (simplification: Variable value)
http://apps.sourceforge.net/trac/cppcheck/ticket/276
|
2009-05-03 21:57:27 +03:00 |
Reijo Tomperi
|
cb209bbd41
|
Fix #279 (Refactoring: replace and remove Token::aaaa , Token::aaaa0 and Token::aaaa1)
http://apps.sourceforge.net/trac/cppcheck/ticket/279
|
2009-05-03 21:10:59 +03:00 |
Daniel Marjamäki
|
c9eab77683
|
varid: speedup of the algorithm for setting variable ids
|
2009-05-03 14:31:54 +02:00 |
Daniel Marjamäki
|
f6d6a3855e
|
varid: updated handling of variable id for class variables (#26)
|
2009-05-03 13:50:26 +02:00 |
Reijo Tomperi
|
e825de1450
|
Fix possible bug caused by previous commit.
|
2009-05-03 14:17:31 +03:00 |
Reijo Tomperi
|
b29673f4a2
|
Fix slowlyness, caused by one of the previous commits.
|
2009-05-03 14:07:32 +03:00 |
Daniel Marjamäki
|
6a009f7084
|
tokenizer: give class member variables varId (#26)
|
2009-05-02 22:57:18 +02:00 |