我使用Doxygen记录Fortran代码。我有一个模块,想记录下来。该模块是:
!> Definition of object that defines a spatial domain where the
!! calculations will take place.
!! \author Antonio
!! \date 2018-09-13
module places
implicit none
! Maximum length for character type.
integer, parameter, private :: MAXLEN = 20 ! Maximum length for the name of places
!> \brief Object that defines a spatial domain where the calculations will take place.
!> \author Antonio
!> \date 2018-09-13
type typePlace
character(len=MAXLEN) :: Name
integer :: Id
real :: Lons
real :: Lats
end type typePlace
end module places
当我运行Doxygen并生成文档时,该文档存在一个问题:
主菜单包含三个项目:“主页”,“数据类型列表”和“文件”,但是没有“模块”项目。
有人知道我在哪里犯错了吗?
我的Doxyfile与默认文件之间的区别是:
PROJECT_NAME = "Calculate values"
OUTPUT_DIRECTORY = /calculations/doxygen
ALWAYS_DETAILED_SEC = YES
INLINE_INHERITED_MEMB = YES
JAVADOC_AUTOBRIEF = YES
OPTIMIZE_FOR_FORTRAN = YES
EXTENSION_MAPPING = F90=Fortran \
F95=Fortran \
F03=Fortran \
F08=Fortran
EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES
EXTRACT_PACKAGE = YES
EXTRACT_STATIC = YES
EXTRACT_LOCAL_METHODS = YES
INPUT = /calculations
FILE_PATTERNS ...
*.qsf \
*.as \
*.js \
*.f77 \
*.f95 \
*.f03 \
*.f08
SOURCE_BROWSER = YES
INLINE_SOURCES = YES
REFERENCED_BY_RELATION = YES
REFERENCES_RELATION = YES
ALPHABETICAL_INDEX = NO
HTML_TIMESTAMP = YES
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
HAVE_DOT = YES
CALL_GRAPH = YES
CALLER_GRAPH = YES
答案 0 :(得分:1)
Doxygen 1.8.5版本是从2013年开始的,自那时以来已经发生了很多变化。当前的doxygen版本是1.8.14。
使用1.8.14版时,存在“ item”模块(设置OPTIMIZE_FOR_FORTRAN=YES
,否则显示为名称空间)。
解决方案是将doxygen升级到最新版本。