aboutsummaryrefslogtreecommitdiffstats
path: root/docs/checks/README-copyable-polymorphic.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/checks/README-copyable-polymorphic.md')
-rw-r--r--docs/checks/README-copyable-polymorphic.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/checks/README-copyable-polymorphic.md b/docs/checks/README-copyable-polymorphic.md
new file mode 100644
index 00000000..a41ead02
--- /dev/null
+++ b/docs/checks/README-copyable-polymorphic.md
@@ -0,0 +1,8 @@
+# copyable-polymorphic
+
+Finds polymorphic classes that are copyable.
+These classes are usually vulnerable to slicing [1].
+
+To fix these warnings use Q_DISABLE_COPY or delete the copy-ctor yourself.
+
+[1] <https://en.wikipedia.org/wiki/Object_slicing>