Robert Reif
|
79f0fe7d1c
|
refactor symbol database and checks to use list of Scope rather than list of Scope pointers
|
2011-03-10 19:43:29 -05:00 |
Daniel Marjamäki
|
5a0ec56fc2
|
Fixed #2632 (segmentation fault of cppcheck ( void>(); void>() ))
|
2011-03-09 21:25:44 +01:00 |
Robert Reif
|
7a7257f200
|
fix #2630 (segmentation fault of cppcheck ( typedef ... )
|
2011-03-08 20:24:57 -05:00 |
Daniel Marjamäki
|
0b8581e717
|
Fixed #2620 (Tokenizer::setVarId : wrong handling of member function parameters)
|
2011-03-08 20:41:41 +01:00 |
Robert Reif
|
d74ae3b0f0
|
copy all flag fields in a Token
|
2011-03-07 20:04:25 -05:00 |
Daniel Marjamäki
|
7496cd412c
|
Fixed #2631 (Tokenizer::simplifyTemplates: template usage 'std::cout << (foo<double>(r));')
|
2011-03-07 21:21:06 +01:00 |
Robert Reif
|
d678e4424c
|
fix #2630 (segmentation fault of cppcheck ( typedef y x () x ))
|
2011-03-06 18:59:56 -05:00 |
Daniel Marjamäki
|
f53ff27b71
|
Tokenizer::simplifyTemplates: better handling of '(foo<double>())'. Ticket: #2631
|
2011-03-06 21:15:42 +01:00 |
Daniel Marjamäki
|
6648267ab8
|
Revert "Tokenizer::simplifyTemplates: better handling of '(foo<double>())'. Ticket: #2631"
This reverts commit de31ec1e44 .
|
2011-03-06 21:07:06 +01:00 |
Daniel Marjamäki
|
de31ec1e44
|
Tokenizer::simplifyTemplates: better handling of '(foo<double>())'. Ticket: #2631
|
2011-03-06 10:28:51 -08:00 |
Daniel Marjamäki
|
779dba9160
|
Fixed #2612 (segmentation fault of cppcheck ( <><< ))
|
2011-03-06 09:33:46 +01:00 |
Robert Reif
|
0debba4409
|
finish fixing #2624 (better function pointer support needed)
|
2011-03-05 21:41:58 -05:00 |
Robert Reif
|
7d2fb2ecde
|
partial fix for #2624 (better function pointer support needed)
|
2011-03-05 20:48:28 -05:00 |
Robert Reif
|
f3b2acf585
|
really fix #2620 reference of typedef of array not simplified properly
|
2011-03-03 20:32:10 -05:00 |
Daniel Marjamäki
|
d7a6e729b8
|
Tokenizer::simplifyKnownVariables: Don't simplify 'strcpy(a,"ab"); b=a;'. Ticket: #2031
|
2011-03-03 20:07:56 +01:00 |
Robert Reif
|
3f0d0446e0
|
revert previous commit: simplified code isn't correct
|
2011-03-03 07:40:43 -05:00 |
Robert Reif
|
ee4b4f62d8
|
fix #2620 reference of typedef of array not simplified properly
|
2011-03-03 07:27:53 -05:00 |
Daniel Marjamäki
|
8e9a1c33ad
|
Fixed #2618 (Tokenizer::simplifyKnownVariables: Don't use known string value if address is wanted)
|
2011-03-01 20:20:48 +01:00 |
Daniel Marjamäki
|
db04d7b71e
|
Fixed #2616 (Segmentation fault with unknown macro)
|
2011-03-01 18:02:50 +01:00 |
Robert Reif
|
92efbd748e
|
fix #2595 bitfield fix for case x: break; and default: break;
|
2011-02-28 19:35:00 -05:00 |
Daniel Marjamäki
|
893b84a87c
|
Fixed #2615 (Segmentation fault in cppcheck 1.47)
|
2011-02-28 20:29:34 +01:00 |
Daniel Marjamäki
|
c1c9b96bb6
|
Fixed #2031 (Tokenizer: simplify known value (string has known value after strcpy))
|
2011-02-26 21:11:56 +01:00 |
Robert Reif
|
3529014924
|
expose number of variables found by Tokenizer
|
2011-02-26 08:42:19 -05:00 |
Daniel Marjamäki
|
9bf6e67898
|
Fixed #2610 (segmentation fault of cppcheck ( if () < {} ))
|
2011-02-24 18:49:16 +01:00 |
Robert Reif
|
26152a9264
|
fix #2609 (False positive on template dependent name)
|
2011-02-24 06:39:46 -05:00 |
Daniel Marjamäki
|
daf0e7c37d
|
Fixed #2604 (Segmentation fault of cppcheck ( sizeof <= A ))
|
2011-02-23 20:44:14 +01:00 |
Robert Reif
|
d1f7a8aca4
|
fix #2403 (simplifyTypedef: array of function pointers) Internal error message
|
2011-02-22 22:11:17 -05:00 |
Robert Reif
|
dd12fc177f
|
fix #2603 (segmentation fault of cppcheck ( typedef constexpr))
|
2011-02-22 07:48:34 -05:00 |
Robert Reif
|
703448171a
|
fix #2601 (segmentation fault of cppcheck)
|
2011-02-22 07:02:15 -05:00 |
Robert Reif
|
4e1ce93104
|
fix #2600 (segmentation fault of cppcheck ( enum{const} ))
|
2011-02-21 19:30:40 -05:00 |
Robert Reif
|
999646fca6
|
fix #2599 (segmentation fault of cppcheck ( sizeof ))
|
2011-02-21 17:49:30 -05:00 |
Daniel Marjamäki
|
55711698d0
|
Fixed #2591 (cppcheck hangs with 100% cpu load ( class A : ))
|
2011-02-21 19:41:34 +01:00 |
Robert Reif
|
763763fa9b
|
fix bitfields to support non-numeric bitfield width
|
2011-02-20 18:22:49 -05:00 |
Daniel Marjamäki
|
5dea79a07d
|
cppcheckError: Rephrazed the error message. The 'internal error' sounds like something dangerous happens that needs to be fixed. So I think 'analysis failed' is better. If the code has a syntax error then 'analysis failed' is entirely ok.
|
2011-02-20 19:56:13 +01:00 |
Daniel Marjamäki
|
63c003f92e
|
Tokenizer: fixed so that 'p=&x; if(p)' is simplified to 'p=&x;if(&x)'. Ticket: #2596
|
2011-02-20 18:18:27 +01:00 |
Daniel Marjamäki
|
1cfb18be08
|
astyle formatting
|
2011-02-20 12:22:01 +01:00 |
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 |