Fixed problem with doxygen comments at the end of a file or in a file without declarations.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13485 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marko Klopcic 2012-08-02 20:48:28 +00:00
commit 174e203180
3 changed files with 29 additions and 8 deletions

View file

@ -0,0 +1,5 @@
/**
* This file contains only doxygen comment without a declaration -
* it should be ignored by SWIG and must not trigger syntax error.
*/

View file

@ -1,5 +1,7 @@
%module doxygen_basic_translate
%include "doxygen_basic_translate.h"
%inline %{
/**
@ -59,12 +61,21 @@ int function4()
{
}
int function5(int a)
{
}
/**< This is a post comment. */
/**
* Test for default args
* @param a Some parameter, default is 42
*/
int function5(int a=42)
int function6(int a=42)
{
}
/**
* Comment at the end of file should be ignored.
*/
%}