Daniel Marjamäki
|
a9d8f456ee
|
astyle formatting
|
2011-04-19 20:13:10 +02:00 |
Daniel Marjamäki
|
68e7003bb1
|
Fixed #2734 (False positive: reports 'should be passed by reference' for std::streamoff)
|
2011-04-19 20:07:54 +02:00 |
Ettl Martin
|
47a1332e6a
|
#2733 added sizeof to checkmemory-leaks white list, added a todo-testcase
|
2011-04-19 16:55:27 +02:00 |
Robert Reif
|
c238b1bba6
|
fix #2730 (The same expression on both sides of != is OK when checking for NaN)
|
2011-04-18 19:20:27 -04:00 |
Robert Reif
|
1b7183a294
|
fix previous patch: test for #2614 (missing varid on function parameter)
|
2011-04-18 18:53:11 -04:00 |
Robert Reif
|
6a09ee0be1
|
add test for #2614 (missing varid on function parameter)
|
2011-04-18 07:45:38 -04:00 |
Martin Exner
|
2b08744b97
|
Fixed #2676 (setVarId: variables with global scope qualification :: don't get varids)
|
2011-04-18 06:56:39 +02:00 |
Robert Reif
|
877a233145
|
fix #2716 (Easy to reproduce crash)
|
2011-04-16 10:35:23 -04:00 |
Daniel Marjamäki
|
0beef13794
|
ErrorLogger: Refactoring/fixing the serializer/deserializer for inconclusive messages
|
2011-04-16 13:42:48 +02:00 |
Daniel Marjamäki
|
739b6a93e2
|
Fixed #2713 (False positive (Redundant assignment))
|
2011-04-16 12:07:56 +02:00 |
Robert Reif
|
3159df958d
|
fix #2720 (false positive: syntax error with c++0x code)
|
2011-04-14 19:50:17 -04:00 |
Daniel Marjamäki
|
58dbbb0cab
|
Inconclusive checking: Report inconclusive errors with reportInconclusiveError. It takes the same parameters as reportError.
|
2011-04-14 18:02:01 +02:00 |
Daniel Marjamäki
|
7021e3224b
|
Fixed #2714 (False positive: ternary operator and += style warning.)
|
2011-04-14 17:30:50 +02:00 |
Robert Reif
|
75e5353b6d
|
fix #2718 (Analysis failed. If the code is valid then please report this failure.)
|
2011-04-13 23:58:58 -04:00 |
Robert Reif
|
257197bdd1
|
fix #2717 (false positive: syntax error (typedef void f(int) const;))
|
2011-04-13 23:24:41 -04:00 |
Robert Reif
|
50a1f28d86
|
run astyle
|
2011-04-13 21:12:35 -04:00 |
Daniel Marjamäki
|
7d6e923bd4
|
inconclusive: don't report such messages in xml version 1 format. until we decide how they will be reported in xml version 2 format I don't report it.
|
2011-04-10 21:51:27 +02:00 |
Daniel Marjamäki
|
11bd6bcd30
|
Fixed #2712 (false positive: Division by zero)
|
2011-04-10 21:27:09 +02:00 |
Robert Reif
|
56212370d1
|
add check for same expression on both sides of an operator (part of #2700)
|
2011-04-10 10:25:02 -04:00 |
Robert Reif
|
434783530a
|
Merge branch 'master' of github.com:danmar/cppcheck
|
2011-04-10 09:57:34 -04:00 |
Robert Reif
|
4a50aca7b2
|
fix a bug in checkDuplicateBranch where removed type info like signed/unsigned was not checked for difference
|
2011-04-10 09:57:09 -04:00 |
Daniel Marjamäki
|
e5d43d4ed2
|
Renamed Settings::stupid to Settings::experimental
|
2011-04-10 15:55:08 +02:00 |
Daniel Marjamäki
|
30ee9ba6e4
|
Added Settings::stupid flag that can be used to hide checking that generates false positives.
|
2011-04-10 13:23:45 +02:00 |
Daniel Marjamäki
|
af60f2c4ef
|
Token: Added testcase for matching of %op%
|
2011-04-10 11:15:57 +02:00 |
Daniel Marjamäki
|
747a2331c6
|
Token::Match : Allow that %oror% and %or% is used in multiCompare patterns
|
2011-04-10 08:39:55 +02:00 |
Robert Reif
|
66de41b313
|
partial fix for #2700 (common logic or cut and paste errors)
|
2011-04-09 17:05:27 -04:00 |
Robert Reif
|
d22fcb8184
|
fix bug in previous commit: fix #311 (add detection of duplicated if else-cases)
|
2011-04-09 16:34:16 -04:00 |
Robert Reif
|
7e403ae210
|
fix #311 (add detection of duplicated if else-cases)
|
2011-04-09 15:14:01 -04:00 |
Daniel Marjamäki
|
447f61e9c7
|
Refactoring: Use %op%
|
2011-04-09 18:30:47 +02:00 |
Daniel Marjamäki
|
6c4f5fc496
|
Token::multiCompare : allow that %op% is used in multiCompare pattern
|
2011-04-09 18:09:13 +02:00 |
Daniel Marjamäki
|
f6d910ab3d
|
Refactoring: Use Token::isOp
|
2011-04-09 15:54:36 +02:00 |
Daniel Marjamäki
|
3ad7568df8
|
TestFileLister: astyle formatting and removed commented debug code
|
2011-04-09 08:20:34 +02:00 |
Robert Reif
|
3c8644fcf8
|
added tests for #2710 (False negative on uninitialized member variable in a ctor.)
|
2011-04-08 07:39:30 -04:00 |
Daniel Marjamaki
|
8601c64d99
|
Fixed TestFileLister tests in windows
|
2011-04-07 17:49:18 +02:00 |
Daniel Marjamäki
|
6f7e9a67b0
|
Fixed #2684 (TestFileLister test assumes there are source files in the same directory)
|
2011-04-07 17:36:42 +02:00 |
Daniel Marjamaki
|
fbc8223a6b
|
Preprocessor: Fixed expandMacros problem. Ticket: #2707
|
2011-04-07 16:53:42 +02:00 |
Kimmo Varis
|
803203a876
|
Fix test VS2008 project file attributes.
|
2011-04-07 14:10:31 +03:00 |
Stefan Weil
|
8482eb9d5c
|
Obsolete functions: Fix messages for gethostbyaddr, gethostbyname
|
2011-04-07 00:33:54 +02:00 |
Robert Reif
|
d985fc008a
|
run astyle
|
2011-04-04 22:25:56 -04:00 |
Robert Reif
|
23e4f020e9
|
fix #2706 (Analysis failed. If the code is valid then please report this failure.)
|
2011-04-04 22:18:12 -04:00 |
Ettl Martin
|
af632a6aa0
|
Added todo testcase for ticket #2705
|
2011-04-04 23:29:18 +02:00 |
Daniel Marjamäki
|
4ac3c7fe3b
|
clarify calculation: fixed false negative for 'int x = a - b ? 2 : 3'
|
2011-04-04 21:33:16 +02:00 |
Daniel Marjamäki
|
63acd9bb3e
|
Clarify calculation: Added warnings for << and >>
|
2011-04-03 22:12:22 +02:00 |
Martin Exner
|
bc3507118d
|
Fixed #2696 (False positive nullpointer)
|
2011-04-03 21:06:42 +02:00 |
Daniel Marjamäki
|
ed8cdddcf5
|
Tokenizer: execute the simplifyIfNot and simplifyIfNotNull in the normal token list. ticket #2642
|
2011-04-02 21:21:05 +02:00 |
Daniel Marjamäki
|
29422b8552
|
clarify precedence: made the short message shorter
|
2011-04-02 17:27:36 +02:00 |
Daniel Marjamäki
|
ea57e10c7f
|
Tokenizer::simplifyCalculations: simplify division result if it's a whole number, even though it doesn't have precedence
|
2011-04-02 12:52:11 +02:00 |
Daniel Marjamäki
|
855b01cd5a
|
Clarify precedence 'a*b?c:d' : warn for addition, subtraction and division also. tried to clarify the message more
|
2011-04-02 11:43:20 +02:00 |
Daniel Marjamäki
|
f34e9e6623
|
Tokenizer: better simplification of calculations in conditions
|
2011-04-02 11:08:58 +02:00 |
Robert Reif
|
cf65a73c47
|
fix CheckClass::operatorEq to check return type more closely (to match check description)
|
2011-03-31 19:40:28 -04:00 |