Daniel Marjamäki
|
46f4e46d30
|
Tokenizer::simplifyTemplates: Better handling for multi-token template arguments such as 'Foo<std::string>'
|
2011-02-20 12:17:05 +01:00 |
Robert Reif
|
77fe9858e2
|
fix #2587 (Spurious warning about struct hiding typedef)
|
2011-02-19 14:18:37 -05:00 |
Greg Hewgill
|
7e5d8e42d4
|
remove stray BOM from source file
|
2011-02-19 16:10:50 +13:00 |
Daniel Marjamäki
|
f363bc1560
|
Borland C++: Fixed compiler error
|
2011-02-18 20:21:48 +01:00 |
Daniel Marjamäki
|
cf2a04377e
|
Fixed #2586 (segmentation fault of cppcheck (template<>))
|
2011-02-17 21:15:17 +01:00 |
Daniel Marjamäki
|
54e0b60cc5
|
Fixed #2584 (false positive 'variable n is never used')
|
2011-02-16 20:33:24 +01:00 |
Daniel Marjamäki
|
0ed0d07714
|
Tokenizer::simplifyCalculations: basic handling of bitwise operators
|
2011-02-14 20:43:26 +01:00 |
Robert Reif
|
cdd8d3f785
|
Really fix #2348 perl-tk
|
2011-02-13 19:02:57 -05:00 |
Daniel Marjamäki
|
0d2d0c864a
|
Tokenizer::simplifyKnownVariables: Fixed TODO testcases (better handling of comparisons)
|
2011-02-13 22:24:45 +01:00 |
Daniel Marjamäki
|
2182ede486
|
Tokenizer::simplifyKnownVariables: Fixed TODO testcase (better handling of ^)
|
2011-02-13 22:13:19 +01:00 |
Daniel Marjamäki
|
472d8154ca
|
Tokenizer::simplifyKnownVariables: Fixed TODO testcase (better handling of |)
|
2011-02-13 22:09:04 +01:00 |
Daniel Marjamäki
|
467c984cd1
|
Tokenizer::simplifyKnownVariables: Fixed TODO testcase (better handling of %)
|
2011-02-13 22:03:46 +01:00 |
Robert Reif
|
c03ace7378
|
Fix #2579 (segmentation fault of cppcheck)
|
2011-02-13 14:11:22 -05:00 |
Robert Reif
|
ad22aebf8c
|
Really fix: #2376 (simplifyTypedef: upx-ucl)
|
2011-02-13 13:34:55 -05:00 |
Daniel Marjamäki
|
de75bdfed5
|
Tokenizer: comments/refactorings
|
2011-02-12 21:11:20 +01:00 |
Daniel Marjamäki
|
4d1aae5859
|
Tokenizer::simplifyTemplates: Broke out the functionality that instantiates a template
|
2011-02-12 20:58:45 +01:00 |
Daniel Marjamäki
|
9021f0f180
|
Tokenizer::simplifyTemplates: Broke out the functionality that handles default template arguments
|
2011-02-12 20:27:44 +01:00 |
Daniel Marjamäki
|
00bdf618f2
|
Tokenizer::simplifyTemplates: Broke out the functionality that extract a list of template instantiations
|
2011-02-12 20:17:58 +01:00 |
Daniel Marjamäki
|
25d6bfe3c4
|
Tokenizer::simplifyTemplates: broke out the functionality that extract a list of template declarations
|
2011-02-12 20:12:07 +01:00 |
Daniel Marjamäki
|
654116af61
|
Tokenizer::simplifyTemplates: Broke out handling for 'template<>..'
|
2011-02-12 19:43:33 +01:00 |
Daniel Marjamäki
|
07e8325e50
|
Fixed #2549 (segmentation fault of cppcheck)
|
2011-02-12 16:51:59 +01:00 |
Daniel Marjamäki
|
63ade3e4f6
|
Tokenizer::simplifyKnownVariables: Split up the function into smaller functions. Broke out ..GetData function that extracts info about assigned variable before the simplification is made.
|
2011-02-12 09:24:20 +01:00 |
Robert Reif
|
78b5361ec8
|
fix #2568 (False positive: (style) Union 'A_t' hides typedef with same name (forward declaration))
|
2011-02-11 19:09:24 -05:00 |
Daniel Marjamäki
|
951a81d0d2
|
Tokenizer::simplifyKnownVariables: Broke out the simplification into a separate function
|
2011-02-11 20:12:51 +01:00 |
Robert Reif
|
e6848aef98
|
Tokenizer: refactor duplicated token copy code info function
|
2011-02-09 22:02:17 -05:00 |
Robert Reif
|
301f83767e
|
replace tok->strAt(0) with tok->str()
|
2011-02-09 07:45:19 -05:00 |
Robert Reif
|
7502cea4d3
|
Fixed #2554 (simplifyTypedef: wrong simplification for sizeof(array))
|
2011-02-08 19:47:14 -05:00 |
Daniel Marjamäki
|
f7dcf2d3b9
|
Tokenizer: Added a comment about sizeof for struct/class. We always assume that the size is 100
|
2011-02-06 09:58:07 +01:00 |
Robert Reif
|
95e917b27f
|
Tokenizer: Replace __null with 0 (gcc constant)
|
2011-02-05 09:03:31 +01:00 |
Robert Reif
|
e9ec4bc3e4
|
Fixed #2536 (cppcheck hangs with 100% cpu load)
|
2011-02-03 07:58:49 +01:00 |
Raphael Geissert
|
c9a0d95e89
|
A few more Token::Match -> ::simpleMatch replacements
|
2011-02-02 13:27:02 -06:00 |
Raphael Geissert
|
f8e2d50e6f
|
Use Token::simpleMatch where no special patterns are needed
|
2011-02-02 13:27:02 -06:00 |
Raphael Geissert
|
8d5863133c
|
Use Token::simpleMatch where no patterns are used
|
2011-02-02 13:27:01 -06:00 |
Raphael Geissert
|
cf2b6f7bc1
|
Remove useless spacing at the end of *Match strings
|
2011-02-02 13:27:01 -06:00 |
Robert Reif
|
8eb92001b3
|
Fixed #2530 (Tokenizer: Remove redundant 'MyClass::' inside MyClass class declaration)
|
2011-02-02 07:40:08 +01:00 |
Daniel Marjamäki
|
defeded4b5
|
Fixed #2529 (False positive: array 'req[3]' index 4 out of bounds)
|
2011-02-01 21:46:07 +01:00 |
Daniel Marjamäki
|
49fc53165c
|
Tokenizer: remove some unhandled macros in the global scope. ticket: #2523
|
2011-01-30 08:34:58 +01:00 |
Daniel Marjamäki
|
a299411a82
|
Tokenizer: Better simplifications of static constants
|
2011-01-29 16:14:09 +01:00 |
Daniel Marjamäki
|
83625d8055
|
Fixed #2505 (Check processing of a preprocessor macro 'FREE')
|
2011-01-28 09:19:30 +01:00 |
Daniel Marjamäki
|
88abeeebba
|
Fixed #2518 (Crash when checking rockbox's firmwire)
|
2011-01-27 21:16:25 +01:00 |
Daniel Marjamäki
|
524498e439
|
Tokenizer: collapse operator function names into a single token. ticket: #2519
|
2011-01-27 18:44:20 +01:00 |
Daniel Marjamäki
|
586cbd5839
|
Tokenizer: Upon createLinks error, report error and bailout
|
2011-01-23 09:38:38 +01:00 |
Daniel Marjamäki
|
b10f0aabd6
|
Fixed #2376 (simplifyTypedef: upx-ucl)
|
2011-01-23 09:04:34 +01:00 |
Daniel Marjamäki
|
5c88129f01
|
Fixed #2484 (false positive because template is not instantiated properly)
|
2011-01-22 12:42:53 +01:00 |
Daniel Marjamäki
|
bc31f317bc
|
Fixed #2491 (Tokenizer::setVarId : wrong handling of function call: 'a(b * c, 1);')
|
2011-01-22 09:27:16 +01:00 |
Robert Reif
|
69eee86ee4
|
Tokenizer: Only create 1 symbol database. ticket: #2468
|
2011-01-22 08:34:24 +01:00 |
Robert Reif
|
d73709a620
|
Symbol database: rename variables. ticket: #2468
|
2011-01-21 07:42:41 +01:00 |
Kimmo Varis
|
b8b2e3fae9
|
Move filelister* to cli.
Ticket #2445 (Move FileLister classes from LIB to CLI).
|
2011-01-18 19:58:49 +02:00 |
Kimmo Varis
|
86ac25456e
|
Move sameFileName() method to Path class.
Ticket #2445 (Move FileLister classes from LIB to CLI). Moving
sameFileName() to Path allows moving FileLister* classes to CLI.
|
2011-01-18 19:58:16 +02:00 |
Robert Reif
|
959e10cee5
|
Symbol database: renamed classes. ticket: #2468
|
2011-01-17 18:29:19 +01:00 |
Robert Reif
|
bf9528558e
|
Symbol database: pulled out classes into global scope. ticket: #2468
|
2011-01-17 07:21:59 +01:00 |
Robert Reif
|
d341b42b0c
|
Symbol database: increased constness. ticket: #2468
|
2011-01-16 18:13:54 +01:00 |
Daniel Marjamäki
|
f72fd6960e
|
Fixed #2449 (segfault in tokenize.cpp, incorrect parsing)
|
2011-01-16 11:54:28 +01:00 |
Raphael Geissert
|
da998fec68
|
Tokenizer: simplify restrict
|
2011-01-16 11:37:03 +01:00 |
Robert Reif
|
beb2db82a2
|
Fixed #980 (false negative: division by zero when using enum)
|
2011-01-16 11:24:58 +01:00 |
Daniel Marjamäki
|
97d0755750
|
Fixed #2454 (Tokenizer::simplifyKnownVariables: problem with float/double variables)
|
2011-01-15 08:48:42 +01:00 |
Daniel Marjamäki
|
5920dbb7e7
|
Fixed #2466 (Tokenizer: simplification of enum)
|
2011-01-15 08:21:06 +01:00 |
Robert Reif
|
8ecba0af90
|
Fixed #2464 (False positive: not initialised/not assigned Static variable in copy constructors.)
|
2011-01-15 08:04:50 +01:00 |
Robert Reif
|
708a75e363
|
Fixed #2452 (syntax error when 'void f(typedef int x)' is used. causes segmentation fault.)
|
2011-01-14 07:41:22 +01:00 |
Daniel Marjamäki
|
79e52a8c45
|
Fixed #2296 (Tokenizer: simplifyKnownVariable doesn't simplify pointer properly 'delete [] p;')
|
2011-01-11 19:34:35 +01:00 |
Reijo Tomperi
|
226b605774
|
Change year 2010 -> 2011 in license texts.
|
2011-01-09 21:33:36 +02:00 |
Daniel Marjamäki
|
88abb32ddf
|
Fixed #2429 (Tokenizer: Wrong simplification of 'sizeof .1250E+04')
|
2011-01-09 10:09:54 +01:00 |
Robert Reif
|
bfc95e01c1
|
Fixed #2426 (### Internal error in Cppcheck. Please report it.)
|
2011-01-07 08:02:47 +01:00 |
Daniel Marjamäki
|
1b3a5ed0be
|
Tokenizer: simplify NULL to 0 in the normal token list
|
2011-01-06 20:16:14 +01:00 |
Daniel Marjamäki
|
616914c1ff
|
Tokenizer: simple refactorings. and added a few comments
|
2011-01-06 12:07:37 +01:00 |
Daniel Marjamäki
|
a0d62e041f
|
Tokenizer: Fixed memory corruption
|
2011-01-05 19:38:22 +01:00 |
Robert Reif
|
157498e694
|
Fixed #2412 (typedef: struct with inheritance)
|
2011-01-05 17:42:55 +01:00 |
Robert Reif
|
ed6f683573
|
typedef: better handling. ticket: #2414
|
2011-01-05 17:39:53 +01:00 |
Daniel Marjamäki
|
d700f25518
|
Fixed #2399 (Tokenizer::simplifyKnownVariables: variables in conditions)
|
2011-01-04 21:35:35 +01:00 |
Daniel Marjamäki
|
63c1ee375e
|
Fixed #2398 (false positive: Uninitialized variable)
|
2011-01-04 19:36:29 +01:00 |
Daniel Marjamäki
|
2c6421d162
|
Merge branch 'master' of https://github.com/rgeissert/cppcheck into rgeissert-realloc
|
2011-01-04 18:21:18 +01:00 |
Robert Reif
|
63208e87d3
|
typedef: delete unhandled typedefs. ticket: #2348
|
2011-01-04 07:43:40 +01:00 |
Robert Reif
|
a782d3ddf7
|
typedef: fix testcase 4. ticket: #2375
|
2011-01-04 07:39:41 +01:00 |
Robert Reif
|
63ad1fbe69
|
Fixed #2400 (Tests crashing in Windows)
|
2011-01-04 07:34:32 +01:00 |
Raphael Geissert
|
3d9550b0bf
|
Simplify "x = realloc (0, n);" to "x = malloc(n);"
|
2011-01-02 17:46:10 -06:00 |
Raphael Geissert
|
e75a81669e
|
Move simplification of realloc after simplification of math ops
|
2011-01-02 16:41:34 -06:00 |
Daniel Marjamäki
|
d2714fefda
|
typedef: Fixed testcase. ticket: #2375
|
2011-01-02 17:28:47 +01:00 |
Daniel Marjamäki
|
789d944912
|
typedef: don't simplify typedef after 'case'. it means that there is a typedef and constant with the same names. Ticket: #2386
|
2011-01-01 20:20:03 +01:00 |
Daniel Marjamäki
|
62145431a7
|
Tokenizer: Added more comments
|
2011-01-01 11:40:32 +01:00 |
Daniel Marjamäki
|
2da3fea1b8
|
Fixed #2386 (segmentation fault occurs in the checking when typedef has same name as an enum constant)
|
2010-12-31 20:55:28 +01:00 |
Daniel Marjamäki
|
f1f1a21c23
|
Borland C++: Fixed compiler errors
|
2010-12-31 10:24:51 +01:00 |
Daniel Marjamäki
|
d8f241e033
|
gcc: fixed -Wconversion errors
|
2010-12-31 09:51:27 +01:00 |
Daniel Marjamäki
|
cab338dffe
|
gcc: fixed -Wconversion warnings in tokenizer
|
2010-12-31 09:38:03 +01:00 |
Daniel Marjamäki
|
307178d3c2
|
Tokenizer: Better handling of duplicate enums. Ticket: #2381
|
2010-12-30 20:55:23 +01:00 |
Robert Reif
|
3900ac731e
|
simplifyTypedef: Better handling of 'typedef int RexxFunctionHandler();'. Ticket: #2348
|
2010-12-29 20:25:47 +01:00 |
Robert Reif
|
3f1f50e970
|
simplifyTypedef: operator typedef. Ticket: #2375
|
2010-12-29 20:22:06 +01:00 |
Daniel Marjamäki
|
38e7209d26
|
Fixed #2373 (Using XML2 in --errorlist output)
|
2010-12-29 12:43:29 +01:00 |
Robert Reif
|
137d0e2ba7
|
typedef: fixed problem with 'typedef int pread_f(int);'. ticket: #2348
|
2010-12-29 09:18:41 +01:00 |
Robert Reif
|
e82b1f8946
|
typedef: fix typedef simplification. ticket: #2348
|
2010-12-28 21:21:13 +01:00 |
Daniel Marjamäki
|
0667fcf53c
|
Fixed #2355 (simplifyTypedef: wrong simplification of 'typedef FMAC1 void (*a)();')
|
2010-12-28 14:04:44 +01:00 |
Robert Reif
|
1b92eeae1e
|
Fixed #2354 (simplifyTypedef: function pointers are not simplified into valid code)
|
2010-12-28 08:01:32 +01:00 |
Daniel Marjamäki
|
92acca3d0c
|
Fixed #2368 (assigned a value that is never used)
|
2010-12-27 20:49:07 +01:00 |
Daniel Marjamäki
|
2367cfcf1e
|
Fixed #2361 (false positive on t[0X10])
|
2010-12-27 08:09:05 +01:00 |
Daniel Marjamäki
|
6178459c15
|
Fixed #2304 (Tokenizer::simplifyKnownVariables: known strcpy parameter)
|
2010-12-26 20:34:07 +01:00 |
Daniel Marjamäki
|
f4581d833d
|
Tokenizer: Bailout if @ is encountered in the code
|
2010-12-26 15:07:14 +01:00 |
Daniel Marjamäki
|
10ee43790d
|
Fixed #2339 (Tokenizer::setVarId : Wrong handling of 'int gr = id - (TLFPressProperties::OIL_FLUID * nb);')
|
2010-12-25 12:40:44 +01:00 |
Daniel Marjamäki
|
6f8f0e1aa1
|
Fixed #2353 (Tokenizer::simplifyKnownVariables: wrong simplification after return)
|
2010-12-25 10:07:57 +01:00 |
Daniel Marjamäki
|
18fd12006a
|
Tokenizer::simplifyGoto: Don't simplify 'goto' inside unhandled macro calls. Ticket: #2348
|
2010-12-23 22:03:58 +01:00 |
Daniel Marjamäki
|
472ecd8805
|
Tokenizer: Fixed calculation simplification of '0*(*p)'. Ticket: #2348
|
2010-12-23 18:59:18 +01:00 |
Robert Reif
|
fc7e2d1ac1
|
Fixed #2341 (false positive for function pointer returning typedef)
|
2010-12-22 18:37:23 +01:00 |