Added test case to check Doxygen comments parsing, including java and python runtime tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dmitry Kabak 2012-06-04 18:11:29 +00:00
commit e3f41f32a6
5 changed files with 195 additions and 2 deletions

View file

@ -0,0 +1,84 @@
%module doxygen_parsing
%inline %{
/**
* This is simple comment for a var
*/
int simpleVar=42;
/*!
* This is another type of comment for a var
*/
int simpleVarTwo=42;
/// This is again another type of comment for a var
int simpleVarThree=42;
//! This is the last type of comment for a var
int simpleVarFour=42;
/*
We assume that all this comment types are ok,
and later we only use the first-type comments.
*/
/**
* This is simple comment for a function
*/
void simpleFunction(int arg)
{
}
/**
* This is simple comment for a class
*/
class CSimpleClass
{
private:
/** Some member var */
int simpleVar;
public:
/**
* Simple method
*/
void simpleMethod(int asd)
{
}
/**
* Simple method with parameter
*/
void simpleMethodWithParameter(
int param /**< Some test param */
)
{
}
};
/** Test enumeration */
enum E_TEST
{
/** the first item */
E_TEST_ONE,
E_TEST_TWO = 2, /**< the second */
E_TEST_THREE = 2+1
};
/**
* Comment for template class
*/
template <typename T>
class CTemplateClass
{
public:
/**
* Template method
*/
void templateMethod(T arg)
{
}
};
%}
%template(CTemplateClassInt) CTemplateClass<int>;