Bug 355451 - new-check: Find polymorphic classes without Q_DISABLE_COPY
Summary: new-check: Find polymorphic classes without Q_DISABLE_COPY
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-16 20:14 UTC by Sergio Martins
Modified: 2015-11-22 20:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Martins 2015-11-16 20:14:15 UTC
because they are affected by slicing.

we can suppress the warning if the class has a clone or assign method
Comment 1 Sergio Martins 2015-11-22 20:20:48 UTC
Git commit c0f8ad42dd8c2f100ab68195179c5c8099e2b532 by Sergio Martins.
Committed on 22/11/2015 at 20:13.
Pushed by smartins into branch 'master'.

Introducing copyable-polymorphic

Finds polymorphic classes that don't have Q_DISABLE_COPY or equivalent

M  +1    -0    CMakeLists.txt
A  +6    -0    checks/README-copyable-polymorphic
A  +62   -0    checks/copyable-polymorphic.cpp     [License: GPL (v2+) (+Qt exception)]
A  +46   -0    checks/copyable-polymorphic.h     [License: GPL (v2+) (+Qt exception)]
A  +54   -0    tests/copyable-polymorphic/main.cpp     [License: UNKNOWN]  *
A  +3    -0    tests/copyable-polymorphic/test.expected

The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


http://commits.kde.org/clazy/c0f8ad42dd8c2f100ab68195179c5c8099e2b532