Reijo Tomperi
|
272f0d3be5
|
Fix #795 (Preprocessor: Incorrect handling of #if (A) || (B))
http://sourceforge.net/apps/trac/cppcheck/ticket/795
|
2009-10-06 11:47:36 +03:00 |
Reijo Tomperi
|
0a7da96cb6
|
Fix #765 (divsion by zero not detected in std::cout stream)
http://sourceforge.net/apps/trac/cppcheck/ticket/765
|
2009-10-06 09:14:59 +03:00 |
Reijo Tomperi
|
c0a46907c0
|
Removed variable that wasn't used.
|
2009-10-05 23:50:55 +03:00 |
Reijo Tomperi
|
89eb7360e0
|
Replace substr() with compare() to speed up preprocessing.
See #762 (version 1.37 of cppcheck runs extremely slowly on windows)
http://sourceforge.net/apps/trac/cppcheck/ticket/762
|
2009-10-05 23:41:13 +03:00 |
Reijo Tomperi
|
1eba4b374f
|
Fix #794 (Floating point exception on CheckBufferOverrun)
http://sourceforge.net/apps/trac/cppcheck/ticket/794
|
2009-10-05 23:19:44 +03:00 |
Reijo Tomperi
|
edb28d2856
|
Fix #365 (Improve simplifyQuestionMark() in tokenize.cpp)
http://sourceforge.net/apps/trac/cppcheck/ticket/365
|
2009-10-05 17:34:38 +03:00 |
Reijo Tomperi
|
50d9bc78ef
|
Refactoring: Remove findClosing(). It is replaced by Token::link().
|
2009-10-05 15:06:50 +03: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
|
036f3894f1
|
Fix simplifyRedundantParanthesis() to work after '}'
|
2009-10-05 14:30:05 +03:00 |
Reijo Tomperi
|
5a0a5422c3
|
Fix #776 (Tokenizer: remove useless brackets around variable assignment)
http://sourceforge.net/apps/trac/cppcheck/ticket/776
|
2009-10-05 14:22:35 +03:00 |
Reijo Tomperi
|
fc684d7b5a
|
Fix #778 (Tokenizer: impove simplification inside if())
http://sourceforge.net/apps/trac/cppcheck/ticket/778
|
2009-10-05 14:10:09 +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 |
Reijo Tomperi
|
8bb812548c
|
Fix #777 (Tokenizer: double casting simplified incorrectly)
http://sourceforge.net/apps/trac/cppcheck/ticket/777
|
2009-10-05 00:12:12 +03:00 |
Reijo Tomperi
|
498beb7d9a
|
Fix #784 (Tokenizer: Simplify 2[a] -> a[2])
http://sourceforge.net/apps/trac/cppcheck/ticket/784
|
2009-10-04 23:33:41 +03:00 |
Daniel Marjamäki
|
23d8937661
|
Fixed #789 (false positive: resource leak reported when using for loop)
|
2009-10-04 19:58:41 +02:00 |
Daniel Marjamäki
|
4a66edd408
|
Fixed #786 (memleak: segmentation fault for 'if TRACE_ON(x)')
|
2009-10-04 19:30:25 +02:00 |
Daniel Marjamäki
|
ab18f1bd3c
|
Preprocessor: Minor fixes (#772)
|
2009-10-04 15:41:50 +02:00 |
Daniel Marjamäki
|
6b1fae75e5
|
Fixed #785 (False positive: resource leak of extern FILE*)
|
2009-10-04 14:24:41 +02:00 |
Daniel Marjamäki
|
b9cae72b6b
|
doc: fixed linebreak in previous commit 6aea2faacd
|
2009-10-04 13:49:17 +02:00 |
Daniel Marjamäki
|
6aea2faacd
|
doc: refactoring of the docs for CheckOther
|
2009-10-04 13:46:37 +02:00 |
Daniel Marjamäki
|
7f6fcc6556
|
Removed CheckOther::warningIf
|
2009-10-04 13:32:04 +02:00 |
Daniel Marjamäki
|
af5a695f82
|
Fixed #727 (False positive: Resource leak when release is done inside function call)
|
2009-10-04 13:10:08 +02:00 |
Slava Semushin
|
3c5b13a276
|
Fixed #783 (Refactoring: autoVariables error message is hard coded in 3 locations)
http://sourceforge.net/apps/trac/cppcheck/ticket/783
|
2009-10-04 16:47:47 +07:00 |
Daniel Marjamäki
|
29e7261529
|
astyle formatting
|
2009-10-04 11:28:37 +02:00 |
Slava Semushin
|
f6462abef2
|
src/preprocessor.h: fixed comment.
removeParantheses() doesn't throws exception.
Correction for 1a48f869c8 commit.
No code change.
|
2009-10-04 12:55:23 +07:00 |
Daniel Marjamäki
|
ee1bcb728c
|
use '<' comparisons instead of '>' (#610)
|
2009-10-04 07:51:12 +02:00 |
Daniel Marjamäki
|
1a48f869c8
|
Fixed #772 (Preprocessor: #if(A) is not seen equal to #if A)
|
2009-10-04 07:25:30 +02:00 |
Daniel Marjamäki
|
4387071eb1
|
Fixed #733 (New check: locking & unlocking mutex and semaphore variables)
|
2009-10-03 21:46:22 +02:00 |
Slava Semushin
|
b0d8b6ca8b
|
Fixed #780 (Tokenizer: replace typedef for pointers to struct)
http://sourceforge.net/apps/trac/cppcheck/ticket/780
|
2009-10-03 22:02:23 +07:00 |
Slava Semushin
|
803748a654
|
Token::Match(): made message about bug more verbose.
|
2009-10-03 21:35:25 +07:00 |
Slava Semushin
|
9a48efec00
|
Fixed #775 (###### If you see this, there is a bug ###### Token::Match() - varid was 0)
http://sourceforge.net/apps/trac/cppcheck/ticket/775
|
2009-10-03 21:27:16 +07:00 |
Slava Semushin
|
8dc9528a74
|
Tokenizer::simplifyVarDecl(): join 2 conditions.
No functional change.
|
2009-10-03 17:11:52 +07:00 |
Slava Semushin
|
9983066f62
|
Fixed #770 (Tokenizer: Var id not set for static variables in some cases)
http://sourceforge.net/apps/trac/cppcheck/ticket/770
|
2009-10-03 17:05:07 +07:00 |
Daniel Marjamäki
|
0448753b13
|
Borland C++: Fixed compiler errors
|
2009-10-03 09:34:38 +02:00 |
Reijo Tomperi
|
70e236bc56
|
Attempt to speed up preprocessing on macro-in-macro situations.
See #762 (version 1.37 of cppcheck runs extremely slowly on windows)
http://sourceforge.net/apps/trac/cppcheck/ticket/762
|
2009-10-02 22:17:20 +03:00 |
Reijo Tomperi
|
6989670e8f
|
Abort comma simplification when ", %num%" is detected.
This increases speed a lot in some rare situations.
|
2009-10-02 15:38:41 +03:00 |
Daniel Marjamäki
|
e894e37131
|
Fixed #679 (False positive: Unused private function produced by exception specification)
|
2009-10-01 19:45:48 +02:00 |
Reijo Tomperi
|
b3ad712b61
|
Fix #421 (Memory leak not found when typeid() is used.)
http://sourceforge.net/apps/trac/cppcheck/ticket/421
|
2009-10-01 11:56:59 +03:00 |
Reijo Tomperi
|
f1e1f9b8f7
|
Trivial refactoring
|
2009-10-01 11:37:15 +03:00 |
Reijo Tomperi
|
4650e513e1
|
Fix #741 (False positive: Buffer overrun with -a when index increased in multiple locations)
http://sourceforge.net/apps/trac/cppcheck/ticket/741
|
2009-10-01 11:33:53 +03:00 |
Reijo Tomperi
|
d4a97eb2b4
|
Fix #419 (missleading buffer overrun)
http://sourceforge.net/apps/trac/cppcheck/ticket/419
|
2009-10-01 10:59:27 +03:00 |
Reijo Tomperi
|
37fb0d8c8a
|
Removed dead code created by previous commit
|
2009-10-01 10:28:30 +03:00 |
Reijo Tomperi
|
39092150e2
|
Fix #763 (Tokenizer: Goto incorrectly simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/763
|
2009-10-01 10:25:32 +03:00 |
Reijo Tomperi
|
f9871c2d54
|
Fix #745 (false positive: possible null pointer dereference , while)
http://sourceforge.net/apps/trac/cppcheck/ticket/745
|
2009-09-30 21:42:14 +03:00 |
Reijo Tomperi
|
ec44f8f6c7
|
Fix #744 (False positive: (possible error) Array index out of bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/744
|
2009-09-30 15:51:33 +03:00 |
Reijo Tomperi
|
6ed727564c
|
Fix #759 (Tokenizer: Incorrect var id when two variables with same name)
http://sourceforge.net/apps/trac/cppcheck/ticket/759
|
2009-09-30 14:40:10 +03:00 |
Reijo Tomperi
|
7852d38f54
|
Fix #761 (Tokenizer: typedef inside class is incorrectly simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/761
|
2009-09-30 14:35:00 +03:00 |
Reijo Tomperi
|
bb1a9a07e4
|
Fix #760 (Tokenizer: Goto not simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/760
|
2009-09-30 14:30:53 +03: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
|
9d9d600d43
|
Changed simplifyConditionOperator() to create also {} around if and else
Fixed validate() in tokenizer.
|
2009-09-29 23:27:10 +03:00 |