Reijo Tomperi
|
1401e3f668
|
Fix #810 (false positive: Division with signed and unsigned operators)
http://sourceforge.net/apps/trac/cppcheck/ticket/810
|
2009-10-11 17:52:35 +03:00 |
Reijo Tomperi
|
ad5d87ee14
|
Fix #802 (possible null pointer dereference reported for reference)
http://sourceforge.net/apps/trac/cppcheck/ticket/802
|
2009-10-08 11:55:37 +03:00 |
Reijo Tomperi
|
014ad937cf
|
Optimize speed and fix one false positive with stl checks.
|
2009-10-07 23:38:21 +03:00 |
Reijo Tomperi
|
d9ae2c171e
|
Detect referenced by value errors for std::map also.
|
2009-10-07 00:04:54 +03:00 |
Daniel Marjamäki
|
c3d56c1d13
|
Fix #797 (false positive: variable scope when using function call)
|
2009-10-06 17:45:28 +02:00 |
Reijo Tomperi
|
6901bcae79
|
Fix #771 (False positive. Null pointer dereference in a switch case)
http://sourceforge.net/apps/trac/cppcheck/ticket/771
|
2009-10-05 14:46:38 +03:00 |
Reijo Tomperi
|
1df8f38423
|
Fix #793 (Improve passedByValue check)
http://sourceforge.net/apps/trac/cppcheck/ticket/793
|
2009-10-05 11:59:28 +03:00 |
Daniel Marjamäki
|
7f6fcc6556
|
Removed CheckOther::warningIf
|
2009-10-04 13:32:04 +02:00 |
Reijo Tomperi
|
724c78fb4d
|
Fix #750 (cppcheck wants variable outside do-loop to be only inside loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/750
Fix #758 (False positive on variable scope with boost foreach)
http://sourceforge.net/apps/trac/cppcheck/ticket/758
|
2009-09-30 00:56:43 +03:00 |
Reijo Tomperi
|
64f0f3b308
|
Fix #751 (if-condition considered redundant even with else-branch)
http://sourceforge.net/apps/trac/cppcheck/ticket/751
Fix also other issue with if(a.b) delete c.b;
Fix also other issue with if(a.b.c) delete a.b.c;
|
2009-09-29 00:18:40 +03:00 |
Reijo Tomperi
|
fdde2182b9
|
Fix GPL comments in all files. ">." was missing from the end.
|
2009-09-27 18:08:31 +03:00 |
Reijo Tomperi
|
16e55f4f89
|
Improve C style pointer cast detection
http://sourceforge.net/apps/trac/cppcheck/ticket/724
|
2009-09-24 23:46:08 +03:00 |
Daniel Marjamäki
|
e4291a5966
|
Fixed #676 (The scope of variable can actually not be limited)
|
2009-09-17 21:05:12 +02:00 |
Daniel Marjamäki
|
36c7108a28
|
Fixed #669 (possible style without --all + false positives)
|
2009-09-15 20:46:47 +02:00 |
Reijo Tomperi
|
8ab26e85cf
|
Don't warn about division by zero if zero if floating point number.
Fix bug from mathlib isInt() and add test case from which few are false positives
|
2009-09-01 22:06:46 +03:00 |
Reijo Tomperi
|
0d468d97c7
|
Fix #630 (Division by zero check only looks at first character of divisor)
http://sourceforge.net/apps/trac/cppcheck/ticket/630
Thanks to liam_routt for finding this and providing fix for it.
|
2009-09-01 17:00:26 +03:00 |
Reijo Tomperi
|
6fb44e733b
|
Fix ticket #612 (Division by zero not detected when zero has type suffix)
http://sourceforge.net/apps/trac/cppcheck/ticket/612
|
2009-08-30 22:02:09 +03:00 |
Daniel Marjamäki
|
5d2c409e46
|
Fixed #623 (False positive: possible null pointer dereference when using the ?: operator)
|
2009-08-28 08:48:37 +02:00 |
Slava Semushin
|
e6120a5725
|
Fixed #581 (Wrong usage of div-function)
http://sourceforge.net/apps/trac/cppcheck/ticket/581
|
2009-08-23 10:37:09 +07:00 |
Daniel Marjamäki
|
7b3fdec5cf
|
Refactoring: Use the MathLib::toString to stringify a number
|
2009-08-21 14:50:13 +02:00 |
Daniel Marjamäki
|
439ff8b144
|
Fixed #599 (False positive: null pointer dereference)
|
2009-08-21 12:42:40 +02:00 |
Daniel Marjamäki
|
2cdb0abb82
|
Refactoring: Use the Token::link instead of loop
|
2009-08-17 22:23:37 +02:00 |
Slava Semushin
|
74bbe945f6
|
Fixed #272 ("The scope of the variable XXX can be limited" not detected when variable is initilialized during declaration)
http://sourceforge.net/apps/trac/cppcheck/ticket/272
|
2009-08-17 02:12:57 +07:00 |
Daniel Marjamäki
|
ad4ea01750
|
Fixed #583 (False positive: the nullpointer check doesn't handle goto properly)
|
2009-08-12 18:54:52 +02:00 |
Daniel Marjamäki
|
e7feac506c
|
Refactoring: updated the nullPointer message so it contains the name of the pointer
|
2009-08-11 17:18:01 +02:00 |
Daniel Marjamäki
|
e6713e9774
|
null pointers: fixed a false positive
|
2009-08-01 11:30:37 +02:00 |
Daniel Marjamäki
|
2d9e4e1a73
|
null pointers: detect when there are possible null pointer dereferencing when looping through a linked list both in inner and outer loops at the same time
|
2009-07-31 10:49:43 +02:00 |
Daniel Marjamäki
|
4e66dc105e
|
null pointers: Fixed false positive when 'do' are used
|
2009-07-29 11:17:22 +02:00 |
Slava Semushin
|
65d6bce165
|
Replace Match() to operator==() from std::string.
No functional change.
|
2009-07-28 00:13:44 +07:00 |
Slava Semushin
|
5ce151983e
|
Replace simpleMatch() to operator==() from std::string.
No functional change.
|
2009-07-28 00:13:11 +07:00 |
Daniel Marjamäki
|
ea49b433ec
|
Fixed #506 (###### If you see this, there is a bug ###### Token::Match())
|
2009-07-26 11:46:00 +02:00 |
Daniel Marjamäki
|
a6d696bf40
|
Fixed #504 (false positive: null pointer dereference)
|
2009-07-25 20:36:02 +02:00 |
Daniel Marjamäki
|
321106c39e
|
speedup of CheckOther::postIncrement
|
2009-07-25 19:36:57 +02:00 |
Slava Semushin
|
5f4c83a25e
|
src/checkother.cpp: simplify condition a bit.
No functional change.
|
2009-07-25 18:23:13 +07:00 |
Slava Semushin
|
8643936e0c
|
Fixed ticket #500 (Tokenizer: simplify the "(p != NULL)" conditions)
Also teach simplifyIfNot() to handle variables like Foo::var.
https://sourceforge.net/apps/trac/cppcheck/ticket/500
|
2009-07-25 18:23:03 +07:00 |
booga
|
9fa8c0ee9c
|
astyle FTW (should have read about that sooner)
|
2009-07-24 19:23:30 -04:00 |
booga
|
52e2e775b2
|
Fix #476 STL Container checks.
Fix #473 Add post increment check for STL objects and Classes.
|
2009-07-24 18:36:15 -04:00 |
Daniel Marjamäki
|
5b81c92a14
|
null pointers: fixed false positives when checking if pointer is null at many locations (#485)
|
2009-07-23 19:59:29 +02:00 |
Daniel Marjamäki
|
06c8ff9d0d
|
null pointers: fixed false positives (#49)
|
2009-07-23 19:02:14 +02:00 |
Daniel Marjamäki
|
d0f1d885ed
|
null pointers: dereferencing a pointer and then checking if it's null (#49)
|
2009-07-23 14:13:46 +02:00 |
Daniel Marjamäki
|
ba36c9426b
|
null pointers: better checking when dereferencing pointer and then checking if it is null (#485)
|
2009-07-21 17:00:11 +02:00 |
Daniel Marjamäki
|
45f8560537
|
invalid pointer usage: broke out CheckOther::invalidPointer from the CheckOther::nullPointer (#485)
|
2009-07-21 12:09:58 +02:00 |
Daniel Marjamäki
|
ce595dd5c7
|
Merge branch 'master' of git@github.com:danmar/cppcheck
|
2009-07-21 07:41:43 +02:00 |
Reijo Tomperi
|
973bb164ea
|
Fix ticket #486 (C-style pointer casting misses const pointers)
http://sourceforge.net/apps/trac/cppcheck/ticket/486
|
2009-07-20 22:52:27 +03:00 |
Daniel Marjamäki
|
0e208eb52f
|
null pointer dereferencing: fixed another false positive (#485)
|
2009-07-20 19:59:55 +02:00 |
Daniel Marjamäki
|
05a1c50ff2
|
null pointer dereferencing: removed a few false positives in the new check that I added (#485)
|
2009-07-20 19:30:33 +02:00 |
Daniel Marjamäki
|
324f12a103
|
fix bug in previous commit that fixed #485
|
2009-07-20 19:10:33 +02:00 |
Daniel Marjamäki
|
b7ba49114c
|
Fixed #485 (detect when code is checking for null after dereferencing)
|
2009-07-20 18:53:41 +02:00 |
Daniel Marjamäki
|
ffac9281c4
|
astyle formatting
|
2009-07-18 20:35:22 +02:00 |
Slava Semushin
|
d3490abd64
|
Finally fixed ticket #284 (style check: redundant condition improvement)
http://sourceforge.net/apps/trac/cppcheck/ticket/284
|
2009-07-18 21:42:08 +07:00 |