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:
parent
e4c38f0f67
commit
0f07a8a08d
2 changed files with 6 additions and 2 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue