Add doxygen test for nested classes
This commit is contained in:
parent
9f3ee5b965
commit
c5f9bb1e41
2 changed files with 24 additions and 0 deletions
|
|
@ -612,6 +612,7 @@ DOXYGEN_TEST_CASES += \
|
|||
doxygen_basic_translate \
|
||||
doxygen_ignore \
|
||||
doxygen_misc_constructs \
|
||||
doxygen_nested_class \
|
||||
doxygen_parsing \
|
||||
doxygen_parsing_enums \
|
||||
doxygen_translate \
|
||||
|
|
|
|||
23
Examples/test-suite/doxygen_nested_class.i
Normal file
23
Examples/test-suite/doxygen_nested_class.i
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
%module doxygen_nested_class
|
||||
|
||||
%warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) DoxOuter::DoxInner;
|
||||
|
||||
%inline %{
|
||||
|
||||
struct DoxOuter {
|
||||
/** DoxOuter constructor */
|
||||
DoxOuter() {}
|
||||
struct DoxInner {
|
||||
/** DoxInner constructor */
|
||||
DoxInner() {}
|
||||
/** doxInt variable */
|
||||
int doxInt;
|
||||
/** doxShort const variable */
|
||||
static const short doxShort = 1.0;
|
||||
/** doxMethod description */
|
||||
void doxMethod() {}
|
||||
/** doxStaticMethod description */
|
||||
static void doxStaticMethod() {}
|
||||
};
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue