Skip to content

Commit

Permalink
issue #8815: fix group close
Browse files Browse the repository at this point in the history
single-line instructions

/// @}
/// \}
/**  @} */

don't close groups as expected.
  • Loading branch information
Costa Shulyupin authored and Costa Shulyupin committed Oct 12, 2021
1 parent 2346371 commit e0147eb
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -3428,6 +3428,7 @@ NONLopt [^\n]*
{
yyextra->mtype = Method;
yyextra->virt = Normal;
yyextra->current->groups.clear();
initEntry(yyscanner);
}
}
Expand Down
14 changes: 14 additions & 0 deletions testing/019/group___a.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="" xml:lang="en-US">
<compounddef id="group___a" kind="group">
<compoundname>A</compoundname>
<title>A</title>
<innergroup refid="group___b">B</innergroup>
<innergroup refid="group___c">C</innergroup>
<innergroup refid="group___d">D</innergroup>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
</compounddef>
</doxygen>
11 changes: 11 additions & 0 deletions testing/019/group___b.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="" xml:lang="en-US">
<compounddef id="group___b" kind="group">
<compoundname>B</compoundname>
<title>B</title>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
</compounddef>
</doxygen>
11 changes: 11 additions & 0 deletions testing/019/group___c.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="" xml:lang="en-US">
<compounddef id="group___c" kind="group">
<compoundname>C</compoundname>
<title>C</title>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
</compounddef>
</doxygen>
11 changes: 11 additions & 0 deletions testing/019/group___d.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="" xml:lang="en-US">
<compounddef id="group___d" kind="group">
<compoundname>D</compoundname>
<title>D</title>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
</compounddef>
</doxygen>
32 changes: 32 additions & 0 deletions testing/019_defgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,35 @@ void func_g3_add();

/** \} */

// check: group___a.xml
// check: group___b.xml
// check: group___c.xml
// check: group___d.xml

/**
@defgroup A A
@{
*/

/** @defgroup B B
@{
*/

/// \}

/** @defgroup C C
@{
*/

/** @} */

/**
@defgroup D D
@{
*/

/// @}

/**
@}
*/

0 comments on commit e0147eb

Please sign in to comment.