GNOME Bugzilla – Bug 617190
Fortran comments with ^C and only one ' confuse doxygen
Last modified: 2012-11-18 11:12:18 UTC
Comments like CC PARAMETRES D'ENTREE confuse the parser. (searching the closing ') !! PARAMETRES D'ENTREE is ok.
I think there are more chars that not working with starting C comment style but with !! and this: CHAR_ARRAY(I)='\' is not working too. Looks like the single backslash is the suspect. Best regards
(In reply to comment #0) > Comments like > > CC PARAMETRES D'ENTREE > > confuse the parser. (searching the closing ') Could you please provide a fully self contained testcase and error messages, if any? I can not reproduce the problem. (In reply to comment #1) > CHAR_ARRAY(I)='\' > is not working too. Looks like the single backslash is the suspect. There are some other reports about this, e.g. #630580.
Created attachment 176883 [details] Parser error with state 20
Created attachment 176885 [details] Parser error with state 20 (D'ENTREE)
If I run doxygen on all (really big) files I got a lot more error messages: Error in file b1.f line: 2323, state: 20 Error in file b2.f line: 4206, state: 4 Error in file c1.f line: 11453, state: 4 parse error in end <scopename> Error in file c12.f line: 10337, state: 6 Error in file c14.f line: 28712, state: 20 Error in file c18.f line: 7822, state: 20 Error in file c2b.f line: 21015, state: 20 parse error in end <scopename> Error in file c36.f line: 10755, state: 6 Error in file c37.f line: 12535, state: 17 Error in file c5.f line: 15581, state: 17 every time the last line at file. (all tested with version 1.7.2)
The example has: !! CC D'ENTREE !! In this case, the file is internally recognized as free form and thus only '!' are used as comment indicators. Hence, doxygen tries to interpret CC as statement and 'ENTREE as string. Using 'C' or '!' comments throughout does not show any problem. The 'C' comment style is obsolescent, one shouldn't use it any more. For doxygen, I see two things: (a) do not base fixed/free form recognition on this (b) allow either comment style for any source form I'll close this as dupe as it an example of what #625601 is about. The problem with '\' is already tracked elsewhere. *** This bug has been marked as a duplicate of bug 625601 ***