Documentation #283

Account for preprocessor directives

Added by Thomas Jahns about 8 years ago. Updated almost 2 years ago.

Status:New Start date:09/19/2011
Priority:Normal Due date:
Assignee:Thomas Jahns % Done:

0%

Category:-
Target version:-

Description

doxygen is currently unaware of preprocessor defines in Fortran code. configure should substitute this in the doxygen configuration file.

scales-ppm-doxygen-filter-preprocess-f90.patch Magnifier (1008 Bytes) Matthew Krupcale, 09/26/2017 03:22 am

History

#1 Updated by Matthew Krupcale almost 2 years ago

doxygen will not run its built-in preprocessor on the Fortran code because it will only do so on Fortran files with upper-case extensions (i.e. *.F or *.F90). To work around this, I came up with a method which runs the actual compiler preprocessor with relevant preprocessor macro definitions passed on the command line for each Fortran *.f90 file, using the FILTER_PATTERNS tag. See the attached patch. Note that some of the macro definitions are related to the patch in #347, but it should not cause problems having additional definitions passed on the command line which are not used.

Also available in: Atom PDF