Daniel Marjamäki
|
ed97b62610
|
Fixed #3275 (Missing includes always reported)
|
2011-11-06 08:59:07 +01:00 |
Daniel Marjamäki
|
e11c1f7975
|
Fixed #3265 (false positive: comparison of bool with nonzero integer)
|
2011-11-06 08:21:34 +01:00 |
Edoardo Prezioso
|
99463d3368
|
Improve same expression check: take count of operations and assignments before the same expression and add missing 'return' pattern to the struct member variable part of the check.
|
2011-11-05 22:25:01 +01:00 |
Daniel Marjamäki
|
d4a8184339
|
Fixed #3251 (Redundant code: Found a statement that begins with numeric constant)
|
2011-11-05 20:28:52 +01:00 |
Daniel Marjamäki
|
5edf153602
|
Fixed #3294 (Token::Match multi compare false negative)
|
2011-11-05 19:24:21 +01:00 |
Daniel Marjamäki
|
580fef6951
|
Merge pull request #55 from richq/sameexpr
Improve for same expression on both sides of operator
|
2011-11-05 10:28:14 -07:00 |
Richard Quirk
|
a3f2c1e651
|
Improve for same expression on both sides of operator
|
2011-11-05 15:46:11 +01:00 |
Richard Quirk
|
68202d8ffb
|
Extra check for auto_ptr new[]
This fixes cases like this:
auto_ptr<foo> bar(new foo[10]);
which previously did not work correctly.
|
2011-11-05 15:45:59 +01:00 |
Thomas Jarosch
|
2a46c635f6
|
Test case to demonstrate #3294
|
2011-11-05 14:04:23 +01:00 |
Daniel Marjamaki
|
b96ab6ba26
|
Fixed #3188 (Function parser false positive)
|
2011-11-05 12:23:05 +01:00 |
Daniel Marjamäki
|
085a6285fa
|
Fixed #3117 (Tokenizer::simplifyKnownVariables : Don't simplify static variable that is changed)
|
2011-11-05 08:30:11 +01:00 |
PKEuS
|
0c469bae41
|
Fixed #3089 (New Check: Detect wrong usage of printf/scanf)
|
2011-11-05 07:29:53 +01:00 |
Daniel Marjamäki
|
b91d5e076a
|
Merge pull request #54 from gansb/master
Testcases for #3287 and #3290
|
2011-11-04 22:57:43 -07:00 |
Thomas Jarosch
|
4342fd254c
|
Fixed #3266 (False positive on dangerous usage of .c_str())
|
2011-11-04 19:21:19 +01:00 |
Benjamin Goose
|
54c445ca20
|
Add tests for various bugs.
False positive: uninitialized variable (ticket #3287).
False positive: null pointer dereference in typeid (ticket #3290).
|
2011-11-04 12:27:32 +01:00 |
Daniel Marjamäki
|
9b8ffe7219
|
Fixed #3248 (Tokenizer: better handling of char constants that are compared with numeric constants)
|
2011-11-03 20:03:31 +01:00 |
Daniel Marjamäki
|
73f3b2074b
|
Fixed #3285 (wrong #elif behaviour)
|
2011-11-03 19:05:48 +01:00 |
Daniel Marjamaki
|
b6b5416b42
|
Tokenizer: Fixed failed unit test
|
2011-11-02 20:42:38 +01:00 |
Daniel Marjamaki
|
8950b4bd72
|
Removed old test case for missing includes. There is better testing in TestPreprocessor::def_missingInclude
|
2011-11-02 20:34:57 +01:00 |
Daniel Marjamaki
|
4fe3f8f080
|
Preprocessor: Unit test handling of missing includes in 'normal' preprocessing
|
2011-11-02 20:29:14 +01:00 |
Daniel Marjamaki
|
0884204c2f
|
Fixed #3279 (Token::Match called with varid 0)
|
2011-11-02 18:31:13 +01:00 |
Daniel Marjamäki
|
af7bf5c805
|
removed 'explicit constructors' check. see comments in pull request #51 for the reasons.
|
2011-11-02 17:12:46 +01:00 |
Daniel Marjamaki
|
937a4497ca
|
Fixed #3272 (Internal error)
|
2011-11-01 18:03:32 +01:00 |
Ettl Martin
|
603a37b08a
|
added testcase for ticket #3273
|
2011-11-01 11:52:39 +01:00 |
Daniel Marjamäki
|
b18778129c
|
STL: updated error messages for 'useless call to find/swap/substr'. Ticket: #3258
|
2011-10-31 21:32:30 +01:00 |
Daniel Marjamäki
|
a7f27a83a7
|
Fixed #3271 (Regression: something related to symbol database / varid)
|
2011-10-31 18:33:15 +01:00 |
Daniel Marjamäki
|
f7fe665b00
|
Fixed #3231 (False positive: uninitialized variable '({...})')
|
2011-10-30 18:19:09 +01:00 |
Daniel Marjamäki
|
63937f592e
|
Fixed #3228 (false positive: possible null pointer dereference)
|
2011-10-30 17:59:38 +01:00 |
Daniel Marjamäki
|
7035d4cdd2
|
astyle formatting
|
2011-10-30 17:41:05 +01:00 |
Daniel Marjamaki
|
71f08d0a66
|
Fixed #3222 (false positive: Uninitialized variable with function pointer)
|
2011-10-30 17:22:30 +01:00 |
Edoardo Prezioso
|
68cb7a2731
|
Fix all the test failures caused by my previous commit.
|
2011-10-30 11:27:27 +01:00 |
Edoardo Prezioso
|
44a234f9b0
|
Fixed lots of test failures caused by my previous commit.
There are still some which I don't know how to fix.
|
2011-10-30 11:21:46 +01:00 |
Daniel Marjamäki
|
0d1046eeeb
|
Merge pull request #51 from richq/explicit
Explicit constructors
|
2011-10-30 01:38:26 -07:00 |
Edoardo Prezioso
|
0bb1ad8782
|
Little improvements with cli messages and added new '--template' mode: 'edit'.
This option makes it possible opening correctly some editors like 'gedit' or 'vim' by copy-pasting the filename and the line to the command sequence.
|
2011-10-29 23:50:09 +02:00 |
Daniel Marjamäki
|
92333b585a
|
Fixed #3092 (Tokenizer::setVarId : shadow variable in member function gets the wrong varid)
|
2011-10-29 21:25:58 +02:00 |
Daniel Marjamäki
|
dc29d43e83
|
astyle formatting
|
2011-10-29 20:27:50 +02:00 |
Daniel Marjamäki
|
d7be62a6f9
|
Fixed #3221 (FP: Array 'arr[2147483648]' index 0 out of bounds in loop when size unknown to cppcheck)
|
2011-10-29 20:26:24 +02:00 |
Daniel Marjamäki
|
24a2b6e6ba
|
Fixed #3195 (operator() from a functor-struct is never used)
|
2011-10-29 20:04:43 +02:00 |
Daniel Marjamäki
|
acaa9c456f
|
Fixed #3152 (Tokenizer: template constructor is removed)
|
2011-10-29 19:45:47 +02:00 |
Thomas Jarosch
|
0f299aa9bf
|
FileLister (linux): Move absolute path determination to own function
Cleans up the #ifdef hell in the code.
Provide unit test for it.
|
2011-10-29 19:30:33 +02:00 |
Daniel Marjamäki
|
316aa920eb
|
Fixed #3245 (False positive: Dangerous usage of 'string' (strncpy doesn't always 0-terminate it))
|
2011-10-29 19:11:42 +02:00 |
Richard Quirk
|
2ca932a3ae
|
Add checks for explicit constructors
Single-argument constructors should be explicit. Constructors with
multiple arguments should not be marked explicit.
|
2011-10-29 18:24:16 +02:00 |
Daniel Marjamäki
|
8f49eb6a7e
|
Tokenizer: Make sure that friend classes don't get varid. Ticket: #2962
|
2011-10-29 18:22:58 +02:00 |
Richard Quirk
|
b88d61dcb4
|
Make single-argument test constructors explicit
|
2011-10-29 18:17:25 +02:00 |
Daniel Marjamäki
|
d75ef01d2b
|
Null pointer: Added inconclusive error message when calling member function of NULL object.
|
2011-10-29 15:48:54 +02:00 |
Thomas Jarosch
|
ad40586e96
|
Disable internal checks if NDEBUG is defined (release build)
|
2011-10-29 12:47:12 +02:00 |
Thomas Jarosch
|
3d438003ff
|
Add internal check that searches Token::Match() patterns for missing % end charaters
Example: "%type" or "foo %var bar"
|
2011-10-29 12:22:26 +02:00 |
Daniel Marjamäki
|
b67cb077a3
|
fix unit test failure
|
2011-10-29 12:21:22 +02:00 |
Daniel Marjamäki
|
8416768e03
|
Merge pull request #50 from richq/strncmp
Improved strncmp checks
* strings are always the same
* inconclusive: using sizeof(char *) as size parameter
|
2011-10-29 03:13:21 -07:00 |
Reijo Tomperi
|
5e0e2c4782
|
Fix #3256 (Null pointer dereference not detected)
http://sourceforge.net/apps/trac/cppcheck/ticket/3256
It is now detected if --inconclusive command line argument is given (the argument is unofficial currently)
|
2011-10-29 11:35:31 +03:00 |