You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously all constructs for a C file were auto documented unless the
:members: option was used to limit to specific named items.
Now by default the autocmodule directive will only autodocument members
which are either non static functions, non static variables. Unless the
module is a header file, .h, then all constructs will still be
documented. The :private-members: option must be used to automatically
auto document all of the c constructs in a module. The
:no-private-members: option also becomes available to allow defaulting
to :private-members: and selectivly limiting on a per module basis.
`autodoc_default_options <https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_default_options>`_ then no members will be automatically documented.
39
+
`autodoc_default_options`_ being used. If ``members`` is omitted
40
+
from `autodoc_default_options`_ then no members will be
41
+
automatically documented.
42
42
- Specified as ``:no-members:``, no members will be automatically
43
43
documented.
44
44
- Specified with no arguments, ``:members:``, then all supported C
@@ -47,6 +47,25 @@ instance from being added to the index provide this option.
47
47
``:members: function_a, struct_b``, only the file members specified will
48
48
be recursively documented.
49
49
50
+
.. rst:directive:option:: private-members
51
+
52
+
Specify if private members are to be documented. Since C doesn't
53
+
actually have a true idea of public and private, the following rules
54
+
are used to determine these characteristics.
55
+
56
+
Members are public if:
57
+
58
+
- They are in a header file, ends in `.h`. By nature header files are meant to
59
+
be included in other files, thus anything declared there is
60
+
deamed public.
61
+
- They can be visible outside of the compilation unit. These are
62
+
things the linker can get access to. Mainly this means functions
63
+
and variables that are not static.
64
+
65
+
Just as for the standard `autodoc`_ options, one can use the negated
66
+
form of ``:no-private-members:`` to selectivly turn off this option
0 commit comments