GNOME Bugzilla – Bug 625519
FORTRAN: Incorrect recognition of an argument name starting with a reserved word
Last modified: 2011-11-01 11:31:05 UTC
Created attachment 166736 [details] Source code In case an argument starts with a reserved word (eg argument ExternalName) Doxygen does not recognise this properly and no data type is placed in the documentation (see attachment with source code and html output)
Created attachment 166737 [details] HTML output
Some small investigations lead to the fact that the lexical scanner (fortranscanner.l) does recognize the reserved word External in the argument list and does not recognizes that it is not the word ExternalName. Changing the word to MyExetrnalName also gives the correct output, so it looks like that the end of the word is nor recognized correctly. I have hardly any experience with lex (and yacc) but shouldn't read the line (222) with the ATTR_SPEC definition read EXTERNAL\> instead of EXTERNAL for this keyword. The same accounts of course for all other reserved names.
*** Bug 630658 has been marked as a duplicate of this bug. ***
Created attachment 174457 [details] [review] Attribute names as start of variable names are ignored Attribute names as start of variable names are ignored by checking the next character in the input stream.
Created attachment 176080 [details] [review] Attribute names as start of variable names are ignored (corrected) Correction to the previous patch. The unput had some side effects on yytext.
Created attachment 176081 [details] [review] Attribute names as start of variable names are ignored (corrected) Correction to the previous patch. The unput had some side effects on yytext.
Please ignore Comment 5 with patch, is identical to Comment 6 (connection to bugzilla was very slow)
Created attachment 176148 [details] [review] Attribute names as start of variable names are ignored (corrected 3) Had to take UNDERSCORE also into account
I'll include this patch in the next subversion update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.7.4. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant.
Reserved words as part of names are recognized properly.