Commit Graph

27 Commits

Author SHA1 Message Date
Nicolas Le Cam 625b77ec33 Formatting: uniformize end of lines. 2008-12-08 23:06:19 +00:00
Daniel Marjamäki ead97b5616 function variable usage : various fixes. but probably more fixes are needed. 2008-12-07 20:29:39 +00:00
Daniel Marjamäki 4493400c49 Class checking : Check that base class destructors are virtual. Experimental 2008-12-06 17:34:34 +00:00
Daniel Marjamäki 4d070f04e5 Added check that detects unreachable code below a 'return' statement 2008-12-06 16:25:24 +00:00
Reijo Tomperi 2f27bf09b8 cppcheck and executor, fixed compiling error 2008-12-06 09:27:28 +00:00
Daniel Marjamäki 6d7a0e65b3 refactoring: Increased constness of function parameters 2008-12-06 07:40:13 +00:00
Daniel Marjamäki 5ab22473e3 added comment about "--debug" flag. This is used for various debugging purposes so the behaviour of c++check is undefined if it's given 2008-11-30 19:32:36 +00:00
Reijo Tomperi 5326a35951 Verbose: Added line change to help text printing and updated man page 2008-11-30 10:38:58 +00:00
Daniel Marjamäki a07c1745c3 Verbose error message output through '--verbose' 2008-11-30 09:08:07 +00:00
Daniel Marjamäki 87794cc66c cppcheck: Write version number etc 2008-11-29 13:58:28 +00:00
Daniel Marjamäki 1f189f655d Array index : No recursive checking unless the "--all" has been given 2008-11-27 20:29:29 +00:00
Reijo Tomperi df452a3b0f Recursive file listing, .cxx added to file list 2008-11-27 19:17:15 +00:00
Reijo Tomperi 69ba8ce7f9 Feature added: CppCheck class has now function addFile(string,string) which allows checking of unreal files, by giving just filename and file content as a
parameter.
2008-11-25 20:56:11 +00:00
Daniel Marjamäki 4f4a2391e0 Refactoring: Removed _settings member from the Tokenizer 2008-11-25 18:44:35 +00:00
Daniel Marjamäki 8845e8bc89 Refactoring: Tokenizer - renaming functions, moved the 'tokenizeCode' to the private section 2008-11-25 18:34:51 +00:00
Reijo Tomperi ad5fbe5dc6 Refactoring: CppCheckExecutor class added 2008-11-24 21:50:20 +00:00
Reijo Tomperi 895b1d5561 Refactoring: Started making CppCheck class more generally usable (e.g. as a part of IDE). 2008-11-23 22:01:09 +00:00
Reijo Tomperi 29a1468523 Refactoring: Renamed some member variables: variable -> _variable 2008-11-23 11:08:07 +00:00
Daniel Marjamäki 0c9784fc0c Refactoring: The Tokenizer::FillFunctionList has no use of its parameter. Enabled the CheckFunctionUsage 2008-11-23 06:21:44 +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
Reijo Tomperi 125692bc65 Refactoring: CommonCheck.* files are removed. Rest of the global functions from there were moved to Tokenizer class 2008-11-21 21:14:24 +00:00
Daniel Marjamäki 7f4cc495df unsigned division and char variable usage - moved checks to "--style" 2008-11-21 08:20:21 +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
Daniel Marjamäki 745d885808 minor update to startup message 2008-11-17 18:58:06 +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 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 403017de99 Refactoring: New classes CppCheck and Settings. Code from main.cpp was moved to cppcheck.cpp 2008-11-14 22:26:38 +00:00