Daniel Marjamäki
|
3155f15325
|
CheckClass: Use Variable::valueType()
|
2018-06-24 16:14:11 +02:00 |
Daniel Marjamäki
|
9fab15bb53
|
CheckClass: Use Variable::valueType() instead of Variable::typeStartToken
|
2018-06-24 15:41:16 +02:00 |
Daniel Marjamäki
|
e90c04cff9
|
Rename private member variable
|
2018-06-17 18:43:54 +02:00 |
Daniel Marjamäki
|
79ffe1d4fc
|
Rename _tokenizer, _settings, _errorLogger
|
2018-06-16 16:10:28 +02:00 |
Daniel Marjamäki
|
45379a3aa6
|
Updated copyright year for modified files
[ci skip]
|
2018-06-10 22:07:21 +02:00 |
Daniel Marjamäki
|
3029606342
|
CheckClass: Fix Cppcheck warning about mismatching function parameters
|
2018-06-10 22:04:22 +02:00 |
Daniel Marjamäki
|
1abc9008d8
|
Fixed #8573 (FP noCopyConstructor - derive from noncopyable class)
|
2018-06-06 16:02:25 +02:00 |
orbitcowboy
|
33777c5b72
|
Improved const correcntess of local variables.
|
2018-05-29 13:24:48 +02:00 |
Daniel Marjamäki
|
f7746e4fb6
|
Revert "Missing override specifier warning on a pure virtual function makes no sense. (#1230)"
This reverts commit 348eb1c5c9 .
|
2018-05-15 10:48:34 +02:00 |
IOBYTE
|
348eb1c5c9
|
Missing override specifier warning on a pure virtual function makes no sense. (#1230)
This fixes a large number of false positives for cppcheck source code.
|
2018-05-14 23:08:40 +02:00 |
PKEuS
|
20b2574da8
|
Fixed false positive unusedPrivateFunction caused by recent commit
|
2018-05-14 16:20:46 +02:00 |
PKEuS
|
090a178ed6
|
Refactorization in SymbolDatabase: Do not redundantly store name in FriendInfo, and store FriendInfo in vector instead of list
|
2018-05-14 12:18:59 +02:00 |
Daniel Marjamäki
|
3b8a3aa4ba
|
Fixed crashes in daca
|
2018-05-06 09:52:04 +02:00 |
Daniel Marjamäki
|
64b85b474c
|
Fixed #8542 (False positive: noOperatorEq)
|
2018-05-05 07:46:58 +02:00 |
Daniel Marjamäki
|
7fb28b05f6
|
Check Class: Try to clarify the warnings for noCopyConstructor/noOperatorEq/noDestructor.
|
2018-05-04 15:39:23 +02:00 |
Daniel Marjamäki
|
99003c2084
|
CheckClass: Better handling of defaulted and deleted functions in the noCopyConstructor/noOperatorEq/noDestructor
|
2018-05-04 14:58:38 +02:00 |
Daniel Marjamäki
|
31148fdfed
|
Fixed #8523 (Clarify warning: noConstructor)
|
2018-05-01 15:50:03 +02:00 |
Daniel Marjamäki
|
40b6f6b3dd
|
CheckClass: Fix the noDestructor warning
|
2018-05-01 15:31:13 +02:00 |
Daniel Marjamäki
|
9710e819be
|
CheckClass: Disable noDestructor for now, we need to handle new better
|
2018-05-01 09:26:03 +02:00 |
Daniel Marjamäki
|
42100fdf11
|
CheckClass: Better handling of non-copyable classes in the noCopyConstructor check
|
2018-05-01 08:33:23 +02:00 |
Daniel Marjamäki
|
73b41455dd
|
CheckClass: If class has memory management it should have copy constructor, operator= and destructor
|
2018-04-30 23:13:33 +02:00 |
Daniel Marjamäki
|
eb1571af81
|
Refactoring: use range for
|
2018-04-30 22:10:54 +02:00 |
Daniel Marjamäki
|
ca8e19c96d
|
SymbolDatabase: Refactor SymbolDatabase: variable list
|
2018-04-28 09:38:33 +02:00 |
Daniel Marjamäki
|
1a9e8c158d
|
CheckClass::copyconstructors: Use library to determine if function is a allocation function
|
2018-04-27 23:20:04 +02:00 |
Daniel Marjamäki
|
c80c44ab20
|
Refactoring: use range for loop, early continue
|
2018-04-27 23:04:48 +02:00 |
Daniel Marjamäki
|
f336c2efe7
|
Refactoring; Renamed Scope::classStart and Scope::classEnd
|
2018-04-27 22:36:30 +02:00 |
Daniel Marjamäki
|
ed79f300f0
|
Refactoring; use range for loop, use early continue/break
|
2018-04-27 22:18:26 +02:00 |
Daniel Marjamäki
|
25599a76a7
|
Handle 'final' specifier better.
|
2018-04-27 14:57:43 +02:00 |
Daniel Marjamäki
|
b830f462e6
|
Added missingOverride checker; Function 'f' overrides function in base class but does not have the 'override' keyword.
|
2018-04-27 11:12:09 +02:00 |
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
|
c3cb0ddf8c
|
Refactoring; use range for loops
|
2018-04-24 11:13:19 +02:00 |
Daniel Marjamäki
|
22963f3ed8
|
Refactoring; use range for loop
|
2018-04-24 11:04:47 +02:00 |
Daniel Marjamäki
|
42c54f12fe
|
Refactoring: Use range for loops in CheckClass
|
2018-04-23 07:51:28 +02:00 |
Daniel Marjamäki
|
7b10375683
|
Try to make Travis happy
|
2018-04-22 14:00:03 +02:00 |
Daniel Marjamäki
|
0263452f5d
|
CheckClass: Use isLikelyStreamRead
|
2018-04-22 07:45:36 +02:00 |
Daniel Marjamäki
|
be48de1be9
|
CheckClass: Use isLikelyStreamRead
|
2018-04-22 07:40:11 +02:00 |
PKEuS
|
d2146844dd
|
Refactorizations:
- Replace several push_back-calls by emplace_back
- Replace some x = x.substr(0, y) calls by x.erase(y)
|
2018-04-11 09:44:35 +02:00 |
PKEuS
|
b15cc3f236
|
Refactorization: Replace several push_back-sequences by initializer lists
|
2018-04-09 09:54:39 +02:00 |
Daniel Marjamäki
|
a0906140a6
|
Suppressions: New extensible Suppressions xml format that allow more attributes. To start with it also allows symbolName.
|
2018-04-09 06:43:48 +02:00 |
PKEuS
|
e2002db78d
|
Replaced make_container by C++11 initializer lists
|
2018-04-08 23:03:44 +02:00 |
jrp2014
|
043b64467b
|
Refactor lib/checkclass.cpp
|
2018-04-05 15:48:23 +02:00 |
jrp2014
|
b6504c70ca
|
Improve constness
|
2018-04-04 21:51:31 +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 |
Daniel Marjamäki
|
ee22a325c7
|
virtual function call in constructor: don't warn about explicit scoped call
|
2018-04-03 14:02:59 +02:00 |
Daniel Marjamäki
|
1046ca2120
|
Improve check: Warn about virtual function calls in constructor/destructor
|
2018-04-02 15:31:47 +02:00 |
Daniel Marjamäki
|
e492932f19
|
Improve check: Variable is not initialized in private constructor (C++11 or later)
|
2018-04-02 15:26:15 +02:00 |
Daniel Marjamäki
|
c4caee6b18
|
Updated copyright year
|
2018-01-14 15:37:52 +01:00 |