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:
parent
c72a56c6f1
commit
174e203180
3 changed files with 29 additions and 8 deletions
5
Examples/test-suite/doxygen_basic_translate.h
Normal file
5
Examples/test-suite/doxygen_basic_translate.h
Normal 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.
|
||||
*/
|
||||
|
|
@ -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.
|
||||
*/
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue