Daniel Marjamäki
|
deaafd59d7
|
CheckClass: Undo the rule of 3 checker to avoid some warnings
|
2018-04-24 22:42:25 +02:00 |
Daniel Marjamäki
|
485d3e0229
|
CheckClass: Tweak rule of 3 checker
|
2018-04-24 21:45:30 +02:00 |
Daniel Marjamäki
|
6fb25dcaa4
|
CheckClass: Changed checker for 'copy constructor' and 'operator=' to a 'rule of 3' checker
|
2018-04-24 16:07:58 +02:00 |
Daniel Marjamäki
|
0d434efc15
|
virtualCallInConstructor: Clarify warning message
|
2018-04-04 13:04:40 +02:00 |
Daniel Marjamäki
|
b3b364b42f
|
virtualCallInConstructor: Updated warning message
|
2018-04-04 12:52:58 +02:00 |
IOBYTE
|
fa968d75bd
|
Partial fix for #8291: (False positive uninitMemberVar when calling delegated constructor) (#1142)
|
2018-04-04 08:29:12 +02:00 |
Daniel Marjamäki
|
ee22a325c7
|
virtual function call in constructor: don't warn about explicit scoped call
|
2018-04-03 14:02:59 +02:00 |
IOBYTE
|
2a418fa0f5
|
Fixed #8466 (False Positive: Member variable is not initialized in the constructor. When using overloaded constructors) (#1141)
|
2018-04-02 18:32:45 +02:00 |
Daniel Marjamäki
|
1046ca2120
|
Improve check: Warn about virtual function calls in constructor/destructor
|
2018-04-02 15:31:47 +02:00 |
Simon Martin
|
b4f32206af
|
Ticket #8337: Fix false positive in copy constructor detection. (#1040)
|
2018-01-20 14:46:09 +01:00 |
Daniel Marjamäki
|
c4caee6b18
|
Updated copyright year
|
2018-01-14 15:37:52 +01:00 |
PKEuS
|
b684e1f202
|
Updated AStyle to version 3.0.1
|
2018-01-08 20:20:33 +01:00 |
Daniel Marjamäki
|
91839c2534
|
Fixed #7987 (FP copyCtorAndEqOperator - class with a move constructor and move assignment operator)
|
2017-12-23 10:35:14 +01:00 |
Daniel Marjamäki
|
4cb3548e2b
|
unsafeClassDivZero: change severity to style
|
2017-10-21 21:51:58 +02:00 |
Daniel Marjamäki
|
5de3c43209
|
changed id for new checker to unsafeClassDivZero
|
2017-10-21 21:45:04 +02:00 |
Daniel Marjamäki
|
15d814e609
|
classPublicInterfaceDivZero: Try to make the error message a bit better. Added variable name and what the bad input value is.
|
2017-10-21 13:00:52 +02:00 |
Daniel Marjamäki
|
299835da2f
|
classPublicInterfaceDivZero: don't warn in overloaded operators. It is normal behaviour that these are not protected.
|
2017-10-21 08:56:23 +02:00 |
Daniel Marjamäki
|
8a7411abdb
|
CheckClass: Fix wrong 'public interface' warnings
|
2017-10-20 22:10:55 +02:00 |
Daniel Marjamäki
|
86c84029e3
|
New check: Check public interface of classes (#8248)
|
2017-10-20 02:02:51 +02:00 |
Dmitry-Me
|
6cfcf8610d
|
Improve coverage for operator= return type detection.
This adds a testcase with parameter being a reference to non-const.
|
2017-09-14 00:12:10 +03:00 |
Robert Reif
|
f5044bb65f
|
Fixed #8142 (false positive: The class 'B' has 'copy constructor' but lack of 'operator='.)
Do not count static member variables when trying to figure out if
'operator =' is needed.
|
2017-08-01 19:52:41 -04:00 |
Ayaz Salikhov
|
3cd2f2d092
|
Don't cast bool to bool
|
2017-06-01 01:49:40 +03:00 |
Ayaz Salikhov
|
28aa939d69
|
iwyu - include what you use
|
2017-05-27 04:33:47 +02:00 |
Alexander Alekseev
|
abba762d42
|
New check: checking for copy ctor and eq operator co-existence
|
2017-03-24 12:00:20 +01:00 |
PKEuS
|
996501a449
|
Fixed false positive #7953: Support type conversion operators returning pointers
|
2017-03-23 18:12:46 +01:00 |
Simon Martin
|
0c0fe4605a
|
Ticket #7465: Added test case highlighting the issue has been fixed since it's been reported.
|
2017-02-11 17:55:51 +01:00 |
Simon Martin
|
0943b2145b
|
Ticket #7891: Do not remove spaces in the internal representation for template instantiations.
|
2017-02-05 17:35:29 +01:00 |
Matthias Krüger
|
01e5f14bf8
|
CheckClass::virtualDestructorError and a variation of CheckNullPointer::nullPointerError would print inconclusive,warning messages altough no --enable=warning was given. Fix.
|
2016-11-23 00:13:09 +01:00 |
PKEuS
|
02d8f691f8
|
Fixed false positive: Do not show useInitializationList message for enums
|
2016-11-22 12:09:30 +01:00 |
Dmitry-Me
|
d2e667ae7b
|
Put apostrophes consistent with other similar messages
|
2016-10-18 15:45:08 +03:00 |
Daniel Marjamäki
|
4d22ada078
|
Fixed #5839 (False positive: Function can be const, if this is passed to functor)
|
2016-09-04 16:36:04 +02:00 |
Robert Reif
|
73e1378af8
|
Fixed #7661 (False positive: Function parameter 'e' should be passed by reference.)
|
2016-08-13 21:25:57 +02:00 |
PKEuS
|
17ccb0fbe6
|
CheckClass::checkMemsetType(): Skip arrays of pointers (#7456)
|
2016-05-04 13:38:36 +02:00 |
Lauri Nurmi
|
996c9244d8
|
Update copyright year to 2007-2016.
|
2016-01-01 15:34:45 +02:00 |
Matthias Krüger
|
246147c6e6
|
TestClass::memsetOnClass(): remove duplicate ASSERT_EQUALS() call.
|
2015-12-05 18:31:33 +01:00 |
Alexander Mai
|
e69377d5a8
|
#7183 CheckClass::checkMemset() uint overflow. Plus some minor refactoring
|
2015-12-05 18:22:01 +01:00 |
PKEuS
|
308fd1ba50
|
Fixed false positive 'noCopyConstructor' for static member variable (#7198)
|
2015-12-04 18:26:49 +01:00 |
Daniel Marjamäki
|
0f9d90d2be
|
Changed Copyrights. Removed my name.
|
2015-11-18 20:04:50 +01:00 |
Alexander Mai
|
af2ada9258
|
#6692 False positive: Hidden member variable - parent class with same name in different namespace. Add regression test for FP which got fixed in 1.70 already
|
2015-11-14 14:44:27 +01:00 |
Daniel Marjamäki
|
b10110b5ac
|
CheckClass: Removed noExplicitCopyMoveConstructorError after discussion in http://sourceforge.net/p/cppcheck/discussion/general/thread/b2ce9d3d/.
|
2015-11-13 12:48:26 +01:00 |
PKEuS
|
aca8a69f5e
|
Skip over lambdas in CheckClass::checkPureVirtualFunctionCall() (#4992)
|
2015-11-09 20:15:26 +01:00 |
PKEuS
|
a5f577d179
|
Support range-based for-loop in CheckClass::checkConst() (#5514)
|
2015-10-26 18:48:01 +01:00 |
PKEuS
|
3a5cef8a7e
|
Refactorization: Improved usage of Settings instances in test suite
|
2015-10-07 18:40:03 +02:00 |
Simon Martin
|
0f7e20c11d
|
Ticket #7017: Properly interpret operator= return type for template classes in CheckClass::operatorEq.
|
2015-10-02 23:23:44 +02:00 |
Simon Martin
|
2e2f9facf5
|
Ticket #6953: Fixed flawed logic in PR#650.
|
2015-08-27 23:35:22 +02:00 |
Simon Martin
|
8beb95e179
|
Fix CheckClass::checkMemset for arrays of pointers.
|
2015-08-23 19:57:58 +02:00 |
PKEuS
|
b0bf69bae7
|
Fixed false positive #6763 and reordered conditions
Ran AStyle
|
2015-08-14 12:50:45 +02:00 |
PKEuS
|
176b3925b3
|
Removed "verify" code in testrunner. Fixing its messages reduces the accuracy of the test suite.
|
2015-07-25 14:18:41 +02:00 |
PKEuS
|
a3eb725c3f
|
Support C++03-style of declaring a copy ctor as deleted (#6585)
|
2015-07-21 13:46:50 +02:00 |
Daniel Marjamäki
|
cf53074fd9
|
astyle formatting
|
2015-07-14 18:09:28 +02:00 |