GNOME Bugzilla – Bug 630580
FORTRAN: Doxygen output not correct with '\' character in Fortran code
Last modified: 2010-12-24 12:38:31 UTC
Doxygen does not correctly parse the '\' character in FORTRAN code. For example, the Doxygen html output of the source code displays incorrect line numbers and colouring. IF ( c(i:i).EQ.'/' .OR. c(i:i).EQ.'\' ) THEN Dir_Len = i END IF I actually could fix this problem by doing this CHARACTER BKSLASH*2 BKSLASH='\\' IF ( c(i:i).EQ.'/' .OR. c(i:i).EQ.BKSLASH(1:1) ) THEN Dir_Len = i END IF I think this is due to the fact that Doxygen was desigend to parse C/C++ programs, where the '\' character is used as a escape sequence. But in F77/F90 this is not the case. But hats off to the folks for adding FORTRAN support to Doxygen. You have done a great work. Cheers, Pavanakumar Mohanamuraly
Another solution for this problem is: CHARACTER(LEN=1), PARAMETER :: backSlash = char(92) (this problem has also been reported as bug 616364)
*** Bug 616364 has been marked as a duplicate of this bug. ***
Related (if not dupe of one of) #596872 and/or #602952.
*** This bug has been marked as a duplicate of bug 596872 ***