Daniel Marjamäki
|
a66a91c22a
|
code cleanups
|
2008-12-10 19:34:04 +00:00 |
Daniel Marjamäki
|
41aa2f8810
|
Borland C++ : minor update to make the code compilable with borland c++
|
2008-12-10 19:14:38 +00:00 |
Daniel Marjamäki
|
20e28bb687
|
Variable usage : 2 more fixes
|
2008-12-09 07:25:00 +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
|
440203bd5c
|
Refactoring: Rest of the public variables in TOKEN moved to private area.
|
2008-12-08 22:02:37 +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 |
Daniel Marjamäki
|
5bb81294c0
|
Variable usage : A few small fixes to reduce false positives
|
2008-12-08 18:44:17 +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
|
b1ee3c5d31
|
function variable usage : Added a simple check
|
2008-12-07 19:17:36 +00:00 |
Daniel Marjamäki
|
d3f68a9a5d
|
Unreachable code : minor bug fixes
|
2008-12-06 16:54:45 +00:00 |
Daniel Marjamäki
|
4ef7839d6a
|
Unreachable code : Fixed false positives for label
|
2008-12-06 16:34:44 +00:00 |
Daniel Marjamäki
|
4d070f04e5
|
Added check that detects unreachable code below a 'return' statement
|
2008-12-06 16:25:24 +00:00 |
Daniel Marjamäki
|
89663bef0a
|
CheckOther: Fixed a compiler warning
|
2008-12-05 18:17:51 +00:00 |
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 |