Reijo Tomperi
|
0912836c25
|
Fix: sizeof(char*) was not simplified correctly
|
2010-04-13 23:17:27 +03:00 |
Reijo Tomperi
|
4a33b226e6
|
Fix #1599 (false positive on if( (f = fopen("foo", "r")) == ((FILE*)NULL) ))
http://sourceforge.net/apps/trac/cppcheck/ticket/1599
|
2010-04-13 22:57:52 +03:00 |
firewave
|
bffc097ab3
|
Moved shared files to seperate lib project
|
2010-04-13 21:40:00 +02:00 |
Reijo Tomperi
|
35d2a27b9c
|
Update copyright year in all source files
|
2010-04-13 22:23:17 +03:00 |
Reijo Tomperi
|
30ba3d1aee
|
Change some files to UTF-8
|
2010-04-13 21:57:41 +03:00 |
Reijo Tomperi
|
a33e8f34c5
|
Disable "Overall time" output when --showtime is not used
|
2010-04-13 21:27:47 +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
|
a7903c3385
|
dos2unix
|
2010-04-13 19:25:08 +02:00 |
firewave
|
8966888a92
|
Fixed some VS2008 warnings
|
2010-04-13 11:31:27 +02:00 |
firewave
|
89cdb088d6
|
More --showtime updates:
- removed "average"
- added number of results, average processing time and overall time to non-"file" output
|
2010-04-13 11:23:11 +02:00 |
Oliver Stoeneberg
|
f992ac7da7
|
showtime: refactoring and improving. Added summary/file/top5/average options.
|
2010-04-12 22:13:42 +02:00 |
Daniel Marjamäki
|
38a3fe37f9
|
Revert "Optimization: Made Tokenizer::setVarId a bit faster by temporarily assigning 'string id'. This means less string comparisons are needed."
This reverts commit 4b8080e425 .
|
2010-04-12 21:17:31 +02:00 |
Reijo Tomperi
|
d102369196
|
Fix #1590 (False negative: Array index out of bounds: "0 <= i")
http://sourceforge.net/apps/trac/cppcheck/ticket/1590
|
2010-04-12 22:04:59 +03:00 |
Oliver Stoeneberg
|
cd859a59f2
|
Fixed #1591 (Patch to increase --showtime resolution)
|
2010-04-12 19:41:02 +02:00 |
Robert Reif
|
67fafd4028
|
Fixed #1588 (typedef struct incorrectly simplified)
|
2010-04-12 19:05:31 +02:00 |
Reijo Tomperi
|
cfc5f61e11
|
Merge branch 'master' of git@github.com:danmar/cppcheck
|
2010-04-11 22:56:31 +03:00 |
Reijo Tomperi
|
9a4cbe0540
|
Changed CppCheck::parseFromArgs() to return boolean value and reportOut() in case of error.
It used to throw exception and return error message with the exception.
|
2010-04-11 22:53:21 +03:00 |
Daniel Marjamäki
|
4b8080e425
|
Optimization: Made Tokenizer::setVarId a bit faster by temporarily assigning 'string id'. This means less string comparisons are needed.
|
2010-04-11 21:37:35 +02:00 |
Daniel Marjamäki
|
6f74c0af5e
|
Fixed #1587 (Crash while processing file)
|
2010-04-11 20:57:30 +02:00 |
Reijo Tomperi
|
d1f22d50e6
|
Fix last of the -Wshadow warnings.
|
2010-04-11 14:49:50 +03:00 |
Daniel Marjamäki
|
1f022e281f
|
Fixed SIGABRT in new checking
|
2010-04-10 21:28:49 +02:00 |
Daniel Marjamäki
|
5fed938f56
|
Fixed #1190 (array index out of bounds when index variable is assigned in a condition)
|
2010-04-10 21:12:00 +02:00 |
Daniel Marjamäki
|
96ba41b009
|
Cppcheck Help: Removed information about --auto-dealloc because it is not relevant at the moment.
|
2010-04-10 15:05:59 +02:00 |
Daniel Marjamäki
|
2d41e31cdd
|
Cppcheck: Deprecated the command line options -a, --all and --enable=possibleError
|
2010-04-10 14:54:49 +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
|
7763d25847
|
Fixed #1357 (problem in stl insert method of set template)
|
2010-04-10 10:22:34 +02:00 |
Zachary Blair
|
3152816619
|
Fixed #779 (Tokenizer: delete register keyword everywhere)
|
2010-04-10 09:58:09 +02:00 |
Daniel Marjamäki
|
21717e05cd
|
Refactoring: use more specific conditions instead of std::isupper. Only the A-Z are interesting. This also fixes compiler errors.
|
2010-04-10 09:46:50 +02:00 |
Daniel Marjamäki
|
b4e9185177
|
Fixed #1134 (improve check: pointer access out of bounds not detected (allocated with malloc))
|
2010-04-10 07:57:29 +02:00 |
Reijo Tomperi
|
6dc3860ae9
|
Fix more -Wshadow compile warnings
|
2010-04-09 22:40:37 +03:00 |
Daniel Marjamäki
|
f77dbbb14b
|
Fixed some false positives for unused struct members
|
2010-04-09 19:55:41 +02:00 |
Daniel Marjamäki
|
d360c01675
|
Fixed #1579 (False positive: function can be const when return type is unknown)
|
2010-04-09 19:15:39 +02:00 |
Daniel Marjamäki
|
1328a57103
|
Fixed #1584 (False positive: (static) Member variable not assigned a value in operator=)
|
2010-04-09 18:35:54 +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 |
Martin Ettl
|
f6a526c8c8
|
reduced -Wshadow warnings from gcc-4.4
|
2010-04-08 22:56:34 +02:00 |
Daniel Marjamäki
|
9a4707c025
|
Fixed #1576 ('Index out of bounds' false positive)
|
2010-04-08 19:57:38 +02:00 |
Daniel Marjamäki
|
1b81a9d435
|
Fixed #1537 ('Unused private function' when using pointer to member function)
|
2010-04-08 19:06:54 +02:00 |
Daniel Marjamäki
|
26c447279c
|
astyle formatting
|
2010-04-08 17:41:22 +02:00 |
Robert Reif
|
bc0a318b6d
|
Fixed #1580 (unnamed anonymous struct can segfault)
|
2010-04-08 17:40:23 +02:00 |
Martin Ettl
|
e23197a527
|
fixed ticket 1578, class Filelister had no virtual dtor
|
2010-04-07 23:07:03 +02:00 |
Reijo Tomperi
|
fcf532ccaf
|
Fix some -Wshadow compile warnings
|
2010-04-06 23:17:23 +03:00 |
Daniel Marjamäki
|
cd2f8f6838
|
Merge branch 'master' of git://github.com/czw/cppcheck
|
2010-04-06 22:12:11 +02:00 |
Reijo Tomperi
|
7caaee3739
|
Fix some of the warnings that appear with -Wshadow
|
2010-04-06 22:53:05 +03:00 |
Reijo Tomperi
|
5aa88ee5a2
|
Fix vs warnings. Apply patch from kidkat.
|
2010-04-06 21:35:21 +03:00 |
Reijo Tomperi
|
8ce5379299
|
Fix: warning C4138: '*/' found outside of comment
|
2010-04-06 21:07:46 +03:00 |
Reijo Tomperi
|
c28b365ea0
|
astyle fix
|
2010-04-06 16:56:06 +03:00 |
Jens Bäckman
|
9ae714661b
|
Fix a rare crash with oddly formatted source files
|
2010-04-06 14:23:17 +02:00 |
Martin Ettl
|
c4d1d47f6b
|
fixed ticket 997, now fread and fwrite checked for bufferoverrun
|
2010-04-06 13:55:03 +02:00 |
Reijo Tomperi
|
d3c251f53a
|
Refactor and fix "After a strncpy() the buffer should be zero-terminated" checking,
|
2010-04-05 21:47:50 +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
|
b62ac149b5
|
Cleanup: Removed unused code from CheckMemoryLeak
|
2010-04-05 18:37:46 +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 |
Kimmo Varis
|
5766e83309
|
Improve ifdeffing.
|
2010-04-05 09:48:19 +03:00 |
Daniel Marjamäki
|
d26a2cfc16
|
Uninitialized variables: Detect reading uninitialized data through array/pointer variable
|
2010-04-05 08:38:26 +02:00 |
Reijo Tomperi
|
6db663f6de
|
Fix #1322 (Add cppcheckError and unusedFunction to --errorlist, give out internal errors in xml)
http://sourceforge.net/apps/trac/cppcheck/ticket/1322
|
2010-04-04 23:55:28 +03: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 |
Daniel Marjamäki
|
849be383e6
|
Tokenizer: tokenize 1E-2 into a single token
|
2010-04-04 08:01:05 +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
|
a8f566bfcd
|
Cleanup: Removed redundant simplification in checkmemoryleak.cpp
|
2010-04-03 20:47:38 +02:00 |
Daniel Marjamäki
|
6acb304ef2
|
Cleanup: Removed unfinnished checking of std::find
|
2010-04-03 15:33:13 +02:00 |
Daniel Marjamäki
|
8a8547e6b7
|
astyle formatting
|
2010-04-03 14:28:32 +02:00 |
Daniel Marjamäki
|
a4144b9d18
|
Refactoring: Moved copy/paste code in Tokenizer
|
2010-04-03 09:54:10 +02:00 |
Daniel Marjamäki
|
f8367da1fd
|
Refactoring: broke out copy/pasted code
|
2010-04-03 09:17:16 +02:00 |
Daniel Marjamäki
|
5f9e14e242
|
Borland C++: Fixed compiler error
|
2010-04-03 07:51:40 +02:00 |
Reijo Tomperi
|
38d64d0520
|
astyle fix
|
2010-04-02 23:44:24 +03:00 |
Martin Ettl
|
622663b8db
|
added a helper function to mathlib::isNullValue(), it checks wheter a string has a null representation or not and returns a boolian result; extended nullchecks in testmathlib.cpp
|
2010-04-02 22:41:54 +02:00 |
Daniel Marjamäki
|
427d155644
|
Fixed #1527 (Function can't be const if it has non-const operator overload call)
|
2010-04-02 22:03:07 +02:00 |
Reijo Tomperi
|
93d4851040
|
astyle fix
|
2010-04-02 22:17:09 +03:00 |
Martin Ettl
|
f36af278d0
|
#ticket #1513 added asin() support
|
2010-04-02 21:02:39 +02:00 |
Martin Ettl
|
0c2f4831d8
|
#ticket #1513 added asin() support
|
2010-04-02 20:59:39 +02:00 |
Daniel Marjamäki
|
ff38bbf468
|
Cleanup: The Tokenizer doesn't need to handle UTF in code nor multiline string. That is handled in the Preprocessor.
|
2010-04-02 20:48:32 +02:00 |
Reijo Tomperi
|
a1d0defbc0
|
astyle fix
|
2010-04-02 21:42:06 +03:00 |
Martin Ettl
|
5a21fe7ae8
|
Merge branch 'master' of git@github.com:danmar/cppcheck
|
2010-04-02 20:24:04 +02:00 |
Daniel Marjamäki
|
1d1d79a1e5
|
Cleanup: Removed unused %name% cmd for patterns
|
2010-04-02 20:25:13 +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 |
Daniel Marjamäki
|
c6bbc9d739
|
Fixed #1565 (False positive: Uninitialized variable 'B::j'. There are 2 classes with the name 'B')
|
2010-04-02 19:29:54 +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 |
Robert Reif
|
805c683c1a
|
Cleanup: Removed unneeded code
|
2010-04-02 18:55:27 +02:00 |
Daniel Marjamäki
|
734b10e650
|
Fixed #1479 (false positive: unintialized variable when using goto)
|
2010-04-02 08:35:05 +02:00 |
Robert Reif
|
3507b06e0b
|
Fixed #1563 (false positive: function can be const (assignment to static))
|
2010-04-02 08:02:47 +02:00 |
Robert Reif
|
1dcbf02bd8
|
Fixed #1553 (false positive : uninitialized variable for struct timeval from <sys/time>)
|
2010-04-02 07:36:18 +02:00 |
Daniel Marjamäki
|
8b5aae9adb
|
astyle formatting
|
2010-04-02 07:32:03 +02:00 |
Daniel Marjamäki
|
0cad22314e
|
Reverted 'astyle fix'. Those changes are not in sync with my astyle configuration/setup.
|
2010-04-02 07:30:58 +02:00 |
Martin Ettl
|
193aa7d1d3
|
astyle fix
|
2010-04-02 02:21:53 +02:00 |
Martin Ettl
|
b5fb01c202
|
ticket #1513 new check: Detecting obviously wrong math call arguments passed to math functions)
|
2010-04-02 02:19:38 +02:00 |
Reijo Tomperi
|
c7d36b73ed
|
Fix #1548 (False positive: array index out of bounds in for-loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/1548
|
2010-04-01 22:35:36 +03:00 |
Robert Reif
|
2825773918
|
Fixed #1552 (false positive: function can be const (array of struct))
|
2010-04-01 17:01:52 +02:00 |
Robert Reif
|
2c5fb55c3b
|
Fixed #1551 (false positive: The function 'A::vSet' can be const)
|
2010-04-01 16:59:35 +02:00 |
Robert Reif
|
a8c9aa1f8d
|
Fixed #1550 (Improve check: Assignment to self)
|
2010-04-01 16:40:12 +02:00 |
Reijo Tomperi
|
c460c16cee
|
Fix cross compiling in Linux
Change: #include "fileLister_win32.h" -> #include "filelister_win32.h"
|
2010-03-31 22:54:35 +03:00 |
Daniel Marjamäki
|
a68d8dbc77
|
Fixed #1549 (false positive: uninitialized variable)
|
2010-03-31 20:20:51 +02:00 |
Robert Reif
|
78e54e17f2
|
Unit testing: Added test case for memset. Ticket: #1538
|
2010-03-31 19:53:53 +02:00 |