because they are affected by slicing. we can suppress the warning if the class has a clone or assign method
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