Commit Graph

22 Commits

Author SHA1 Message Date
Daniel Marjamäki 0d3a99adb0 increased constness of member variable _tokenizer in the Check* classes 2008-11-22 20:00:36 +00:00
Daniel Marjamäki 07b5ebe72b Check Function Usage: Removed much of the old checking and made some refactoring 2008-11-22 19:39:12 +00:00
Daniel Marjamäki 2db69e6072 tokenizer: Added DeallocateTokens to the destructor so it's not necessary to cleanup manually 2008-11-22 09:44:02 +00:00
Reijo Tomperi 51e9d98a5f Refactoring: Errors are no longer logged via global functions to a global stream. Instead callback function is used via interface.
ErrorLogger interface was added and taken into use.
2008-11-20 22:19:26 +00:00
Reijo Tomperi ce08224547 Few static variables are now private members. ShowAll etc. global variables are now members of Settings class and given as a
parameter to the classes that need them.
2008-11-16 15:18:50 +00:00
Reijo Tomperi 1efb4c95a6 Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
Reijo Tomperi 0b1ee10353 Refactoring: tokens_back and TypeSize are no longer global variables 2008-11-12 22:50:40 +00:00
Reijo Tomperi 134985e410 Refactoring: Tokenizer object given as a parameter to most of the classes 2008-11-12 21:34:47 +00:00
Reijo Tomperi f242c4fddd Refactoring: Following new classes were created:
CheckBufferOverrunClass
CheckClass
CheckHeaders
CheckMemoryLeakClass
CheckOther
Preprocessor
2008-11-11 06:42:09 +00:00
Reijo Tomperi ef9f472188 Refactoring: Tokenizer class added, functions still mostly static and
using globals
2008-11-09 07:19:53 +00:00
Daniel Marjamäki de3c6f9c1b Testing: DeallocateTokens after each test 2008-11-03 07:54:59 +00:00
Daniel Marjamäki 5b9aa96aba Licensing: Using the GPL 3 license 2008-10-26 07:55:15 +00:00
Daniel Marjamäki b235c373a5 testing: Various fixes to make the tests compile without warnings/errors 2008-10-16 17:22:26 +00:00
Daniel Marjamäki 1978ac3562 Testing: Added macro 'REGISTER_TEST' 2008-10-15 06:48:18 +00:00
Daniel Marjamäki d330eb197a Testing: Updated the testing to the new test framework 2008-10-13 06:42:40 +00:00
Daniel Marjamäki b2b3e48ebc Unsigned division: Checking if negative constant is used 2008-10-06 16:42:42 +00:00
Daniel Marjamäki 3d14bbea56 TestDivision: Added two tests of unsigned division when negative constant is used. 2008-10-06 08:52:46 +00:00
Daniel Marjamäki 5115420809 CheckUnsignedDivision: Made it more accurate and moved it to the
standard checks
2008-10-04 12:12:24 +00:00
Daniel Marjamäki 528deafe68 CheckUnsignedDivision: Refactoring 2008-09-15 06:40:26 +00:00
Daniel Marjamäki 3daf128c0f tokenize: handle simple typedefs 2008-08-28 06:37:11 +00:00
Daniel Marjamäki 7752f2c62c testdivision: changed the error message. hopefully it is clearer 2008-08-27 06:32:35 +00:00
Daniel Marjamäki 8cbafe3efe test: Added 'testdivision.cpp' 2008-08-23 16:50:29 +00:00