Commit Graph

52 Commits

Author SHA1 Message Date
Nicolas Le Cam e29ead375f Preprocessor: Get rid of an unused parameter 2009-01-02 00:13:24 +00:00
Reijo Tomperi 94923cca1a Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
Daniel Marjamäki 6167c22eb9 help : minor updates to help text that cppcheck shows when no parameters are given 2008-12-30 18:48:36 +00:00
Reijo Tomperi e11799eede c++check -> cppcheck 2008-12-30 18:45:17 +00:00
Daniel Marjamäki 8a0e44a41b cppcheck : updated version to 1.27 in help text 2008-12-30 18:21:19 +00:00
Reijo Tomperi ec32e071b5 Bail out text is now not printed with --quiet option 2008-12-28 20:13:03 +00:00
Reijo Tomperi 801f2c246d Bailing out if too many (over 12) configurations found froma file. --force parameter added to prevent this from happening. 2008-12-27 07:52:07 +00:00
Reijo Tomperi c850901536 Added preprocessor a way to retrieve configurations and file content one configuration at time, because large files could consume 500 MB or even more memory. 2008-12-26 22:52:27 +00:00
Daniel Marjamäki 7301709699 buffer overruns : renamed functions + minor simplification 2008-12-20 08:53:42 +00:00
Daniel Marjamäki 6b06df766b Class checking : Renamed the check functions 2008-12-20 08:48:52 +00:00
Reijo Tomperi e272630604 Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
Reijo Tomperi a86b07ed17 Don't use keyword "this" in constructor 2008-12-19 19:31:12 +00:00
Reijo Tomperi cd405f4089 Interface: Tags -a, -q, -s and -v added. 2008-12-19 18:47:31 +00:00
Reijo Tomperi ddcab63b9e Interface: New version of interface and help texts, --errorsonly changed to --quiet 2008-12-19 18:38:22 +00:00
Reijo Tomperi c0ef901a56 Interface: Removed --recursive option, made it default. Changed help texts. 2008-12-19 18:18:29 +00:00
Nicolas Le Cam a5fa323a0b Formatting: uniformize end of lines. 2008-12-18 21:28:57 +00:00
Nicolas Le Cam 40f3ef61c9 Removes WarningIs(Alpha|Digit) checks as this can introduce more problems than fixes. 2008-12-15 23:03:04 +00:00
Reijo Tomperi 3851c0f019 Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
Nicolas Le Cam 661068bcd4 Formatting: uniformize end of lines. 2008-12-13 11:39:36 +00:00
Reijo Tomperi f669a5a45d Minor bug fix, CppCheck::Check didn't reset error list after all checking was done. 2008-12-11 20:28:35 +00:00
Daniel Marjamäki 2b7338450c preprocessing : Skip special characters. Refactoring. 2008-12-11 18:09:20 +00:00
Daniel Marjamäki a4a55553f8 cppcheck : Set variable ids 2008-12-09 07:27:39 +00:00
Nicolas Le Cam aaabacfe87 Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
Nicolas Le Cam eb80c9786f Revert revisions 627 and 628 2008-12-08 23:41:34 +00:00
Nicolas Le Cam e8d2c7cfb3 Formatting: uniformize end of lines (part 2) 2008-12-08 23:10:13 +00:00
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