GNOME Bugzilla – Bug 705586
@code tag as the last line of a comment block causes the parser to hang
Last modified: 2013-08-23 15:04:30 UTC
Created attachment 250996 [details] Simple C# program and doxygen config file exhibiting problem In some unique situations, having a @code tag as the last line of a comment block causes the parser to hang. See the attached C# project files and Doxygen configuration file that reproduces this issue. Additionally, if this configuration file is run from the Doxygen GUI, the last few lines of output before the hang are: Parsing files Preprocessing C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs... Parsing file C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs... However, if run from a command prompt, the last few lines before the hang are: Parsing files Preprocessing C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs... Parsing file C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs... C:/SourceCode/DoxygenTest/DoxygenTest/Program.cs:29: Warning: reached end of comment while inside a @code block; check for missing @endcode tag! It appears to be detecting the missing @endcode, but not recovering properly. The comment block that causes the hang is: /// <summary> /// This is a test case for Doxygen /// </summary> /// /// \code Having another line of 3-slash comments after the \code line will cause the parser to behave properly.
Confirmed. Should be fixed in the next GIT update. As a workaround you could set MARKDOWN_SUPPORT to NO.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.5. 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.