8000 Fortran containing a single apostrophe (') in comments interferes with Doxygen parsing. · Issue #9502 · doxygen/doxygen · GitHub
[go: up one dir, main page]

Skip to content
Fortran containing a single apostrophe (') in comments interferes with Doxygen parsing. #9502
@brtnfld

Description

@brtnfld

Describe the bug
Using an apostrophe (') in the comments causes the #ifdef to be treated as comments.

Expected behavior
#ifdef should not be treated as a comment.

To Reproduce

TEST.F90

!> @ingroup TEST
!!
!! @brief This user's problem. 
!!
MODULE TEST

#ifdef DOXYGEN_FORTRAN
  INTERFACE DEF
    MODULE PROCEDURE DEFI
    MODULE PROCEDURE DEFR
  END INTERFACE
#else
  INTERFACE NODEF
    MODULE PROCEDURE NODEFI
    MODULE PROCEDURE NODEFR
  END INTERFACE
#endif

CONTAINS

END MODULE TEST

This code will result in both NODEF and DEF being processed, regardless of whether DOXYGEN_FORTRAN is defined.

Version
I used 1.8.14, but I tried 1.9.5, and it has the same issue.

Additional context
The workaround is to use ' instead of (').

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0