VACUMM / sphinx-fortran

Fortran domain and autodoc extensions to Sphinx
Other
45 stars 29 forks source link

Generic procedures detection #18

Open RomuloPBenedetti opened 5 years ago

RomuloPBenedetti commented 5 years ago

Generic procedures are not detected as functions/subroutines, the same for operator overloading. Any chance it will be implemented? Or maybe I'm doing something wrong?

example:

    module class_instrumentalization
        ...
        private

        interface run
                module procedure run_list, run_obj 
        end interface

    public :: run
    ...
    .. automodule:: extensionmodule
       :members:
       :undoc-members:
       :show-inheritance:

current result:

image

dcaliste commented 4 years ago

I'm working on this and have a working tree, see https://gitlab.com/l_sim/sphinx-fortran branch lsim. It requires some modification in crackfortran from numpy though, that I'm trying to get merged (https://github.com/numpy/numpy/pull/15006). As soon as it's going on on Numpy side, I'll submit a MR here with the code introducing support for interfaces.

khoogveld commented 10 months ago

Dear all, we are facing the same issue while documenting a Fortran code with sphinx-fortran in my team. Any chance the developments of @dcaliste will be merged in the master branch of sphinx-fortran?

dcaliste commented 10 months ago

Thanks for pinging. I forgot I commented here about it. Most of the Numpy patches have been adopted upstream. Next week, I'll tidy my things in my lsim branch and see if I can submit a proper PR here.