t2time / ForUML

Extracting UML Class Diagrams from Object-Oriented Fortran
21 stars 3 forks source link

Support Fortran 2008 comma-separated type-bound procedure declaration list #1

Open rouson opened 7 years ago

rouson commented 7 years ago

One of my students identified a ForUML limitation that probably stems from ForUML being developed a before Fortran 2008 features were common in compilers. Fortran 2008 allows comma-separated procedure declaration lists such as the "bar, ignored" below. ForUML ignores everything after the comma, including the subsequent line. To render class diagrams correctly, each procedure declaration must be on a separate line as is done for "foostuff" and "barstuff" below.

Damian

module foo_module

  type foo 
  contains 
    procedure, no_pass :: bar, ignored     ! Fortran 2008 feature. ForUML ignores text from "," onward
    procedure, no_pass :: also_ ignored    ! ForUML ignores this too because of the above line.
  end type

contains

  subroutine bar()
  end subroutine

  subroutine ignored()
  end subroutine

  subroutine also_ignored()
  end subroutine

end module