There's some run in %feature("autodoc") with SWIG 2.0, which, it seems to me, is as far away as it is now.
For example:
%module test %feature("autodoc", "3"); void foo (int *a, void *bar, double epsilon);
leads to the insertion of some vague documentation.
If this is not enough, I think the next simple step would be to use %pythonprepend to make the marker unique enough sed or similar ones can be used to insert documentation into the interface after running SWIG automatically:
%pythonprepend foo "MARKER"
and then:
sed -ei 's/MARKER/some documentation' test.py
Where can you find the %pythonprepend functions by %pythonprepend at the Doxygen output using a (Python?) Script to generate tokens and replace them after running SWIG.
Flexo
source share