Alexander Mai
|
6fe2f8b01b
|
#5782 Endless recursion in CheckClass::checkReturnPtrThis(). Break endless recursion by remembering the callstack (missing header file)
|
2014-05-11 12:27:43 +02:00 |
Alexander Mai
|
b139ae3209
|
#5782 Endless recursion in CheckClass::checkReturnPtrThis(). Break endless recursion by remembering the callstack
|
2014-05-11 12:26:24 +02:00 |
Daniel Marjamäki
|
0dfbbd0f80
|
Fixed #5479 (Tokenizer: don't remove parentheses in code 'a<b<c>>(2)')
|
2014-05-11 08:22:28 +02:00 |
Daniel Marjamäki
|
827cfac91e
|
Refactoring of CheckOther::checkModuloAlwaysTrueFalse using AST
|
2014-05-10 20:49:29 +02:00 |
Daniel Marjamäki
|
8cc1f664d8
|
Uninitialized member variable: Fixed false negative when struct is read
|
2014-05-10 20:20:55 +02:00 |
Daniel Marjamäki
|
4c344adcf1
|
Uninitialized struct member: fixed false negative when struct assignment is seen
|
2014-05-10 19:56:44 +02:00 |
PKEuS
|
04fbbdb5e8
|
Refactorized CheckBufferOverrun::arrayIndexThenCheck() and fixed false negative
|
2014-05-10 13:00:44 +02:00 |
PKEuS
|
59418e605f
|
Increased version number to 1.65.99/1.66 dev.
|
2014-05-10 12:57:33 +02:00 |
Daniel Marjamäki
|
c0131eea9e
|
1.65: Set version
|
2014-05-10 12:02:06 +02:00 |
Daniel Marjamäki
|
f31ec37d52
|
Fixed 2 Cppcheck warnings. Function can be static|const
|
2014-05-10 11:49:14 +02:00 |
Daniel Marjamäki
|
4e2c0617d3
|
Merge pull request #303 from simartin/ticket_5297
Ticket #5297: simplifyCalculations should pass once more on simplified tokens
|
2014-05-10 10:18:29 +02:00 |
Simon Martin
|
1e4902cb65
|
Ticket #5297: simplifyCalculations should pass once more on tokens being simplified.
|
2014-05-10 09:37:56 +02:00 |
Daniel Marjamäki
|
2905593cf6
|
Merge pull request #302 from simartin/ticket_5774
Ticket #5774: Properly handle "typename..." in template parameter list.
|
2014-05-10 09:32:06 +02:00 |
Simon Martin
|
46d8d81176
|
Ticket #5774: Properly handle "typename..." in template parameter list.
|
2014-05-09 22:20:22 +02:00 |
PKEuS
|
edd84c0906
|
Fixed #5773: Don't prepend "std::" to function definitions
|
2014-05-09 21:58:28 +02:00 |
PKEuS
|
c0fc47643f
|
Fixed false positive #5772: Use AST to check if modulo operation is preceded by an arithmetical operation.
|
2014-05-09 21:58:28 +02:00 |
Daniel Marjamäki
|
1541e27e4a
|
Fixed #5533 (False positive: 'Assignment of function parameter has no effect outside the function.')
|
2014-05-09 18:43:29 +02:00 |
Daniel Marjamäki
|
cb43bee10d
|
Same expression: don't warn for same expressions when there is assignment
|
2014-05-09 06:16:27 +02:00 |
Simon Martin
|
512e22d1ba
|
Ticket #5315: Memory leak analysis confused by ((variable).attribute) notation.
|
2014-05-08 20:58:24 +02:00 |
Daniel Marjamäki
|
25f40b8b97
|
Merge pull request #298 from simartin/clang_s-getFlag_warn
Silence clang -Wsign-conversion warning with Token::setFlag.
|
2014-05-08 15:54:25 +02:00 |
Daniel Marjamäki
|
331d7e2e42
|
Merge pull request #297 from simartin/ticket_5605_5759
Fix ticket #5605 (take 3)
|
2014-05-08 15:51:42 +02:00 |
Simon Martin
|
53d5df8cef
|
Silence clang -Wsign-conversion warning with Token::setFlag.
|
2014-05-08 14:16:43 +02:00 |
Simon Martin
|
2a6acdf357
|
Ticket #5605: Don't consider '>' as a default template parameter value. Don't choke on template parameters with erroneous default values.
Ticket #5759: Properly handle pointers to class members in template parameter lists.
Ticket #5762: Handle template specialization tokens.
|
2014-05-08 13:54:56 +02:00 |
Daniel Marjamäki
|
9fc8bdcbac
|
Fixed #5770 (AST: better handling of 'a.b[c.d]==0')
|
2014-05-08 06:48:53 +02:00 |
Daniel Marjamäki
|
4710c5c4f1
|
Merge pull request #296 from mpaladin/master
Fix redundantConditionError check description
|
2014-05-07 16:01:26 +02:00 |
Robert Reif
|
0bdecfd9cb
|
Fixed #5767 (move bool Variable flag into flag variable)
|
2014-05-07 15:59:21 +02:00 |
Massimo Paladin
|
5e996bc63b
|
Fix redundantConditionError check description
|
2014-05-07 14:54:50 +02:00 |
Daniel Marjamäki
|
5ad3ac2653
|
Fixed #5695 (FP: Mismatching assignment and comparison)
|
2014-05-06 19:35:47 +02:00 |
Daniel Marjamäki
|
b354de6b23
|
Fixed #5750 (FP:Opposite conditions in nested 'if' blocks lead to a dead code block)
|
2014-05-06 16:15:12 +02:00 |
Robert Reif
|
2d2847ddbd
|
Fixed #5764 (Store Token flags in a single variable)
|
2014-05-06 06:35:48 +02:00 |
Daniel Marjamäki
|
6e25280c90
|
Reverted fix for #5605 since it cause this crash: #5759
|
2014-05-05 21:11:47 +02:00 |
Daniel Marjamäki
|
d17f926422
|
Merge pull request #294 from simartin/typo_520aaf71
Reinstate error message.
|
2014-05-04 20:49:01 +02:00 |
Robert Reif
|
ae96491d6c
|
Fixed #5756 (declspec(nothrow) not supported)
|
2014-05-04 20:47:20 +02:00 |
Daniel Marjamäki
|
7d583e639c
|
AST: Fixed handling of '(((typeof(x))*)0)'
|
2014-05-04 18:36:04 +02:00 |
Simon Martin
|
8519a954a0
|
Reinstate error message.
|
2014-05-04 17:06:38 +02:00 |
Daniel Marjamäki
|
42b85088c5
|
Double free: Improved handling of noreturn functions. Partial revert of previous fix.
|
2014-05-04 13:11:21 +02:00 |
Daniel Marjamäki
|
636a15ac55
|
Doublefree: Fixed FP when exit() is called
|
2014-05-04 12:02:55 +02:00 |
Daniel Marjamäki
|
5edb6092a1
|
Merge pull request #293 from simartin/ticket_5709
Ticket #5709: Comma operator not properly tokenized.
|
2014-05-04 11:46:04 +02:00 |
Robert Reif
|
888fd44039
|
Fixed #5609 (Wrong warning: %zu requires 'size_t' - but type is 'std::size_t')
|
2014-05-04 07:55:23 +02:00 |
Simon Martin
|
b03f36cd71
|
Ticket #5709: Comma operator not properly tokenized.
|
2014-05-03 21:35:04 +02:00 |
Daniel Marjamäki
|
1903d95015
|
Fixed #5661 (--suppress=missingInclude has no effect)
|
2014-05-03 19:31:15 +02:00 |
Daniel Marjamäki
|
ed1d63ffc0
|
Fixed #5636 (FP: matrix out of bounds)
|
2014-05-03 18:12:06 +02:00 |
Daniel Marjamäki
|
2f3f42d7f1
|
astyle formatting
[ci skip]
|
2014-05-03 18:10:49 +02:00 |
Simon Martin
|
ffe6a0be2b
|
Ticket #5605: Don't consider '>' as a default template parameter value. Don't choke on template parameters with erroneous default values.
|
2014-05-03 16:26:14 +02:00 |
Daniel Marjamäki
|
5a23b739da
|
ValueFlow: Improved bailout when variable is reassigned
|
2014-05-03 12:49:07 +02:00 |
Daniel Marjamäki
|
4b7aaba159
|
AST: assignment operators are executed from right to left
|
2014-05-03 12:08:42 +02:00 |
Alexander Mai
|
d3e8bbdc51
|
#5618 False positive: (performance) Use const reference for 'temp' to avoid unnecessary data copying. - redundantCopyLocalConst/CheckOther::checkRedundantCopy() is prone to false positives. As a quick fix that check becomes inconclusive.
|
2014-05-02 20:09:38 +02:00 |
Robert Reif
|
7d762ca9f7
|
Made 'unhandled exception' inconclusive and style message. #5751
|
2014-05-02 06:57:23 +02:00 |
Daniel Marjamäki
|
fadc27092e
|
Fixed #5752 (FP (error) Possible null pointer dereference)
|
2014-05-01 15:15:26 +02:00 |
Robert Reif
|
f6aaf6cc0d
|
Unhandled exceptions: Dont warn when there are unhandled exceptions in main() function. #5751
|
2014-05-01 13:41:01 +02:00 |
Alexander Mai
|
d2ebd718a9
|
#5691 False positive: autovarInvalidDeallocation - function name 'delete' in C code
|
2014-05-01 07:32:37 +02:00 |
PKEuS
|
ab4f58a146
|
Partially reverted 1317063b21 . enum class is not part of the common subset of supported C++11 functions of the compilers supported by cppcheck. (Fixes #5745)
|
2014-04-30 21:06:01 +02:00 |
PKEuS
|
71264fb672
|
Fixed assertion failure in VS debug mode
|
2014-04-30 21:06:01 +02:00 |
Alexander Mai
|
a25cb53c19
|
#5751 - Warning unhandledExceptionSpecification is issued even if warnings are not enabled
|
2014-04-30 19:33:17 +02:00 |
orbitcowboy
|
e48550d8d7
|
Merge branch 'master' of https://github.com/danmar/cppcheck
|
2014-04-23 01:24:01 +02:00 |
Alexander Mai
|
4815e3c4c5
|
Fix some segmentation faults seen while reducing #5743 (sorry, no test cases supplied)
|
2014-04-29 20:16:50 +02:00 |
Daniel Marjamäki
|
b5e023a46c
|
Fixed #5472 (sizeof not handled as operator with respect to null pointer dereference)
|
2014-04-29 20:09:11 +02:00 |
Daniel Marjamäki
|
fc24d491cc
|
Fixed #5560 (false positive: C-style pointer casting)
|
2014-04-29 06:21:30 +02:00 |
Daniel Marjamäki
|
648479d909
|
AST: Fixed tree for 'a.b[5]'
|
2014-04-29 06:09:26 +02:00 |
Daniel Marjamäki
|
36895674ce
|
Refactoring. Simplified condition using Token::Match.
|
2014-04-29 04:45:45 +02:00 |
Robert Reif
|
4de9e29adc
|
Fixed #5706 (operators with noexcept broken)
|
2014-04-29 04:37:13 +02:00 |
Daniel Marjamäki
|
1233d8e47f
|
Fixed #5657 (false positive: (error) Possible null pointer dereference: p)
|
2014-04-28 15:54:54 +02:00 |
Daniel Marjamäki
|
3300d39854
|
Fixed #5721 (valueFlowBeforeCondition: stop when goto label is seen)
|
2014-04-28 06:21:48 +02:00 |
Alexander Mai
|
ead3f28e06
|
Small enhancements for doxygen
|
2014-04-27 21:42:10 +02:00 |
Daniel Marjamäki
|
9c74d914d7
|
Fixed #5667 (Tokenizer: simplify 'void (X::*f)()' to 'void *f')
|
2014-04-27 19:49:21 +02:00 |
Daniel Marjamäki
|
d279f3fb41
|
Fixed #5736 (AST: proper handling of 'a=(b).c;')
|
2014-04-27 18:03:50 +02:00 |
Daniel Marjamäki
|
9f2e37da37
|
AST: fixed 'a.b++' and '*c[5]--'
|
2014-04-27 16:02:24 +02:00 |
PKEuS
|
ecec4b0b46
|
Fixed false positive #5187: arithOperationsOnVoidPointerError when referencing void*
|
2014-04-27 12:18:33 +02:00 |
PKEuS
|
866ab1ce14
|
Fixed false positive #5689: Care about usage of return values of memory functions
|
2014-04-27 12:18:33 +02:00 |
PKEuS
|
ea23a0467b
|
Fixed false positive #5732: autovarInvalidDeallocation on pointer to array
|
2014-04-27 12:18:33 +02:00 |
Daniel Marjamäki
|
bde6698bcd
|
Fixed #5731 (False positive with opposite conditions)
|
2014-04-27 10:21:20 +02:00 |
Daniel Marjamäki
|
7317785e32
|
astyle formatting
[ci skip]
|
2014-04-27 10:20:21 +02:00 |
Alexander Mai
|
17ec0af6a7
|
#5734 A FP literalWithCharPtrCompare was issued upon comparison with a char referenced within a string literal
|
2014-04-27 09:40:13 +02:00 |
Alexander Mai
|
520aaf71b8
|
Fix some doxygen comments and add shortcut for tok==NULL to Token::simpleMatch()
|
2014-04-27 09:32:02 +02:00 |
Alexander Mai
|
1317063b21
|
Fix some more (clang++) compiler warnings
|
2014-04-26 20:44:21 +02:00 |
Robert Reif
|
ca9386859b
|
Tokenizer: replace ') const| {' pattern to detect function start
|
2014-04-26 18:31:56 +02:00 |
Robert Reif
|
cd6332d960
|
Tokenizer: replace ') const| {' pattern to detect function start
|
2014-04-26 18:30:09 +02:00 |
Alexander Mai
|
b5c580a59e
|
Fix some clang warnings - most related to semantic doxygen errors
|
2014-04-26 16:17:26 +02:00 |
Alexander Mai
|
b74e997435
|
Fix false positive nullPointer messages within sqlite3 after goto by adding a suitable bailout inside valueFlowAfterAssign()
|
2014-04-26 14:41:28 +02:00 |
Daniel Marjamäki
|
11856b51aa
|
AST: Fixed handling of 'a=b(c**)+1'
|
2014-04-26 13:32:08 +02:00 |
Daniel Marjamäki
|
c34616a6ba
|
AST: Fixed handling of 'a = b.c[++(d.e)];'
|
2014-04-26 13:16:34 +02:00 |
Frank Zingsheim
|
ffa55bbaa0
|
Fixed #5725 (FP: multicondition Expression is always false because 'else if' in pngwrite.cxx (LibreOffice))
|
2014-04-26 11:59:38 +02:00 |
Daniel Marjamäki
|
853d56030b
|
Fixed #5559 (false positive: (error) Possible null pointer dereference: pSTRunner)
|
2014-04-26 11:27:58 +02:00 |
Reijo Tomperi
|
ae23ab64b7
|
Change encoding to UTF-8 for two header files that were not using UTF-8.
|
2014-04-26 00:41:33 +03:00 |
Daniel Marjamäki
|
8602d13dc9
|
Fixed #5722 (AST: wrong handling of 'x = ((a[i])->getx)();' - the 'x' is an operand of the =)
|
2014-04-25 06:06:54 +02:00 |
Dmitry-Me
|
a7c7b00407
|
Reuse variable value, return earlier.
|
2014-04-24 12:24:40 +04:00 |
Daniel Marjamäki
|
9406f3428a
|
IncompleteStatement: Fixed false positive when '({..})' blocks are used
|
2014-04-24 06:32:29 +02:00 |
Alexander Mai
|
5c98e4d039
|
Merge branch 'master' of https://github.com/danmar/cppcheck
|
2014-04-23 20:50:48 +02:00 |
Alexander Mai
|
9412f9d216
|
#5717 Segmentation fault when providing multiple --include=/path/to/header arguments.
|
2014-04-23 20:50:16 +02:00 |
Daniel Marjamäki
|
d144197d7e
|
Fixed segfault
|
2014-04-23 19:49:16 +02:00 |
Daniel Marjamäki
|
aea528c763
|
enum: don't simplify enum constant that is assigned
|
2014-04-23 17:10:17 +02:00 |
Daniel Marjamäki
|
272fcc18d8
|
Don't warn about redundant number statement in '({ do_something(); 0; })'
|
2014-04-23 16:23:19 +02:00 |
Dmitry-Me
|
9b74d43473
|
Rename local variable plus return a bit earlier on edge condition.
|
2014-04-23 11:18:09 +04:00 |
Frank Zingsheim
|
87354bf9d2
|
Fixed #5707 (false negative: unreachable code is not detected (code after return))
|
2014-04-23 07:58:43 +02:00 |
Daniel Marjamäki
|
3c5cf299e3
|
Fixed #5708 (Improve oppositeInnerCondition)
|
2014-04-23 07:57:13 +02:00 |
orbitcowboy
|
a6af8f5dcf
|
#5748: Fixed FP (wrongmathcall) do not warn if an object calls a function foo.log(0).
|
2014-04-23 01:23:38 +02:00 |
Daniel Marjamäki
|
fe80f858d1
|
ValueFlow: Improved analysis in the valueFlowAfterAssign
|
2014-04-22 16:10:20 +02:00 |
Alexander Mai
|
2c3807f089
|
#5703 - Segfault recursive loop - Patch by zingsheim
|
2014-04-21 22:13:02 +02:00 |
Alexander Mai
|
623e5db0b2
|
#5702 crash: clang: test/Parser/cxx0x-member-initializers.cpp (bailout withn an internal error)
|
2014-04-21 21:44:17 +02:00 |
Mark de Wever
|
6f3e3f5e2e
|
Fixed #5701 (FP for std::unordered_map::operator[]; there is no const version)
|
2014-04-21 16:39:44 +02:00 |