Various inherited class warning/error line number fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12223 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8b31a92f61
commit
b01277a19b
7 changed files with 108 additions and 31 deletions
47
Examples/test-suite/errors/cpp_inherit.i
Normal file
47
Examples/test-suite/errors/cpp_inherit.i
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
%module xxx
|
||||
|
||||
%inline %{
|
||||
struct A5;
|
||||
int A6;
|
||||
template<typename T> struct A7
|
||||
{
|
||||
};
|
||||
template<typename T> struct A8
|
||||
{
|
||||
};
|
||||
|
||||
struct A0
|
||||
:
|
||||
public A1
|
||||
,
|
||||
A2,
|
||||
private A3
|
||||
,
|
||||
private A4
|
||||
,
|
||||
A5
|
||||
,
|
||||
A6
|
||||
,
|
||||
A7<int>
|
||||
,
|
||||
protected A8<double>
|
||||
{
|
||||
};
|
||||
|
||||
struct A1
|
||||
{
|
||||
};
|
||||
|
||||
class B1 {};
|
||||
|
||||
class B0 :
|
||||
B1,
|
||||
B2<int>
|
||||
{
|
||||
};
|
||||
|
||||
struct Recursive : Recursive
|
||||
{
|
||||
};
|
||||
%}
|
||||
|
|
@ -207,6 +207,24 @@ cpp_extend_undefined.i:6: Warning 303: %extend defined for an undeclared class f
|
|||
:::::::::::::::::::::::::::::::: cpp_inline_namespace.i :::::::::::::::::::::::::::::::::::
|
||||
cpp_inline_namespace.i:4: Error: %inline directive inside a namespace is disallowed.
|
||||
|
||||
:::::::::::::::::::::::::::::::: cpp_inherit.i :::::::::::::::::::::::::::::::::::
|
||||
cpp_inherit.i:18: Warning 309: private inheritance from base 'A3' (ignored).
|
||||
cpp_inherit.i:20: Warning 309: private inheritance from base 'A4' (ignored).
|
||||
cpp_inherit.i:28: Warning 309: protected inheritance from base 'A8< double >' (ignored).
|
||||
cpp_inherit.i:39: Warning 319: No access specifier given for base class 'B1' (ignored).
|
||||
cpp_inherit.i:40: Warning 319: No access specifier given for base class 'B2< int >' (ignored).
|
||||
cpp_inherit.i:15: Warning 401: Base class 'A1' undefined.
|
||||
cpp_inherit.i:33: Warning 401: 'A1' must be defined before it is used as a base class.
|
||||
cpp_inherit.i:17: Warning 401: Nothing known about base class 'A2'. Ignored.
|
||||
cpp_inherit.i:22: Warning 402: Base class 'A5' is incomplete.
|
||||
cpp_inherit.i:4: Warning 402: Only forward declaration 'A5' was found.
|
||||
cpp_inherit.i:24: Error: 'A6' is not a valid base class.
|
||||
cpp_inherit.i:5: Error: See definition of 'A6'.
|
||||
cpp_inherit.i:24: Warning 401: Nothing known about base class 'A6'. Ignored.
|
||||
cpp_inherit.i:26: Warning 401: Nothing known about base class 'A7< int >'. Ignored.
|
||||
cpp_inherit.i:26: Warning 401: Maybe you forgot to instantiate 'A7< int >' using %template.
|
||||
cpp_inherit.i:45: Warning 323: Recursive scope inheritance of 'Recursive'.
|
||||
|
||||
:::::::::::::::::::::::::::::::: cpp_missing_rtemplate.i :::::::::::::::::::::::::::::::::::
|
||||
cpp_missing_rtemplate.i:4: Error: Syntax error in input(1).
|
||||
|
||||
|
|
@ -224,7 +242,7 @@ cpp_nested.i:6: Warning 325: Nested class not currently supported (Bar ignored)
|
|||
cpp_nested.i:12: Warning 325: Nested class not currently supported (Grok ignored)
|
||||
|
||||
:::::::::::::::::::::::::::::::: cpp_no_access.i :::::::::::::::::::::::::::::::::::
|
||||
cpp_no_access.i:3: Warning 319: No access specifier given for base class foo (ignored).
|
||||
cpp_no_access.i:3: Warning 319: No access specifier given for base class 'foo' (ignored).
|
||||
|
||||
:::::::::::::::::::::::::::::::: cpp_nobase.i :::::::::::::::::::::::::::::::::::
|
||||
cpp_nobase.i:3: Warning 401: Nothing known about base class 'Bar'. Ignored.
|
||||
|
|
@ -236,8 +254,8 @@ cpp_nobase.i:6: Warning 401: Maybe you forgot to instantiate 'Bar< int >' using
|
|||
:::::::::::::::::::::::::::::::: cpp_private_defvalue.i :::::::::::::::::::::::::::::::::::
|
||||
|
||||
:::::::::::::::::::::::::::::::: cpp_private_inherit.i :::::::::::::::::::::::::::::::::::
|
||||
cpp_private_inherit.i:6: Warning 309: private inheritance ignored.
|
||||
cpp_private_inherit.i:9: Warning 309: protected inheritance ignored.
|
||||
cpp_private_inherit.i:6: Warning 309: private inheritance from base 'Foo' (ignored).
|
||||
cpp_private_inherit.i:9: Warning 309: protected inheritance from base 'Foo' (ignored).
|
||||
|
||||
:::::::::::::::::::::::::::::::: cpp_template_argname.i :::::::::::::::::::::::::::::::::::
|
||||
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ cpp_bad_extern
|
|||
cpp_extend_redefine
|
||||
cpp_extend_undefined
|
||||
cpp_inline_namespace
|
||||
cpp_inherit
|
||||
cpp_missing_rtemplate
|
||||
cpp_namespace_alias
|
||||
cpp_namespace_aliasnot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue