New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FORTRAN: Incorrect recognition of an argument name starting with a reserved word (Origin: bugzilla #625519) #3872

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

status VERIFIED severity normal in component general for ---
Reported in version 1.7.1 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2010-07-28 19:37:28 +0000, albert wrote:

Created attachment 166736
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)

On 2010-07-28 19:38:11 +0000, albert wrote:

Created attachment 166737
HTML output

On 2010-07-28 19:40:47 +0000, albert wrote:

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.

On 2010-11-14 18:03:39 +0000, albert wrote:

*** Bug 630658 has been marked as a duplicate of this bug. ***

On 2010-11-14 20:04:50 +0000, albert wrote:

Created attachment 174457
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.

On 2010-12-08 18:27:37 +0000, albert wrote:

Created attachment 176080
Attribute names as start of variable names are ignored (corrected)

Correction to the previous patch. The unput had some side effects on yytext.

On 2010-12-08 18:32:45 +0000, albert wrote:

Created attachment 176081
Attribute names as start of variable names are ignored (corrected)

Correction to the previous patch. The unput had some side effects on yytext.

On 2010-12-08 18:35:18 +0000, albert wrote:

Please ignore Comment 5 with patch, is identical to Comment 6 (connection to bugzilla was very slow)

On 2010-12-09 19:41:02 +0000, albert wrote:

Created attachment 176148
Attribute names as start of variable names are ignored (corrected 3)

Had to take UNDERSCORE also into account

On 2011-01-04 09:03:01 +0000, Dimitri van Heesch wrote:

I'll include this patch in the next subversion update.

On 2011-03-28 14:19:05 +0000, Dimitri van Heesch wrote:

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.

On 2011-11-01 11:31:05 +0000, albert wrote:

Reserved words as part of names are recognized properly.

@doxygen doxygen closed this Jul 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment