541 Commits

Author SHA1 Message Date
Robert Reif
e9ec4bc3e4 Fixed (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 (Tokenizer: Remove redundant 'MyClass::' inside MyClass class declaration) 2011-02-02 07:40:08 +01:00
Daniel Marjamäki
defeded4b5 Fixed (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: 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 (Check processing of a preprocessor macro 'FREE') 2011-01-28 09:19:30 +01:00
Daniel Marjamäki
88abeeebba Fixed (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: 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 (simplifyTypedef: upx-ucl) 2011-01-23 09:04:34 +01:00
Daniel Marjamäki
5c88129f01 Fixed (false positive because template is not instantiated properly) 2011-01-22 12:42:53 +01:00
Daniel Marjamäki
bc31f317bc Fixed (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: 2011-01-22 08:34:24 +01:00
Robert Reif
d73709a620 Symbol database: rename variables. ticket: 2011-01-21 07:42:41 +01:00
Kimmo Varis
b8b2e3fae9 Move filelister* to cli.
Ticket  (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  (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: 2011-01-17 18:29:19 +01:00
Robert Reif
bf9528558e Symbol database: pulled out classes into global scope. ticket: 2011-01-17 07:21:59 +01:00
Robert Reif
d341b42b0c Symbol database: increased constness. ticket: 2011-01-16 18:13:54 +01:00
Daniel Marjamäki
f72fd6960e Fixed (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 (false negative: division by zero when using enum) 2011-01-16 11:24:58 +01:00
Daniel Marjamäki
97d0755750 Fixed (Tokenizer::simplifyKnownVariables: problem with float/double variables) 2011-01-15 08:48:42 +01:00
Daniel Marjamäki
5920dbb7e7 Fixed (Tokenizer: simplification of enum) 2011-01-15 08:21:06 +01:00
Robert Reif
8ecba0af90 Fixed (False positive: not initialised/not assigned Static variable in copy constructors.) 2011-01-15 08:04:50 +01:00
Robert Reif
708a75e363 Fixed (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 (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 (Tokenizer: Wrong simplification of 'sizeof .1250E+04') 2011-01-09 10:09:54 +01:00
Robert Reif
bfc95e01c1 Fixed (### 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 (typedef: struct with inheritance) 2011-01-05 17:42:55 +01:00
Robert Reif
ed6f683573 typedef: better handling. ticket: 2011-01-05 17:39:53 +01:00
Daniel Marjamäki
d700f25518 Fixed (Tokenizer::simplifyKnownVariables: variables in conditions) 2011-01-04 21:35:35 +01:00
Daniel Marjamäki
63c1ee375e Fixed (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: 2011-01-04 07:43:40 +01:00
Robert Reif
a782d3ddf7 typedef: fix testcase 4. ticket: 2011-01-04 07:39:41 +01:00
Robert Reif
63ad1fbe69 Fixed (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: 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: 2011-01-01 20:20:03 +01:00
Daniel Marjamäki
62145431a7 Tokenizer: Added more comments 2011-01-01 11:40:32 +01:00