Hi Jim, To the best of my knowledge the preprocessor is not disabled. I did some tests to confirm this and I didn't have any problems. I used the following Fortran code (aa.F90): #if F1 subroutine if_f1() end subroutine #endif
#ifdef F2 subroutine ifdef_f2() end subroutine #endif #ifndef F3 subroutine ifndef_f3() end subroutine #endif //#define dF1 //#define dF2 //#define dF3 #if dF1 subroutine dif_f1() end subroutine #endif #ifdef dF2 subroutine difdef_f2() end subroutine #endif #ifndef dF3 subroutine difndef_f3() end subroutine #endif and had in my Doxyfile: PREDEFINED = dF1 dF2 dF3 I also tried with the PREDEFINED line empty and the define statements in the aa.F90 enabled. In in both cases I got the expected results. Doxyfile is a standard Doxyfile with EXPAND_ALL set to YES Albert On Tue, Mar 19, 2013 at 8:31 PM, Jim Edwards <jedwa...@ucar.edu> wrote: > Hi Albert, > > This helped me to determine that doxygen is not parsing the cpp code in my > F90 files, > the documentation in the manual suggests that the c-preprocessor is run > first but does > this step get bypassed for fortran files and if so is there a way not to > bypass it? > > Thanks, > > > On Sat, Mar 16, 2013 at 4:28 AM, Albert <albert.te...@gmail.com> wrote: >> >> HI Jim, >> >> small adjustment / enhancement in respect to the "-d option" I meant >> that the fortranscanner.l has to be translated using flex with the -d >> option so I use in this case (after a touch of fortranscanner.l) >> LEX="flex -d" with the make command. >> For these debugging options see also the manual >> (http://www.stack.nl/~dimitri/doxygen/manual/arch.html section about >> debugging) >> >> Albert >> >> On Sat, Mar 16, 2013 at 10:40 AM, Albert <albert.te...@gmail.com> wrote: >> > Hi Jim, >> > >> > Which version of Doxygen are you using? >> > These error messages come from a mismatch in the code so the parser >> > gets confused. The mentioned states of the FORTRAN scanner are: >> > • State SubprogBody = 4 >> > • State ModuleBody = 10 >> > • State ModuleBodyContains = 11 >> > >> > I have even seen cases where one file influences the next file. >> > >> > The way I solve the problem is by using an executable in which the -d >> > option is used for the FORTRAN scanner and interpret the output and by >> > making the file smaller and smaller. >> > >> > Albert >> > >> > >> > On Fri, Mar 15, 2013 at 8:27 PM, Jim Edwards <jedwa...@ucar.edu> wrote: >> >> What do these mean? >> >> >> >> ******************************************************************** >> >> Error in file /home/jedwards/pio/pio_trunk/pio/box_rearrange.F90 line: >> >> 3638, >> >> state: 11 >> >> ******************************************************************** >> >> ******************************************************************** >> >> Error in file /home/jedwards/pio/pio_trunk/pio/pio_support.F90 line: >> >> 634, >> >> state: 10 >> >> ******************************************************************** >> >> ******************************************************************** >> >> Error in file /home/jedwards/pio/pio_trunk/pio/piodarray.F90 line: >> >> 5110, >> >> state: 10 >> >> ******************************************************************** >> >> ******************************************************************** >> >> Error in file /home/jedwards/pio/pio_trunk/pio/pionfput_mod.F90 line: >> >> 6676, >> >> state: 4 >> >> ******************************************************************** >> >> >> >> -- >> >> Jim Edwards >> >> >> >> CESM Software Engineering Group >> >> National Center for Atmospheric Research >> >> Boulder, CO >> >> 303-497-1842 >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Everyone hates slow websites. So do we. >> >> Make your web apps faster with AppDynamics >> >> Download AppDynamics Lite for free today: >> >> http://p.sf.net/sfu/appdyn_d2d_mar >> >> _______________________________________________ >> >> Doxygen-users mailing list >> >> Doxygen-users@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/doxygen-users >> >> > > > > > -- > Jim Edwards > > CESM Software Engineering Group > National Center for Atmospheric Research > Boulder, CO > 303-497-1842 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users