Avoid crash in the parser for two consecutive Doxygen comments.
This change fixes the crash which happened when parsing the following code:
/// Description of the section.
//@{
...
//@}
As the second Doxygen item didn't have any associated text in this case.
This commit is contained in:
parent
1ebd2334b8
commit
a1c539ed26
1 changed files with 6 additions and 3 deletions
|
|
@ -3546,10 +3546,13 @@ doxygen_comment_item : DOXYGENSTRING {
|
|||
$$ = $1;
|
||||
}
|
||||
| doxygen_comment_item doxygen_comment_item {
|
||||
if ($1)
|
||||
Append($1, $2);
|
||||
else
|
||||
if ($1) {
|
||||
if ($2)
|
||||
Append($1, $2);
|
||||
}
|
||||
else {
|
||||
$1 = $2;
|
||||
}
|
||||
$$ = $1;
|
||||
}
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue