Summary: | false positives in rule-of-two-soft | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | Nyall Dawson <nyall.dawson> |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | eric.lemanissier, smartins |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/clazy/40710f301343dcf78efc78aa3c6c13b775a7b86c | Version Fixed In: | |
Sentry Crash Report: |
Description
Nyall Dawson
2015-11-07 07:10:31 UTC
these warnings are not false-positives, but will blacklist those classes since it can't be fixed in Qt 4, thanks Git commit 40710f301343dcf78efc78aa3c6c13b775a7b86c by Sergio Martins. Committed on 12/11/2015 at 12:42. Pushed by smartins into branch 'master'. rule-of-two-soft: Blacklist some cases that are safe We can't fix QModelIndex and QPair in Qt4, so don't warn. In Qt5 they are fixed already. M +5 -1 checks/ruleofbase.cpp M +2 -2 tests/rule-of-two-soft/main.cpp http://commits.kde.org/clazy/40710f301343dcf78efc78aa3c6c13b775a7b86c I detected the following warnings for rule of three: QTypedArrayData::iterator QTypedArrayData::const_iterator QStringBuilder QVariant::Private QSet QSet::iterator QSet::const_iterator and for rule of two: QByteRef QCharRef QVariant::Private but i'm not sure if these should be fixed in Qt, or if they are false positives |