Daniel Marjamäki
|
a66a91c22a
|
code cleanups
|
2008-12-10 19:34:04 +00:00 |
Daniel Marjamäki
|
ddd20a2977
|
Virtual destructor : minor fix to avoid false positives when more modifiers are used
|
2008-12-10 19:13:40 +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 |
Reijo Tomperi
|
51024235a3
|
Refactoring: TOKEN::next renamed to _next, getter and setter functions for it added next() and next(TOKEN*).
|
2008-12-08 21:49:05 +00:00 |
Nicolas Le Cam
|
1d4816dbab
|
Virtual Destructor : Minor optimization
|
2008-12-08 14:08:36 +00:00 |
Nicolas Le Cam
|
a6b4cdb526
|
Constructors: Fix checking of 'operator=' with test
|
2008-12-07 16:55:07 +00:00 |
Daniel Marjamäki
|
0b35581d44
|
Virtual destructors : Don't check base classes when inheritance is
non-public
|
2008-12-07 10:13:51 +00:00 |
Daniel Marjamäki
|
5ea2844b85
|
Constructors : Refactoring + Added checking of 'operator='
|
2008-12-07 08:49:35 +00:00 |
Daniel Marjamäki
|
f01cb905f7
|
Check constructors: Minor optimisation
|
2008-12-07 07:02:00 +00:00 |
Daniel Marjamäki
|
f8087b1f3f
|
Constructors : Fixed so the test that kush_eplus added works
|
2008-12-07 06:58:23 +00:00 |
Daniel Marjamäki
|
f63f223976
|
Refactoring. Use "str" instead of "aaaa0"
|
2008-12-07 06:44:36 +00:00 |
Daniel Marjamäki
|
774ca2c350
|
Refactoring: use "findmatch" instead of "findtoken"
|
2008-12-07 06:37:50 +00:00 |
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 |