VACUMM / sphinx-fortran

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

Type-bound procedures #41

Open rhdtownsend opened 2 years ago

rhdtownsend commented 2 years ago

How can I document a type-bound procedure with sphinx-fortran? Suppose I had the code

module mymod

type foo real :: a contains subroutine do_stuff end type foo

contains

subroutine do_stuff(self) class(foo) :: self print *,self%a end subroutine do_stuff

end module mymod

...then what syntax do I need to use with sphinx-fortran to indicate that the do_stuff subroutine is bound to the foo type?