Bug 355451

Summary: new-check: Find polymorphic classes without Q_DISABLE_COPY
Product: [Developer tools] clazy Reporter: Sergio Martins <smartins>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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