Daniel Marjamäki
|
7ef0296f97
|
--verbose: added more information for the variableScope error message.
|
2010-07-19 11:30:01 +02:00 |
Daniel Marjamäki
|
bbf2c6c6e6
|
Fixed #1880 (false positive: Uninitialized array (initialized in subfunction))
|
2010-07-19 10:03:54 +02:00 |
Robert Reif
|
e86e8449f8
|
Variable usage: better handling of pointer aliasing. Ticket: #1729
|
2010-07-12 09:50:18 +02:00 |
Robert Reif
|
566b4b4beb
|
Variable usage: fixed false positive reported in #1729
|
2010-07-08 08:42:34 +02:00 |
Robert Reif
|
2d6dfa57e1
|
Variable usage: Better aliasing support (Ticket #1729)
|
2010-07-08 08:00:50 +02:00 |
Daniel Marjamäki
|
a1793edabe
|
Fixed #1825 (*log(0) error)
|
2010-07-07 09:03:40 +02:00 |
Daniel Marjamäki
|
4ebf4caf66
|
Variable usage: only warn about variables that have variable id > 0
|
2010-07-07 08:50:34 +02:00 |
Daniel Marjamäki
|
2bb07a55bd
|
Fixed #1803 (False positive: unused variable: this)
|
2010-07-07 08:39:18 +02:00 |
Daniel Marjamäki
|
a107cd1b59
|
Fixed #1729 (False positive: variable is assigned a value that is never used (pointer aliasing))
|
2010-07-07 08:26:24 +02:00 |
Daniel Marjamäki
|
c811acaa50
|
Fixed #1818 (False positive: Dangerous usage of strncpy (copying a constant string))
|
2010-07-05 12:45:39 +02:00 |
Zachary Blair
|
5ea28ccbba
|
Fixed #157 (Forgetting to put a break in a switch statement)
|
2010-06-30 00:10:30 -07:00 |
Daniel Marjamäki
|
c6888845a0
|
Fixed #1815 (False positive: uninitialized variable when using ? operator)
|
2010-06-30 08:28:34 +02:00 |
Robert Reif
|
4668359b51
|
Fixed #1808 (false positive: uninitialized variable with multiple assignment)
|
2010-06-29 08:38:24 +02:00 |
Daniel Marjamäki
|
ad0908cb3f
|
Fixed #1808 (false positive: uninitialized variable with multiple assignment)
|
2010-06-25 19:39:30 +02:00 |
Robert Reif
|
2a1edff77f
|
Fixed #1812 (false negative: functionVariableUsage doesn't support static variables)
|
2010-06-24 17:00:32 +02:00 |
Robert Reif
|
74e48d4bb1
|
Fixed #1732 (False positive: Variable not assigned a value (pointer to pointer))
|
2010-06-23 06:54:14 +02:00 |
Robert Reif
|
a5b45a7f83
|
Fixed #1807 (false positive: Variable is not assigned a value (casting function parameters))
|
2010-06-22 17:04:11 +02:00 |
Robert Reif
|
bdd28b47aa
|
Fixed #1799 (false positive: Variable is assigned a value that is never used)
|
2010-06-21 18:12:01 +02:00 |
Daniel Marjamäki
|
4cd3e8fdc0
|
Refactoring: Reduced copy/pasted code
|
2010-06-20 19:03:59 +02:00 |
Nicolás Alvarez
|
df3d98a7c2
|
Fix typos in sizeofsizeof error message.
|
2010-06-19 17:16:14 -03:00 |
Daniel Marjamäki
|
82b63dd736
|
Fixed #1633 (tokenizer: simplifyKnownVariable: improved handling of arithmetic)
|
2010-06-19 14:00:45 +02:00 |
Robert Reif
|
7dba21858a
|
simplify the alias handling in the checking of variable usage. Ticket: #1729
|
2010-06-16 18:00:21 +02:00 |
Zachary Blair
|
ae2a02ad93
|
Applied review suggestions for Ticket #920
|
2010-06-15 22:03:38 -07:00 |
Zachary Blair
|
efefceabae
|
Fixed #920 (new style check: find empty catch blocks)
|
2010-06-14 23:45:46 -07:00 |
Robert Reif
|
98ae660260
|
Fixed #1792 (false positive: Variable 'test' is assigned a value that is never used)
|
2010-06-14 15:46:57 +02:00 |
Daniel Marjamäki
|
cb7e9fbec1
|
Fixed #1776 (False Negative: Unitialized array)
|
2010-06-14 08:36:34 +02:00 |
Robert Reif
|
3d2c28a524
|
Fixed #1784 (false positive: Variable is not assigned a value)
|
2010-06-10 07:21:47 +02:00 |
Robert Reif
|
00dcec47ac
|
Variable usage: read variable when using syntax '..=*(p);'
|
2010-06-08 18:26:14 +02:00 |
Daniel Marjamäki
|
472bd9dabe
|
Fixed #1726 (False negative: null pointer dereference in switch block)
|
2010-06-06 12:15:31 +02:00 |
Robert Reif
|
4c4844b722
|
Fixed #1723 (Variable assigned value which is never used but is thrown)
|
2010-06-03 07:05:57 +02:00 |
Daniel Marjamäki
|
cb43168d81
|
Fixed #1720 (segmentation fault of cppcheck)
|
2010-06-02 18:10:32 +02:00 |
Daniel Marjamäki
|
8ead23fc91
|
CheckOther::nullConstantDereference: Fixed cppcheck warning message - tok may become null
|
2010-06-02 18:06:37 +02:00 |
Daniel Marjamäki
|
28ad69e4b3
|
Refactoring of CheckOther::nullConstantDereference
|
2010-06-02 17:53:45 +02:00 |
Daniel Marjamäki
|
37ae4692bb
|
Uninitialized variables: fixed false negative when using uninitialized variable inside malloc call
|
2010-05-30 10:30:51 +02:00 |
Daniel Marjamäki
|
1ec49430e3
|
Uninitialized variables: better handling when uninitialized variables are used in function calls
|
2010-05-30 09:31:10 +02:00 |
Daniel Marjamäki
|
d3ed1c8960
|
Refactoring uninitialized variables (checking variable declarations)
|
2010-05-30 08:02:39 +02:00 |
Daniel Marjamäki
|
406cbda563
|
Uninitialized variables: better handling of struct variables
|
2010-05-30 07:55:11 +02:00 |
Robert Reif
|
176b41caa5
|
Fixed #1709 (char buffer that is only accessed with pointers is marker not assigned)
|
2010-05-26 19:22:35 +02:00 |
Daniel Marjamäki
|
88e9a4ade6
|
Fixed #1704 (false negative: null pointer dereference)
|
2010-05-26 19:16:42 +02:00 |
Robert Reif
|
048733a15e
|
false positive: Variable is assigned a value that is never used
|
2010-05-23 10:41:05 +02:00 |
Daniel Marjamäki
|
75c9355e9a
|
Added some multipass checking for the uninitialized variables. It is still experimental. You can activate it with the '--test-2-pass' switch. Some more refactorings are needed to make it truly usable, the main thing is to make it thread safe.
|
2010-05-21 19:35:18 +02:00 |
firewave
|
2bced1d90c
|
Avoid some Visual Studio warnings
|
2010-05-18 19:19:15 +02:00 |
Daniel Marjamäki
|
6edb2e77b4
|
Refactoring: Removed Severity::possibleStyle
|
2010-05-16 14:43:42 +02:00 |
Daniel Marjamki
|
972046c4bd
|
Added test CheckOther::sizeofsizeof. Inspired by #1682
|
2010-05-15 14:06:45 +02:00 |
Daniel Marjamäki
|
7c52c8683d
|
Fixed #1662 (false positive: Data is allocated but not initialized, when using sprintf)
|
2010-05-09 07:48:52 +02:00 |
Robert Reif
|
be35b72c7e
|
Fixed #1660 (false positive: Variable is assigned a value that is never used, when using cast)
|
2010-05-09 07:15:40 +02:00 |
Daniel Marjamäki
|
2901434773
|
Fixed #1658 (false negative: uninitialized pointer usage)
|
2010-05-08 19:23:46 +02:00 |
Daniel Marjamäki
|
bd22a18dc1
|
Refactoring: Changed 'possible style' to 'style'
|
2010-05-08 09:49:01 +02:00 |
Zachary Blair
|
21b7eb61f5
|
Fixed #959: (new check: wrong usage of fflush()) Simplified and set severity to error
|
2010-05-06 23:08:10 -07:00 |
Robert Reif
|
4c95264d29
|
Fixed #1647 (False positive: buffer is not assigned value (assigned through alias))
|
2010-05-05 17:31:07 +02:00 |
Daniel Marjamäki
|
612be2557b
|
Fixed #1646 (False positive: array access after return cannot have default loop value)
|
2010-05-04 20:02:47 +02:00 |
Robert Reif
|
7ce70777a4
|
Fixed #1643 (Variable usage (pointer is assigned but never used))
|
2010-05-04 17:28:03 +02:00 |
Robert Reif
|
eb276346c5
|
Fixed #1639 (False positive: unused variable value (pointer aliasing))
|
2010-05-04 17:26:09 +02:00 |
Zachary Blair
|
707d27f3d8
|
Fixed #959 (new check: wrong usage of fflush())
|
2010-05-03 23:14:45 -07:00 |
Robert Reif
|
6eb16e0f16
|
Fixed #1640 (False negative: Unused value (variable is assigned but never read))
|
2010-05-01 21:15:14 +02:00 |
Robert Reif
|
4014bd234f
|
Unit testing: Improved test coverage for variable usage checking
|
2010-05-01 09:26:47 +02:00 |
Robert Reif
|
1fa1ff8d14
|
Fixed #1636 (Fix false positive with strncpy termination check)
|
2010-04-30 21:36:48 +02:00 |
Robert Reif
|
5738f34872
|
Fixed #1622 (False positive: buf is not assigned a value (pointer aliasing))
|
2010-04-30 18:11:51 +02:00 |
Robert Reif
|
70d475f8c2
|
Fixed #1622 (False positive: buf is not assigned a value (pointer aliasing))
|
2010-04-29 07:10:50 +02:00 |
Daniel Marjamäki
|
cccccff96f
|
Fixed #1629 (False negative: null pointer derefence not detected 'c[0] = 0')
|
2010-04-28 22:07:39 +02:00 |
Robert Reif
|
f0018100e1
|
Variable usage: Use variable id instead of variable name to identify variable
|
2010-04-27 05:05:32 +02:00 |
Daniel Marjamäki
|
cda6fdb73d
|
astyle formatting
|
2010-04-25 14:56:04 +02:00 |
firewave
|
52b84963e6
|
Fixed Access Violation with --enable=style when no tokens exist
|
2010-04-25 12:35:09 +02:00 |
Daniel Marjamäki
|
eb82a89758
|
ExecutionPath: Better handling of if
|
2010-04-25 11:55:57 +02:00 |
Daniel Marjamäki
|
a15e25f9fe
|
Fixed #1571 ('C-style pointer casting' should not be reported for C files)
|
2010-04-24 16:46:09 +02:00 |
Daniel Marjamäki
|
f3bea249ac
|
Removed the check for unreachable code. The g++ warning -Wunreachable-code is recommended instead. This closes #1603 (break after a return or goto should not be an error in a switch statement).
|
2010-04-24 14:30:45 +02:00 |
Robert Reif
|
2bdcf3b5b2
|
variable usage: refactoring the checking
|
2010-04-24 09:45:03 +02:00 |
Zachary Blair
|
680a470741
|
Fixed #1564 (CppCheck does not recognise redundant IF)
|
2010-04-22 01:21:54 -07:00 |
Zachary Blair
|
c26e619b23
|
Fixed #855 (Refactoring: move conditions into checks)
|
2010-04-20 23:38:25 -07:00 |
Robert Reif
|
d851b4a3d4
|
Fixed #1607 (false positive: variable is assigned a value that is never used)
|
2010-04-17 14:23:29 +02:00 |
Daniel Marjamäki
|
b19113426f
|
Unused struct member: Fixed false positives
|
2010-04-17 11:16:05 +02:00 |
Robert Reif
|
61b5a21ac9
|
Fixed #1605 (false positive: uninitialized variable)
|
2010-04-16 16:25:57 +02:00 |
Robert Reif
|
45573ad101
|
Fixed #1607 (false positive: variable is assigned a value that is never used)
|
2010-04-16 15:57:09 +02:00 |
Daniel Marjamäki
|
c718a7c595
|
astyle: Update to astyle 1.24
|
2010-04-15 20:08:51 +02:00 |
Robert Reif
|
01aa414f32
|
Fixed #1253 (improve check: uninitialized variable not found when using reference)
|
2010-04-15 18:44:52 +02:00 |
Reijo Tomperi
|
35d2a27b9c
|
Update copyright year in all source files
|
2010-04-13 22:23:17 +03:00 |
Daniel Marjamäki
|
8373a6d4cb
|
astyle formatting
|
2010-04-13 19:30:51 +02:00 |
Zachary Blair
|
bd7dc9946e
|
Fixed #1530 (possible new check: strlen return value versus zero.)
|
2010-04-13 19:30:25 +02:00 |
Daniel Marjamäki
|
e9b4ea44a2
|
Refactoring: Disable inconclusive checks. They can still be activated for debugging/testing purposes
|
2010-04-10 14:05:33 +02:00 |
Daniel Marjamäki
|
f77dbbb14b
|
Fixed some false positives for unused struct members
|
2010-04-09 19:55:41 +02:00 |
Daniel Marjamäki
|
38a28e28ec
|
Fixed #1581 (False positives 'The scope of the variable x can be reduced')
|
2010-04-09 16:53:27 +02:00 |
Reijo Tomperi
|
5aa88ee5a2
|
Fix vs warnings. Apply patch from kidkat.
|
2010-04-06 21:35:21 +03:00 |
Martin Ettl
|
4bc325f077
|
#ticket 1513: added sqrt() support
|
2010-04-05 20:20:20 +02:00 |
Reijo Tomperi
|
93d195aa0f
|
astyle fix
|
2010-04-05 21:12:43 +03:00 |
Martin Ettl
|
f895ab9a0d
|
Merge branch 'master' of git@github.com:danmar/cppcheck
|
2010-04-05 20:08:21 +02:00 |
Martin Ettl
|
fe7c6aed9f
|
#ticket 1513: added pow() support
|
2010-04-05 20:07:53 +02:00 |
Reijo Tomperi
|
04b38e5428
|
astyle fix
|
2010-04-05 20:57:54 +03:00 |
Martin Ettl
|
218c18496d
|
#ticket 1513 added fmod() support
|
2010-04-05 19:45:33 +02:00 |
Martin Ettl
|
d4923e2a92
|
added atan2() check to ticket #1513
|
2010-04-05 19:35:56 +02:00 |
Daniel Marjamäki
|
61e1c4183f
|
Uninitialized variables: better handling of 'a[b[..]]' when b is not initialized
|
2010-04-05 09:04:30 +02:00 |
Daniel Marjamäki
|
d26a2cfc16
|
Uninitialized variables: Detect reading uninitialized data through array/pointer variable
|
2010-04-05 08:38:26 +02:00 |
Daniel Marjamäki
|
abceff497b
|
Refactoring: some refactoring of ExecutionPath. The foundError was removed. No automatic bailout of all checks are made when errors are found.
|
2010-04-04 11:24:52 +02:00 |
Daniel Marjamäki
|
78852b08ab
|
Fixed #1566 (false negative: uninitialized variable)
|
2010-04-04 09:17:53 +02:00 |
Reijo Tomperi
|
be598757a1
|
Fix segmentation fault when calling with --errorlist and add a testcase for it.
|
2010-04-03 22:53:06 +03:00 |
Daniel Marjamäki
|
5f9e14e242
|
Borland C++: Fixed compiler error
|
2010-04-03 07:51:40 +02:00 |
Reijo Tomperi
|
93d4851040
|
astyle fix
|
2010-04-02 22:17:09 +03:00 |
Martin Ettl
|
0c2f4831d8
|
#ticket #1513 added asin() support
|
2010-04-02 20:59:39 +02:00 |
Martin Ettl
|
c391a03db6
|
added acos() check to ticket #1513; added testcases for MathLib::toDoubleNumber(), now double conversion of zeros is handled correctly; changed assertEquals() function of testsuite parameters from unsigned int to double. This is needed to avoid overflow of unsigned int by comparing negative floating point values.
|
2010-04-02 20:23:37 +02:00 |
Martin Ettl
|
9788333ee9
|
added log10() check, for checking about parameters passed to mathfunctions that do not make sense
|
2010-04-02 19:17:41 +02:00 |
Daniel Marjamäki
|
8b5aae9adb
|
astyle formatting
|
2010-04-02 07:32:03 +02:00 |