git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
121 lines
1.5 KiB
OpenEdge ABL
121 lines
1.5 KiB
OpenEdge ABL
%module doxygen_parsing
|
|
|
|
%inline %{
|
|
|
|
/**
|
|
* The class comment
|
|
*/
|
|
class SomeClass
|
|
{
|
|
};
|
|
|
|
/**
|
|
* The function comment
|
|
*/
|
|
void someFunction()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* The enum comment
|
|
*/
|
|
enum SomeEnum
|
|
{
|
|
SOME_ENUM_ITEM
|
|
};
|
|
|
|
/**
|
|
* The struct comment
|
|
*/
|
|
struct SomeStruct
|
|
{
|
|
};
|
|
|
|
/**
|
|
* The var comment
|
|
*/
|
|
int someVar=42;
|
|
|
|
class SomeAnotherClass
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* The class attribute comment
|
|
*/
|
|
int classAttr;
|
|
|
|
int classAttr2; ///< The class attribute post-comment
|
|
|
|
int classAttr3; ///< The class attribute post-comment
|
|
//!< with details
|
|
|
|
/**
|
|
* The class method comment
|
|
*/
|
|
void classMethod()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* The class method with parameter
|
|
*/
|
|
void classMethodExtended(
|
|
int a, ///< Parameter a
|
|
int b ///< Parameter b
|
|
)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* The class method with parameter
|
|
*
|
|
* @param a Parameter a
|
|
* @param b Parameter b
|
|
*/
|
|
void classMethodExtended2(int a, int b)
|
|
{
|
|
}
|
|
};
|
|
|
|
struct SomeAnotherStruct
|
|
{
|
|
/**
|
|
* The struct attribute comment
|
|
*/
|
|
int structAttr;
|
|
|
|
int structAttr2; ///< The struct attribute post-comment
|
|
|
|
int structAttr3; ///< The struct attribute post-comment
|
|
//!< with details
|
|
|
|
/**
|
|
* The struct method comment
|
|
*/
|
|
void structMethod()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* The struct method with parameter
|
|
*/
|
|
void structMethodExtended(
|
|
int a, ///< Parameter a
|
|
int b ///< Parameter b
|
|
)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* The struct method with parameter
|
|
*
|
|
* @param a Parameter a
|
|
* @param b Parameter b
|
|
*/
|
|
void structMethodExtended2(int a, int b)
|
|
{
|
|
}
|
|
};
|
|
|
|
%}
|