Daniel Marjamäki
|
b95f0eaa41
|
optimisation: made the memory leaks checking faster
|
2009-10-08 20:49:27 +02:00 |
Daniel Marjamäki
|
aa008ebd3e
|
optimisation: removed duplicate call of Tokenizer::setVarId
|
2009-10-08 17:46:53 +02:00 |
Reijo Tomperi
|
38c2a360ee
|
Fix #674 (Feature request: error filtering)
--suppressions argument added to CLI
http://sourceforge.net/apps/trac/cppcheck/ticket/674
|
2009-10-08 17:56:30 +03:00 |
Reijo Tomperi
|
a078c9353d
|
More test cases for sprintf counter
|
2009-10-08 17:36:00 +03:00 |
Reijo Tomperi
|
5eee9af974
|
sprintf counter improvements
|
2009-10-08 16:27:46 +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
|
f83554e534
|
Use var id instead of var name in check stl.
|
2009-10-07 23:53:16 +03:00 |
Reijo Tomperi
|
668d4d0fe3
|
Use varid instead of varname in stl check.
|
2009-10-07 23:49:06 +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
|
52ca36a6ed
|
Added more test cases for sprintf counter
|
2009-10-07 21:33:44 +03:00 |
Daniel Marjamäki
|
13e43b8710
|
Ashim Kapoor: updated the counter (#694)
|
2009-10-07 18:21:44 +02:00 |
Reijo Tomperi
|
fcd269dbf7
|
Refactoring: Moved some code into a new function.
Renamed count->countSprintfLength.
Added code to collect sprintf parameters.
Added a few TODO test cases.
|
2009-10-07 15:37:20 +03:00 |
Reijo Tomperi
|
8fc21dda27
|
Fix #801 (Tokenizer: Simplify sizeof for function parameters)
http://sourceforge.net/apps/trac/cppcheck/ticket/801
|
2009-10-07 12:05:44 +03:00 |
Reijo Tomperi
|
06dd66bff4
|
Fix #487 (Tokenizer: Simplify sizeof for string array and string pointer)
http://sourceforge.net/apps/trac/cppcheck/ticket/487
|
2009-10-07 11:08:53 +03:00 |
Reijo Tomperi
|
8472e58413
|
Refactored sizeof simplification and fixed one TODO assert.
|
2009-10-07 10:54:34 +03:00 |
Reijo Tomperi
|
d9ae2c171e
|
Detect referenced by value errors for std::map also.
|
2009-10-07 00:04:54 +03:00 |
Reijo Tomperi
|
ab762b1a00
|
Fix #388 (resource leak not detected, allocation through function call)
http://sourceforge.net/apps/trac/cppcheck/ticket/388
|
2009-10-06 23:14:32 +03:00 |
Reijo Tomperi
|
2e69d50458
|
Fix #796 (segmentation fault while scanning)
http://sourceforge.net/apps/trac/cppcheck/ticket/796
|
2009-10-06 21:03:15 +03:00 |
Daniel Marjamäki
|
36fb24b1a5
|
memory leaks: don't write errors for static member variables
|
2009-10-06 18:25:00 +02: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
|
d598bed1c6
|
Fix #575 (Array index out of bounds check: get address of one-past-the-end array is legal)
http://sourceforge.net/apps/trac/cppcheck/ticket/575
|
2009-10-06 14:50:27 +03:00 |
Reijo Tomperi
|
c55140d4cd
|
Fix #580 (double free not found)
http://sourceforge.net/apps/trac/cppcheck/ticket/580
|
2009-10-06 12:44:53 +03:00 |
Reijo Tomperi
|
13fbd616da
|
Moved some test cases from testtokenize into testsimplifytokens and added one TODO case.
|
2009-10-06 12:40:50 +03:00 |
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
|
24c60c881a
|
Better cleanup for coverage script.
|
2009-10-05 11:51:23 +03:00 |
Reijo Tomperi
|
8ed5dad681
|
Add script generate_coverage_report for generating test coverage report using gcov and lcov
|
2009-10-05 10:51:09 +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
|
6b0d364f57
|
Fixed #782 (Checks are missing test cases)
http://sourceforge.net/apps/trac/cppcheck/ticket/782
|
2009-10-04 15:05:58 +07:00 |