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
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