Ignored nested class/struct warnings now display the name of the ignored class/struct.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11728 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ec6bf1ec96
commit
9d65c100b9
6 changed files with 59 additions and 6 deletions
|
|
@ -242,6 +242,7 @@ CPP_TEST_CASES += \
|
|||
namespace_typemap \
|
||||
namespace_virtual_method \
|
||||
naturalvar \
|
||||
nested_class \
|
||||
nested_comment \
|
||||
newobject1 \
|
||||
null_pointer \
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ This was reported in bug #909389 */
|
|||
|
||||
%module derived_nested
|
||||
|
||||
#pragma SWIG nowarn=SWIGWARN_PARSE_NESTED_CLASS
|
||||
|
||||
%inline %{
|
||||
|
||||
class A { int x; };
|
||||
|
|
@ -11,5 +13,10 @@ class B {
|
|||
class D : public A { int z; }; //ok
|
||||
};
|
||||
|
||||
struct BB {
|
||||
class CC { int y; };
|
||||
class DD : public A { int z; };
|
||||
struct EE : public A { int z; };
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
|||
40
Examples/test-suite/nested_class.i
Normal file
40
Examples/test-suite/nested_class.i
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
%module nested_class
|
||||
|
||||
#pragma SWIG nowarn=SWIGWARN_PARSE_NESTED_CLASS
|
||||
|
||||
%inline %{
|
||||
struct Outer {
|
||||
struct Inner1 {
|
||||
int x;
|
||||
};
|
||||
|
||||
class Inner2 {
|
||||
public:
|
||||
int x;
|
||||
};
|
||||
|
||||
class {
|
||||
public:
|
||||
int a;
|
||||
};
|
||||
|
||||
struct {
|
||||
int b;
|
||||
};
|
||||
|
||||
union {
|
||||
int c;
|
||||
double d;
|
||||
};
|
||||
|
||||
class Inner3 {
|
||||
public:
|
||||
int x;
|
||||
} Inner3Name;
|
||||
|
||||
struct Inner4 {
|
||||
int x;
|
||||
} Inner4Name;
|
||||
};
|
||||
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue