Summary: | copyable-polymorphic should not issue a warning when the base class copy ctor isn't public | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | David Faure <faure> |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | smartins |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/sdk/clazy/commit/9ec85f78a18c031e49cdc62517175bfee7ee92ea | Version Fixed In: | |
Sentry Crash Report: |
Description
David Faure
2021-06-03 10:55:00 UTC
Git commit 9ec85f78a18c031e49cdc62517175bfee7ee92ea by Sergio Martins. Committed on 03/06/2021 at 21:45. Pushed by smartins into branch 'master'. copyable-polymorphic: Don't warn for some final classes If the class is final and its base classes don't have public copy-ctor/assign then it's ok Related: bug 430672 M +28 -4 src/checks/level2/copyable-polymorphic.cpp M +23 -0 tests/copyable-polymorphic/main.cpp M +1 -0 tests/copyable-polymorphic/main.cpp.expected https://invent.kde.org/sdk/clazy/commit/9ec85f78a18c031e49cdc62517175bfee7ee92ea |