Commit Graph

25 Commits

Author SHA1 Message Date
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 180e3b99e6 Refactoring: Some global functions moved to Tokenizer class 2008-11-20 20:54:52 +00:00
Reijo Tomperi 08b25dc0d4 Refactoring: Global/Static variables, FunctionList, GlobalFunctions and UsedGlobalFunctions are now private members of Tokenizer class.
Class GlobalFunction is now private subclass of Tokenizer. 
Global functions CheckGlobalFunctionUsage, FillFunctionList and GetFunctionTokenByName are now member functions of Tokenizer.
2008-11-15 22:41:56 +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
Daniel Marjamäki 8fce5d39e5 Memory leak: Began work for parsing into subfunctions. 2008-11-09 16:34:18 +00:00
Daniel Marjamäki c220b061dc Refactoring TOKEN: Changed from struct to class 2008-11-06 18:31:39 +00:00
Daniel Marjamäki 5b9aa96aba Licensing: Using the GPL 3 license 2008-10-26 07:55:15 +00:00
Daniel Marjamäki 0575781a67 CheckMemoryLeak: Refactoring the check 2008-08-16 12:44:46 +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 f8569f0db4 Refactoring: Removed 'HasErrors'. Better usage of 'Match'. Hid the 'FunctionList' 2008-03-28 17:40:24 +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 b7477cb27f Combined 'findfunction' and 'FindFunction'. Updated "CheckBufferOverrun"
(checking for-loops).
2008-03-24 07:24:49 +00:00
Daniel Marjamäki 4c17dd9499 Buffer overrun in function parameter 2008-03-23 16:18:31 +00:00
Daniel Marjamäki 75debeba37 Reverted 205:207 2008-03-23 13:38:01 +00:00
Daniel Marjamäki 34a2fdfb37 Refactoring 2008-03-23 13:27:34 +00:00
Daniel Marjamäki 3dfc79d3b6 Refactoring: Use 'setindentlevel' 2008-03-23 07:57:27 +00:00
Daniel Marjamäki 0d0f562e90 Refactoring: Added helper function 'setindentlevel' 2008-03-22 20:14:25 +00:00
Daniel Marjamäki ede402a5ec Minor refactoring 2008-03-22 17:09:08 +00:00
Daniel Marjamäki a9524b9207 Added test 'CheckVariableScope'. Increased constness. 2008-03-16 13:17:43 +00:00
Daniel Marjamäki a6696d6f7d Removed false positives and also duplicate error messages. 2008-02-22 14:30:43 +00:00
Daniel Marjamäki 4cb3c7b96b Unit Testing: Start 2008-02-16 15:46:32 +00:00
Daniel Marjamäki 5b6ab28e0b For the highest accuracy, don't warn for all memory leaks unless the "-w" is given 2007-07-20 06:20:31 +00:00
Daniel Marjamäki 909bf7e6cd CommonCheck: Moved 'IsName' and 'IsNumber' from main.cpp 2007-05-25 06:45:47 +00:00
Daniel Marjamäki f20c34a751 CheckClass; Added files (Check for mistakes related to classes) 2007-05-24 13:07:30 +00:00