Daniel Marjamäki
|
05e330ed38
|
incomplete statement: minor update
|
2009-02-05 18:57:53 +00:00 |
Daniel Marjamäki
|
aeb573d529
|
returning pointer to local array
|
2009-02-04 18:49:19 +00:00 |
Daniel Marjamäki
|
bd73d0913f
|
charvar: fixed todo testcase
|
2009-02-04 17:12:53 +00:00 |
Daniel Marjamäki
|
d29d7e60a9
|
errmsg: refactoring the error messages
|
2009-02-01 15:47:36 +00:00 |
Daniel Marjamäki
|
d6ef44c73e
|
sprintf overlapping data
|
2009-01-27 07:21:52 +00:00 |
Daniel Marjamäki
|
6ce23670e5
|
sprintf overlapping data: added extra text that is shown if --verbose is given
|
2009-01-26 19:14:46 +00:00 |
Daniel Marjamäki
|
9d29de02d3
|
removed windows encodings
|
2009-01-23 21:34:03 +00:00 |
Daniel Marjamäki
|
42e56153a4
|
borland and visual c++ fixes
|
2009-01-23 21:28:45 +00:00 |
Reijo Tomperi
|
8d6f41397a
|
Fixing ticket #35 (Get rid of #ifdefs in our code where possible)
|
2009-01-23 20:25:13 +00:00 |
Nicolas Le Cam
|
42c608b6f0
|
Remove checks that are already covered well by most compilers (Unreachable Code; Assignment in Condition; Unused Variable).
|
2009-01-21 21:31:47 +00:00 |
Reijo Tomperi
|
176dd41306
|
Fixed Ticket #40, Check copyright texts in files, now that we have new developers.
|
2009-01-21 20:04:20 +00:00 |
Nicolas Le Cam
|
afb3bf1011
|
Fix CheckOther::functionVariableUsage, passing a variable to a function also means reading it.
|
2009-01-21 19:05:57 +00:00 |
Nicolas Le Cam
|
acdc381ff3
|
CheckOther::functionVariableUsage: minor optimization.
|
2009-01-20 22:40:10 +00:00 |
Nicolas Le Cam
|
2b2152919f
|
Update errormessage.h and code using it.
|
2009-01-19 19:50:59 +00:00 |
Reijo Tomperi
|
50d9a085da
|
Added temporary bailout code, cppcheck crashes when string checking leaks out. This needs a better fix, this is just to
see the problem more easily.
|
2009-01-18 22:46:48 +00:00 |
Nicolas Le Cam
|
f6d121443e
|
unreachableCode: Moved warning of a break statement following a return in --style; Added a test case; Minor optimization.
|
2009-01-18 21:19:02 +00:00 |
Leandro Penz
|
e930525aa4
|
functionVariableUsage: no longer SIGSEGVs on unfinished struct. Fixes Ticket #31.
|
2009-01-18 19:45:43 +00:00 |
Daniel Marjamäki
|
f409861492
|
strPlusChar: Fixed false positives
|
2009-01-18 17:42:41 +00:00 |
Daniel Marjamäki
|
b9b250f4cc
|
unused var: fixed false positives when using shift operator
|
2009-01-17 14:32:02 +00:00 |
Daniel Marjamäki
|
121c0ee58f
|
unused variable: reading the value of variable in a for loop.. "for(;a;)" see ticket #18
|
2009-01-17 11:12:15 +00:00 |
Daniel Marjamäki
|
218c107b6f
|
code style
|
2009-01-15 17:12:55 +00:00 |
Daniel Marjamäki
|
66e93b24e2
|
str plus char: added simple variable handling
|
2009-01-15 17:12:33 +00:00 |
Daniel Marjamäki
|
ad9aba6e1b
|
code style fixing
|
2009-01-15 17:00:15 +00:00 |
Daniel Marjamäki
|
8bbd4b9401
|
str plus char: Added check and error message for str + ch
|
2009-01-15 16:57:51 +00:00 |
Daniel Marjamäki
|
03cfe18c9b
|
errmsg: Added 'condition is always true/false'
|
2009-01-14 19:43:28 +00:00 |
Leandro Penz
|
f33153e086
|
unreachableCode: avoid SIGSEGV when there is no "}" after return.
|
2009-01-14 01:29:33 +00:00 |
Leandro Penz
|
1a14cd527c
|
functionVariableUsage: support for nested struct/union declaration.
|
2009-01-14 00:45:44 +00:00 |
Daniel Marjamäki
|
c8a5bd16a1
|
errmsg: Added 'assignment in if-condition'
|
2009-01-13 17:56:45 +00:00 |
Daniel Marjamäki
|
aa592387e6
|
errmsg: refactoring
|
2009-01-13 06:25:36 +00:00 |
Daniel Marjamäki
|
cc65242626
|
errmsg: added message about bad usage of char variable
|
2009-01-12 18:52:43 +00:00 |
Daniel Marjamäki
|
fdf5b215f9
|
errmsg: Added message for 'incomplete statement'
|
2009-01-12 17:46:24 +00:00 |
Daniel Marjamäki
|
a5eb8894d4
|
errmsg: Added messages for 'variable is not used / not read / not assigned'
|
2009-01-12 17:40:20 +00:00 |
Daniel Marjamäki
|
13e2396345
|
errmsg: Added message 'function parameter is passed by value'
|
2009-01-12 17:32:53 +00:00 |
Daniel Marjamäki
|
df689b454c
|
errmsg: added message 'unreachable code below return'
|
2009-01-12 17:28:04 +00:00 |
Daniel Marjamäki
|
a0ef840138
|
errmsg: Added 'unused struct member'
|
2009-01-12 17:21:25 +00:00 |
Daniel Marjamäki
|
980b10bfc9
|
errmsg: Added 'unsigned division'
|
2009-01-12 17:12:14 +00:00 |
Daniel Marjamäki
|
17d4c2b980
|
errmsg: Added message 'Overlapping data buffer'
|
2009-01-12 06:52:50 +00:00 |
Daniel Marjamäki
|
ae861852e2
|
errmsg: Added "found redundant if - 'if (condition);'
|
2009-01-12 06:44:47 +00:00 |
Daniel Marjamäki
|
da46e4bd96
|
struct member usage: bail out the check if the struct contain any functions
|
2009-01-11 14:39:52 +00:00 |
Daniel Marjamäki
|
1a4cfc6c4f
|
unused struct member: fixed false positive for member "const int a;"
|
2009-01-10 14:39:20 +00:00 |
Daniel Marjamäki
|
8c4260519c
|
sprintf: fixed bug "false positive when variable is used again after snprintf"
|
2009-01-10 14:27:31 +00:00 |
Daniel Marjamäki
|
985b8fa05f
|
sprintf: fixed false positives with "sprintf(buf, "%i", sizeof(buf));
|
2009-01-10 11:19:17 +00:00 |
Daniel Marjamäki
|
7851b1042f
|
errormessage: added error message ErrorMessage::dangerousUsageStrtol
|
2009-01-09 19:15:54 +00:00 |
Reijo Tomperi
|
42b661630b
|
astyle changes, missed from previous commits
|
2009-01-08 21:08:14 +00:00 |
Daniel Marjamäki
|
5d0f8f0cfa
|
errormessage: Added a few more messages for checkother.cpp
|
2009-01-08 20:56:51 +00:00 |
Daniel Marjamäki
|
24530ebd60
|
sprintf: check for dangerous usage with sprintf|snprintf with
overlapping data
|
2009-01-08 06:24:08 +00:00 |
Reijo Tomperi
|
e435a1f1d6
|
Refactoring: Added src/ and test/ folders. Moved source files to those folders, updated makefile and codeblocks project file.
|
2009-01-06 14:18:36 +00:00 |