Hi,

I am using version 1.8.8. With the simple code below, doxygen is not able to 
relate correctly type_B as a child of type_A as soon as both are declared in 
different modules.

type_A and type_B are referred as A::type_A and B::type_B respectively in the 
generated documentation. B::Type_B is set as a child of an unknown class 
Type_A, not the one whose definition is imported from the module.

Is there a way to fix this ?

Using “!> @extends A::type_A “ forces the correct relationship but does not 
remove the erroneous one. This create a documentation for Type_B with two 
parents Type_A and A::Type_A.

Thanks,
Ronan


!—————————————————————————————————————
!—————————————————————————————————————
module A
implicit none

!> @brief Parent class
type :: type_A
  integer :: i
  contains
    procedure :: set_i
end type

contains

subroutine set_i(this, val)
class(type_A) :: this
integer :: val
this%i = val
end subroutine set_i

end module A

module B
use A, only : type_A
implicit none

!> @brief Child class in separate module
type, extends(type_A) :: type_B
  integer :: j
  contains
    procedure :: set_j
end type

contains

subroutine set_j(this, val)
class(type_B) :: this
integer :: val
this%j = val
end subroutine set_j

end module B
------------------------------------------------------------------------------
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to