Commit Graph

129 Commits

Author SHA1 Message Date
Daniel Marjamäki 81bcde9ed0 cleanup: removed spaces 2008-08-12 06:40:55 +00:00
Daniel Marjamäki 59c1c16e03 Checking for memory leaks. Changed the handling of comments about
deleting
2008-04-12 06:33:45 +00:00
Daniel Marjamäki 1d258a55a4 Make it possible to disable memory leak checking for a variable. Usable to avoid false positives 2008-04-11 18:37:15 +00:00
Daniel Marjamäki a938b4ed39 Fixing bug 1935006 - Compile problems on cygwin 2008-04-06 06:26:11 +00:00
Daniel Marjamäki 69d33444d4 Added style checks to check for unused global functions 2008-03-29 09:44:23 +00:00
Daniel Marjamäki 4691999ede Refactoring: Replaced deprecated "match" with the new "Match" 2008-03-28 07:18:03 +00:00
Daniel Marjamäki 44bee90d82 Refactoring (Replace '->' with '.', use matching function when possible) 2008-03-23 14:15:44 +00:00
Daniel Marjamäki ab7cb379af In the checks, use const pointers 2008-03-22 11:46:06 +00:00
Daniel Marjamäki 506fc0e16d tokenize: Fixed two bugs
* don't hang if we can't find the ending of a string.
 * don't divide by zero
2008-03-19 17:09:51 +00:00
Daniel Marjamäki d0cffeaa8c Updated tokenizer. To handle "#define f1(a,b) (a+b)" better 2008-03-18 07:45:35 +00:00
Daniel Marjamäki a9524b9207 Added test 'CheckVariableScope'. Increased constness. 2008-03-16 13:17:43 +00:00
Daniel Marjamäki 08b3b2ab63 CheckUnsignedDivision: Added check. Not very accurate yet. 2008-02-20 18:20:59 +00:00
Daniel Marjamäki 72d9e43f92 Made it compilable by borland c++ 2008-02-18 17:11:34 +00:00
Daniel Marjamäki 4cb3c7b96b Unit Testing: Start 2008-02-16 15:46:32 +00:00
Daniel Marjamäki 5070bfd87d tokenizer: removed some preprocessing => less false positives 2007-10-23 06:36:29 +00:00
Daniel Marjamäki ade2265ed2 Minor modifications to make it compile on linux 2007-07-18 06:37:37 +00:00
Daniel Marjamäki ba13ad5e3c Minor updates to make it portable to Linux. 2007-07-17 06:15:50 +00:00
Daniel Marjamäki 5b9513b17d Tokenize: generate tokens on '#define' (CheckIncludedHeaders) 2007-06-08 18:55:44 +00:00
Daniel Marjamäki 7a8ee64068 tokenize: bug fixes. Handling typedefs. 2007-06-03 17:08:30 +00:00
Daniel Marjamäki 7b85324a0b tokenize: Fixed the 'typedef' simplifications. Added token '#' upon preprocessor instructions. 2007-06-02 16:32:07 +00:00
Daniel Marjamäki f3bbdbf144 tokenizer: made the 'SizeOfType' public. bug fix in the tokenizer (strings longer than 1000 characters). 2007-05-30 20:08:05 +00:00
Daniel Marjamäki 012ba2f492 Tokenize: Replace 'typedef' 2007-05-29 17:11:53 +00:00
Daniel Marjamäki ae46002607 Tokenize: Simplify declarations 2007-05-29 06:24:36 +00:00
Daniel Marjamäki a2df9a5647 Tokenize: Replace '*(var+num)' with 'var[num]' 2007-05-28 10:34:18 +00:00
Daniel Marjamäki 03bcdf9e6e Tokenize: improved the preprocessing of 'sizeof(type)' 2007-05-28 06:17:18 +00:00
Daniel Marjamäki 7908421e0e Tokenize: Improved the tokenizer. Calculations are done in the tokenizer. sizeof is replaced with numbers. 2007-05-26 06:44:28 +00:00
Daniel Marjamäki a8f4091875 tokenize: moved 'IsName' to commoncheck. Replace 'sizeof(type)' with size. 2007-05-25 06:50:16 +00:00
Daniel Marjamäki f20c34a751 CheckClass; Added files (Check for mistakes related to classes) 2007-05-24 13:07:30 +00:00
Daniel Marjamäki ae4c97f814 tokenize: Added files 2007-05-24 05:40:45 +00:00