Commit Graph

58 Commits

Author SHA1 Message Date
Daniel Marjamäki 057d6f1f18 Virtual destructors : Handle inheritance where
"private|protected|public" is not defined
2008-12-07 06:31:54 +00:00
Daniel Marjamäki b560215bc6 Virtual Destructors : pattern for declaring a derived class... "class %var% : public|protected|private %var% .." 2008-12-06 19:56:33 +00:00
Daniel Marjamäki 984cd47aac virtual destructor : iterate through base classes for a derived class to check that the destructor in each base class i virtual 2008-12-06 19:26:13 +00:00
Daniel Marjamäki 8a06b71949 Uninitialized member variables : Don't give false positives for private constructors 2008-12-06 19:14:04 +00:00
Daniel Marjamäki b71adda8b5 Minor optimisation. Don't do redundant checking 2008-12-06 17:54:27 +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 bcccb4bc91 CheckClass : Refactoring - Removed include and moved struct VAR into the class 2008-12-06 17:00:14 +00:00
Daniel Marjamäki bc267bbca5 TOKEN: Refactoring the 'str' member variable 2008-11-24 19:38:08 +00:00
Reijo Tomperi a6ad4045d4 Refactoring: IsName() and IsNumber() are no longer static and they don't take a parameter. 2008-11-23 12:21:40 +00:00
Reijo Tomperi 0b2e7a0ef3 Refactoring: at() changed to tokAt() and getstr() changed to strAt() 2008-11-23 10:09:16 +00:00
Reijo Tomperi 3ba83b6620 Refactoring: token.* files added, Some functions from Tokenizer moved under TOKEN. Renamed few functions, like gettok() -> at(), combineWithNext() and deleteNext() are also new
names for old functions. Usage was gettok( tok, 2 ), but now it is tok->at( 2 ).
2008-11-22 22:49:14 +00:00
Daniel Marjamäki 0d3a99adb0 increased constness of member variable _tokenizer in the Check* classes 2008-11-22 20:00:36 +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
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 aa579911ab Refactoring: Global variable tokenes is no more. 2008-11-16 15:58:52 +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
Daniel Marjamäki 8c9c6529b8 Uninitialized Member Variables: Fixed bug 'false positive on multi constructors' 2008-11-15 15:22:10 +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 4995c5d4c6 Uninitialized variable: chained assignments 2008-11-13 18:16:36 +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
Daniel Marjamäki 58f0f03449 Unused private function: return pointer to private function 2008-11-11 20:19:28 +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 f8a60ae5c2 CheckClass: Applied patch 2220196 2008-11-06 00:00:38 +00:00
Daniel Marjamäki fd4b02e538 CheckClass: Removed false positive "unused private function" for typedef (Bug 2220326) 2008-11-05 07:25:28 +00:00
Daniel Marjamäki 7d234fd5c2 Class Checking: Fixed AV in FindClassFunction 2008-11-02 12:48:45 +00:00
Daniel Marjamäki d60d133671 Uninitialized Member Variables: Fixed problems with different classes with same name (Bug 2208157) 2008-11-01 18:01:35 +00:00
Daniel Marjamäki 0dc9235f4f Uninitialized member variables: Removed false positives when using operator= (Bug 2190376) 2008-11-01 17:00:36 +00:00
Daniel Marjamäki c284e7efad Uninitialized Member Variables: Check statements that begin after for example "if (..)" or "else" (Bug 2190290) 2008-11-01 06:41:45 +00:00
Daniel Marjamäki 644b3057ed Unitialized Members Variables: Fixed false positives when using "this"
(Bug 
2190300)
2008-11-01 06:25:42 +00:00
Daniel Marjamäki 5b9aa96aba Licensing: Using the GPL 3 license 2008-10-26 07:55:15 +00:00
Daniel Marjamäki bacc402d04 CheckClass: Minor fix to make it compile in Visual c++ 2008-10-21 08:47:26 +00:00
Daniel Marjamäki 69700da5e1 CheckConstructors: Handle recursion better. Don't hang. 2008-10-19 15:21:18 +00:00
Daniel Marjamäki 5e9f1010ff compilation: Various cross compilation fixes. The "--recursive" option doesn't work on VC now. 2008-09-11 17:03:58 +00:00
Daniel Marjamäki ae322b5f45 made cppcheck compile with g++ 4.3 2008-08-30 18:29:37 +00:00
Daniel Marjamäki 77389640cf Checking memset/memcpy/memmove. Removed false positives 2008-04-18 17:18:22 +00:00
Daniel Marjamäki 53f078fc1d Minor updates. Added todo. Refactoring 2008-04-12 12:07:35 +00:00
Daniel Marjamäki c56cfb5305 Match: Added matching for [] 2008-04-02 09:37:05 +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 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 85a50103a5 Better checking of class declarations. 2008-03-18 07:46:42 +00:00
Daniel Marjamäki 6e2e624bce Removed false positives 2008-02-22 07:26:10 +00:00
Daniel Marjamäki a40c1e9eb7 CheckClass: Improved constructor checking 2008-02-19 07:09:09 +00:00
Daniel Marjamäki 72d9e43f92 Made it compilable by borland c++ 2008-02-18 17:11:34 +00:00
Daniel Marjamäki edc4177df3 ClassChecking: Only enable the 'no constructor' warning if '--style' is given 2008-02-18 17:04:14 +00:00
Daniel Marjamäki 46d8fe0fad Class Checking: No constructor 2008-02-18 16:28:37 +00:00
Daniel Marjamäki a8e6a4c343 Better checking of uninitialized variables 2008-01-17 07:46:10 +00:00