Nicolas Le Cam
|
b886702d0d
|
Warning If minor optimizations
|
2008-12-01 20:02:39 +00:00 |
Daniel Marjamäki
|
bc267bbca5
|
TOKEN: Refactoring the 'str' member variable
|
2008-11-24 19:38:08 +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
|
eb1b0abc1e
|
Refactoring: tokens() changed to const and to return const pointer.
|
2008-11-16 16:13:38 +00:00 |
Reijo Tomperi
|
aa579911ab
|
Refactoring: Global variable tokenes is no more.
|
2008-11-16 15:58:52 +00:00 |
Daniel Marjamäki
|
add2283724
|
cleanup files
|
2008-11-15 13:05:58 +00:00 |
Daniel Marjamäki
|
9034c8b27e
|
Uninitialized member variable: Added unit test that currently fails for bug 2270353 - Uninitialized variable false positive on multi constructors
|
2008-11-15 08:53:51 +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 |
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
|
3a39259472
|
Refactoring: Don't use the TOKEN::str directly
|
2008-11-11 17:46:53 +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
|
6a3d957366
|
CheckAlpha: Expanded checking to include 'isupper' and 'islower'
|
2008-11-06 00:04:52 +00:00 |
Daniel Marjamäki
|
ffa8e3d0b6
|
TestCharVar: Fixed some false positives
|
2008-11-02 16:29:36 +00:00 |
Daniel Marjamäki
|
5b9aa96aba
|
Licensing: Using the GPL 3 license
|
2008-10-26 07:55:15 +00:00 |
Daniel Marjamäki
|
30e1d5c06e
|
CheckIncompleteStatement: Fixed false positive generated by CheckIncompleteStatement (bug 2187837)
|
2008-10-23 17:45:24 +00:00 |
Daniel Marjamäki
|
b2b3e48ebc
|
Unsigned division: Checking if negative constant is used
|
2008-10-06 16:42:42 +00:00 |
Daniel Marjamäki
|
5115420809
|
CheckUnsignedDivision: Made it more accurate and moved it to the
standard checks
|
2008-10-04 12:12:24 +00:00 |
Daniel Marjamäki
|
6881a364a2
|
CheckOther: Minor updates. Removed false positives for CheckScope
|
2008-09-23 16:03:39 +00:00 |
Daniel Marjamäki
|
815dd364ed
|
Incomplete statement: Check for statements that begin with a constant
|
2008-09-20 17:34:37 +00:00 |
Daniel Marjamäki
|
c77b81fddd
|
CheckOther: Minor updates in checking of signed char variables and unsigned division
|
2008-09-16 05:57:57 +00:00 |
Daniel Marjamäki
|
528deafe68
|
CheckUnsignedDivision: Refactoring
|
2008-09-15 06:40:26 +00:00 |
Daniel Marjamäki
|
ae322b5f45
|
made cppcheck compile with g++ 4.3
|
2008-08-30 18:29:37 +00:00 |
Daniel Marjamäki
|
778410ccbf
|
char variable usage: Added checking
|
2008-08-28 06:36:30 +00:00 |
Daniel Marjamäki
|
7752f2c62c
|
testdivision: changed the error message. hopefully it is clearer
|
2008-08-27 06:32:35 +00:00 |
Daniel Marjamäki
|
81bcde9ed0
|
cleanup: removed spaces
|
2008-08-12 06:40:55 +00:00 |
Daniel Marjamäki
|
c2b76372b9
|
CheckOther: Removed unused functions
|
2008-05-14 04:30:56 +00:00 |
Daniel Marjamäki
|
58b1b5f101
|
CheckStructMemberUsage: Added more cases
|
2008-05-10 06:48:37 +00:00 |
Daniel Marjamäki
|
219d82e180
|
CheckStructMemberUsage: Check for unused struct members
|
2008-05-09 18:29:42 +00:00 |
Daniel Marjamäki
|
a4486fb883
|
CheckConstantFunctionParameters: Updated the check to handle all std::.. struct and class
|
2008-05-03 09:44:20 +00:00 |
Daniel Marjamäki
|
cae2e190da
|
Added check: passing constant function parameter by value instead of by reference/pointer
|
2008-05-03 07:20:25 +00:00 |
Daniel Marjamäki
|
60e454fa11
|
Minor updates. Removed some false positives when checking variable scope
|
2008-04-01 06:21:12 +00:00 |
Daniel Marjamäki
|
89605c0167
|
Fixed minor bugs
|
2008-03-29 17:27:02 +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
|
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
|
ab7cb379af
|
In the checks, use const pointers
|
2008-03-22 11:46:06 +00:00 |
Daniel Marjamäki
|
c5e7cb4032
|
'CheckUnsignedDivision' -> more errors. 'CheckVariableScope' -> removed false errors.
|
2008-03-21 06:44:52 +00:00 |
Daniel Marjamäki
|
313d3dafa1
|
Rewrote the checking for "unsigned division" => less false positives
|
2008-03-20 07:23:01 +00:00 |
Daniel Marjamäki
|
b1b7593c76
|
Updates here and there to make it more accurate
|
2008-03-19 06:03:56 +00:00 |
Daniel Marjamäki
|
101afe4344
|
Checking variable scope
|
2008-03-17 11:05:30 +00:00 |
Daniel Marjamäki
|
119e719d52
|
bug fixes for 'CheckVariableScope'
|
2008-03-16 17:39:38 +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 |