Robert Reif
|
04309f74f5
|
fix #2738 (syntax error on valid code)
|
2011-04-20 19:09:28 -04:00 |
Robert Reif
|
79e5d2db15
|
run astyle
|
2011-04-20 19:07:28 -04:00 |
Daniel Marjamäki
|
061eab4d22
|
Virtual destructors: Enabled the check again. I think it is conclusive now. Ticket: #2728
|
2011-04-20 18:03:16 +02:00 |
Daniel Marjamäki
|
a79e979ae4
|
Memory leaks: Fixed TODO test case. Ticket: #2733
|
2011-04-20 17:16:09 +02:00 |
Robert Reif
|
b1d3d291e6
|
fix #2736 (segmentation fault of cppcheck)
|
2011-04-20 07:49:04 -04:00 |
Daniel Marjamäki
|
46afc54c10
|
astyle formatting
|
2011-04-20 06:41:26 +02:00 |
Daniel Marjamäki
|
aac65247ba
|
Fixed #2733 (Memory leak: not all branch are checked)
|
2011-04-20 06:41:14 +02:00 |
Daniel Marjamäki
|
8417c4eb28
|
const parameter: Added comment to reduce false negatives for various classes in the std namespace
|
2011-04-20 05:40:06 +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 |
Martin Exner
|
2b08744b97
|
Fixed #2676 (setVarId: variables with global scope qualification :: don't get varids)
|
2011-04-18 06:56:39 +02:00 |
Daniel Marjamäki
|
05f59a1567
|
Tokenizer: Fixed bug. When varid is 0 then %varid% doesn't work. Ticket: #2723
|
2011-04-16 17:45:14 +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 |
Daniel Marjamäki
|
f6b23e1d90
|
ErrorLogger: Added severities for inconclusive error and inconclusive warning
|
2011-04-10 16:39:36 +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
|
1178d47a9b
|
--inconclusive : Added command line flag that enable inconclusive checking. It is added for experimental purposes.
|
2011-04-10 12:52:59 +02:00 |
Daniel Marjamäki
|
1d86fb1738
|
Tokenizer: Code cleanup. Use %oror% to simplify code.
|
2011-04-10 11:55:15 +02:00 |
Daniel Marjamäki
|
f284c3a11f
|
CheckOther: Code cleanup. Use %oror%
|
2011-04-10 11:52:12 +02:00 |
Daniel Marjamäki
|
76679255a3
|
Preprocessor: Use %oror% in multiCompare pattern
|
2011-04-10 11:50:19 +02:00 |
Daniel Marjamäki
|
e94e3eca82
|
Preprocessor: Use %oror% in multiCompare pattern
|
2011-04-10 11:47:49 +02:00 |
Daniel Marjamäki
|
ec5ddb16b4
|
CheckOther: Use %op% in CheckUnsignedDivision
|
2011-04-10 11:31:04 +02:00 |
Daniel Marjamäki
|
ad8fb37fb0
|
CheckUninitVar: Use %op%
|
2011-04-10 11:28:18 +02:00 |
Daniel Marjamäki
|
0a1d6efe8c
|
Tokenizer: Use %op% in simplifyOperatorName
|
2011-04-10 11:24:57 +02:00 |
Daniel Marjamäki
|
f179df1f10
|
Tokenizer: Use %op% in simplifyCalculations
|
2011-04-10 11:22:00 +02:00 |
Daniel Marjamäki
|
57869e96e3
|
Tokenizer: Use %op% to clean up pattern
|
2011-04-10 11:09:49 +02:00 |
Daniel Marjamäki
|
970c989023
|
Tokenizer: Code cleanup. Removed redundant variable
|
2011-04-10 09:20:37 +02:00 |
Daniel Marjamäki
|
f4f8aeca03
|
Tokenizer: Fixed bug in last commit
|
2011-04-10 09:18:37 +02:00 |
Daniel Marjamäki
|
4c753ca5ac
|
Tokenizer: Use the %oror% in multiCompare patterns
|
2011-04-10 09:16:29 +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 |
Robert Reif
|
77aebd357e
|
Refactoring: add Token::isAssignmentOp and use it in CheckClass::checkConstFunc
|
2011-04-09 14:36:05 -04:00 |
Daniel Marjamäki
|
7d93bfb42e
|
Refactoring: Use Token::isArithmeticalOp instead of hardcoded conditions
|
2011-04-09 18:50:05 +02:00 |
Daniel Marjamäki
|
f76eb5541c
|
Refactoring: Use %op% instead of Token::isOp
|
2011-04-09 18:47:01 +02:00 |