Fix forward class declaration in a class when used as a base
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6c80f765ca
commit
459e083b3d
4 changed files with 15 additions and 1 deletions
|
|
@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release.
|
||||||
Version 2.0.5 (in progress)
|
Version 2.0.5 (in progress)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
2012-01-17: wsfulton
|
||||||
|
[Go] Fix forward class declaration within a class when used as a base.
|
||||||
|
|
||||||
2012-01-07: wsfulton
|
2012-01-07: wsfulton
|
||||||
[C#] Add support for %nspace when using directors.
|
[C#] Add support for %nspace when using directors.
|
||||||
|
|
||||||
|
|
|
||||||
10
Examples/test-suite/class_forward.i
Normal file
10
Examples/test-suite/class_forward.i
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
%module class_forward
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
struct A {
|
||||||
|
class B;
|
||||||
|
};
|
||||||
|
class C : public A {
|
||||||
|
};
|
||||||
|
%}
|
||||||
|
|
||||||
|
|
@ -126,6 +126,7 @@ CPP_TEST_CASES += \
|
||||||
casts \
|
casts \
|
||||||
char_binary \
|
char_binary \
|
||||||
char_strings \
|
char_strings \
|
||||||
|
class_forward \
|
||||||
class_ignore \
|
class_ignore \
|
||||||
class_scope_weird \
|
class_scope_weird \
|
||||||
compactdefaultargs \
|
compactdefaultargs \
|
||||||
|
|
|
||||||
|
|
@ -1913,7 +1913,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
String *type = Getattr(ni, "nodeType");
|
String *type = Getattr(ni, "nodeType");
|
||||||
if (Strcmp(type, "constructor") == 0 || Strcmp(type, "destructor") == 0 || Strcmp(type, "enum") == 0 || Strcmp(type, "using") == 0) {
|
if (Strcmp(type, "constructor") == 0 || Strcmp(type, "destructor") == 0 || Strcmp(type, "enum") == 0 || Strcmp(type, "using") == 0 || Strcmp(type, "classforward") == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
String *storage = Getattr(ni, "storage");
|
String *storage = Getattr(ni, "storage");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue