aboutsummaryrefslogtreecommitdiffstats
path: root/doc/ownership.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ownership.rst')
-rw-r--r--doc/ownership.rst12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/ownership.rst b/doc/ownership.rst
index 64fa77a5b..69791f855 100644
--- a/doc/ownership.rst
+++ b/doc/ownership.rst
@@ -108,9 +108,19 @@ Parentship heuristics
type system when binding Qt libraries. For Qt, this heuristic works in all cases,
but be aware that it might not when binding your own libraries.
- To activate this heuristic, use the :ref:`--enable-parent-ctor-heuristic <option-heuristic>`
+ To activate this heuristic, use the :ref:`--enable-parent-ctor-heuristic <parent-heuristic>`
command line switch.
+.. _return-value-heuristics:
+
+Return value heuristics
+-----------------------
+
+ When enabled, object returned as pointer in C++ will become child of the object on which the method
+ was called.
+
+ To activate this heuristic, use the :ref:`--enable-return-value-heuristic <return-heuristic>`
+
Common pitfalls
===============