I'm interested in having a Fortran source code documentation tool,
too. Some time ago, I played around with Doxygen and gave up pretty
soon. Today, I tried again with Doxygen 1.8.4 and it still can't deal
with PUBLIC/PRIVATE attributes and statements. Even by setting the
EXTRACT_ALL and OPTIMIZE_FOR_FORTRAN tags, it doesn't understand the
attached code at all. Uncommenting PRIVATEs and PUBLICs it becomes a
little better, however, interfaces of type bond procedures aren't
documented properly and so on ...
I would be highly interested in a powerful Fortran source code
documentation tool! In case anyone is aware of one, please let me know.
Cheers,
Stefan
Here the lines of code I tried:
> MODULE doxytest_mod
>
> PRIVATE
>
> TYPE, ABSTRACT :: foo
> PRIVATE
> CHARACTER(LEN=32) :: a
> END TYPE foo
>
> TYPE, EXTENDS(foo) :: bar
> PRIVATE
> INTEGER :: b
> CONTAINS
> PROCEDURE :: set_b
> PROCEDURE :: get_b
> END TYPE bar
>
> PUBLIC bar
>
> CONTAINS
>
> SUBROUTINE set_b(self, b)
> CLASS(bar) :: self
> INTEGER :: b
> self%b = b
> END SUBROUTINE set_b
>
> FUNCTION get_b(self) RESULT(b)
> CLASS(bar) :: self
> INTEGER :: b
> b = self%b
> END FUNCTION get_b
>
> END MODULE doxytest_mod
>
> PROGRAM main
> USE doxytest_mod
>
> TYPE(bar) :: my_bar
>
> CALL my_bar%set_b(123)
> WRITE(*,*) my_bar%get_b()
>
> END PROGRAM main
Zitat von Neil Carlson <[log in to unmask]>:
> This is a rather odd request. I'm looking for some good examples of
> documentation of a OO derived type: one with type bound procedures,
> structure constructors, finalization, ... If you know of one (perhaps
> your own) I'd be grateful if you could point me to to it off-list. Note
> I'm NOT asking for documentation about how to use those features,
> but rather user-oriented documentation OF such a derived type.
>
> Thanks, Neil
>
|