aboutsummaryrefslogtreecommitdiffstats
path: root/docs/checks/README-ctor-missing-parent-argument.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/checks/README-ctor-missing-parent-argument.md')
-rw-r--r--docs/checks/README-ctor-missing-parent-argument.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/checks/README-ctor-missing-parent-argument.md b/docs/checks/README-ctor-missing-parent-argument.md
new file mode 100644
index 00000000..90b9b3ab
--- /dev/null
+++ b/docs/checks/README-ctor-missing-parent-argument.md
@@ -0,0 +1,8 @@
+# ctor-missing-parent-argument
+
+Warns when `QObject` derived classes don't have at least one CTOR receiving a QObject.
+
+This is an attempt to catch classes which are missing the parent argument.
+It doesn't have false-positives, but might miss true-positives. For example,
+if you have a CTOR which receives a `QObject* but then forget to pass it to the
+base CTOR.