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:
Vadim Zeitlin 2014-05-07 18:32:28 +02:00
commit a1c539ed26

View file

@ -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;
}
;