Fix doxygen crash with empty comment

Parsing "/**/" with -doxygen would result in a crash due to
calculation of comment start/end that does not work for an empty
comment.  Fixed by catching this case prior to processing.  Added
simple regression test to doxygen_basic_translate.
This commit is contained in:
John McFarland 2019-10-30 08:15:18 -05:00
commit 0f07a8a08d
2 changed files with 6 additions and 2 deletions

View file

@ -107,6 +107,9 @@ double Atan2(double y, double x)
return 0;
}
/* Regression test for crash with empty comment: */
/**/
/**
* Comment at the end of file should be ignored.
*/