add support for named warning codes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-06 11:42:24 +00:00
commit 89e7497ac6
124 changed files with 671 additions and 281 deletions

View file

@ -1,5 +1,25 @@
Version 1.3.28 (unreleased). Version 1.3.28 (unreleased).
=========================== ===========================
01/06/2006: mmatus
Add 'named' warning codes, now besides of:
%warnfilter(813);
you can use
%warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE);
just use the same code name found in Source/Include/swigwarn.h
plus the 'SWIG' prefix.
If you add a new warning code, remember to run:
make Lib/swigwarn.swg
in the swig root directory and commit both files. You need
a machine with awk/echo to do that.
01/05/2006: wsfulton 01/05/2006: wsfulton
Fix for %extend and static const integral types, eg: Fix for %extend and static const integral types, eg:

View file

@ -4,7 +4,7 @@
#include "example.h" #include "example.h"
%} %}
#pragma SWIG nowarn=454 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_SWIGTYPELEAK
/* Some global variable declarations */ /* Some global variable declarations */
%inline %{ %inline %{

View file

@ -1,6 +1,6 @@
/* File : example.i */ /* File : example.i */
%module example %module example
#pragma SWIG nowarn=362 #pragma SWIG nowarn=SWIGWARN_IGNORE_OPERATOR_EQ
%{ %{
#include "example.h" #include "example.h"
%} %}

View file

@ -4,7 +4,7 @@
#include "example.h" #include "example.h"
%} %}
#pragma SWIG nowarn=454 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_SWIGTYPELEAK
/* Some global variable declarations */ /* Some global variable declarations */
%inline %{ %inline %{

View file

@ -1,7 +1,7 @@
/* File : example.i */ /* File : example.i */
%module example %module example
%warnfilter(362); %warnfilter(SWIGWARN_IGNORE_OPERATOR_EQ);
%{ %{

View file

@ -3,7 +3,7 @@
%{ %{
#include "example.h" #include "example.h"
%} %}
#pragma SWIG nowarn=454 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_SWIGTYPELEAK
/* Some global variable declarations */ /* Some global variable declarations */
%inline %{ %inline %{

View file

@ -4,7 +4,7 @@
#include "example.h" #include "example.h"
%} %}
#pragma SWIG nowarn=454 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_SWIGTYPELEAK
/* Some global variable declarations */ /* Some global variable declarations */
%inline %{ %inline %{

View file

@ -1,6 +1,6 @@
%module abstract_access %module abstract_access
%warnfilter(517) A; %warnfilter(SWIGWARN_LANG_DIRECTOR_ABSTRACT) A;
%inline %{ %inline %{
class A { class A {

View file

@ -1,7 +1,7 @@
%module abstract_inherit %module abstract_inherit
%warnfilter(403) Spam; %warnfilter(SWIGWARN_TYPE_ABSTRACT) Spam;
%warnfilter(403) Bar; %warnfilter(SWIGWARN_TYPE_ABSTRACT) Bar;
%inline %{ %inline %{

View file

@ -1,7 +1,7 @@
%module abstract_inherit_ok %module abstract_inherit_ok
%feature("notabstract") Spam; %feature("notabstract") Spam;
%warnfilter(403) Spam; %warnfilter(SWIGWARN_TYPE_ABSTRACT) Spam;
%inline %{ %inline %{

View file

@ -1,7 +1,7 @@
%module abstract_signature %module abstract_signature
%warnfilter(801) abstract_foo; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_foo; // Ruby, wrong class name
%warnfilter(801) abstract_bar; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_bar; // Ruby, wrong class name
%inline %{ %inline %{
class abstract_foo class abstract_foo

View file

@ -1,7 +1,11 @@
%module(ruby_minherit="1") abstract_virtual %module(ruby_minherit="1") abstract_virtual
%warnfilter(813,833,870) D; /* C#, Java, Php4 multiple inheritance */ %warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
%warnfilter(813,833,870) E; /* C#, Java, Php4 multiple inheritance */ SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) D; /* C#, Java, Php4 multiple inheritance */
%warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) E; /* C#, Java, Php4 multiple inheritance */
%inline %{ %inline %{
struct A struct A

View file

@ -1,8 +1,8 @@
%module arrays_dimensionless %module arrays_dimensionless
%warnfilter(462) globalints; /* Unable to set variable of type int [] */ %warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) globalints; /* Unable to set variable of type int [] */
%warnfilter(462) ints; /* Unable to set variable of type int [] */ %warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) ints; /* Unable to set variable of type int [] */
%inline %{ %inline %{

View file

@ -2,7 +2,7 @@
This test case tests that various types of arrays are working. This test case tests that various types of arrays are working.
*/ */
%warnfilter(451,462); %warnfilter(SWIGWARN_TYPEMAP_CHARLEAK,SWIGWARN_TYPEMAP_VARIN_UNDEF);
%module arrays_global %module arrays_global

View file

@ -1,6 +1,6 @@
%module bloody_hell %module bloody_hell
%warnfilter(801) kMaxIOCTLSpaceParmsSize; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) kMaxIOCTLSpaceParmsSize;
#define kMaxIOCTLSpaceParmsSize 128 #define kMaxIOCTLSpaceParmsSize 128

View file

@ -1,7 +1,7 @@
// bool typemaps check // bool typemaps check
%module bools %module bools
%warnfilter(454); /* memory leak when setting a ptr/ref variable */ %warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
%warnfilter(801) constbool; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) constbool; /* Ruby, wrong class name */
// bool constant // bool constant
%constant bool constbool=false; %constant bool constbool=false;

View file

@ -6,7 +6,7 @@ below.
%module char_strings %module char_strings
%warnfilter(462) global_char_array1; // Unable to set variable of type char[] %warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) global_char_array1; // Unable to set variable of type char[]
%{ %{
#define OTHERLAND_MSG "Little message from the the safe world." #define OTHERLAND_MSG "Little message from the the safe world."

View file

@ -4,7 +4,7 @@ This testcase primarily test constant pointers, eg int* const. Only a getter is
%module constant_pointers %module constant_pointers
%warnfilter(454); /* memory leak when setting a ptr/ref variable */ %warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
%inline %{ %inline %{

View file

@ -1,6 +1,9 @@
%module contract %module contract
%warnfilter(802,813,833,870) C; /* Ruby, C#, Java, Php4 multiple inheritance */ %warnfilter(SWIGWARN_RUBY_MULTIPLE_INHERITANCE,
SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) C; /* Ruby, C#, Java, Php4 multiple inheritance */
#ifdef SWIGCSHARP #ifdef SWIGCSHARP
%ignore B::bar; // otherwise get a warning: `C.bar' no suitable methods found to override %ignore B::bar; // otherwise get a warning: `C.bar' no suitable methods found to override

View file

@ -1,8 +1,8 @@
/* This is a basic test of proxy classes, used by chicken */ /* This is a basic test of proxy classes, used by chicken */
%warnfilter(454); /* memory leak when setting a ptr/ref variable */ %warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
%warnfilter(801) global_cint; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) global_cint; /* Ruby, wrong constant name */
%module cpp_basic %module cpp_basic

View file

@ -3,9 +3,15 @@
%module(ruby_minherit="1") default_constructor %module(ruby_minherit="1") default_constructor
%warnfilter(813,833,870) EB; /* C#, Java, Php4 multiple inheritance */ %warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
%warnfilter(813,833,870) AD; /* C#, Java, Php4 multiple inheritance */ SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
%warnfilter(510) F; /* friend function */ SWIGWARN_PHP4_MULTIPLE_INHERITANCE) EB; /* C#, Java, Php4 multiple inheritance */
%warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) AD; /* C#, Java, Php4 multiple inheritance */
%warnfilter(SWIGWARN_LANG_FRIEND_IGNORE) F; /* friend function */
%inline %{ %inline %{

View file

@ -1,5 +1,5 @@
%module(directors="1") director_basic %module(directors="1") director_basic
#pragma SWIG nowarn=470,473 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR
%{ %{
#include <string> #include <string>

View file

@ -1,7 +1,8 @@
%module(directors="1") director_detect %module(directors="1") director_detect
#pragma SWIG nowarn=470,473 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR
%warnfilter(822, 842) cloner; /* Java, C# covariant return types */ %warnfilter(SWIGWARN_JAVA_COVARIANT_RET,
SWIGWARN_CSHARP_COVARIANT_RET) cloner; /* Java, C# covariant return types */
%{ %{
#include <string> #include <string>

View file

@ -1,13 +1,14 @@
%module(directors="1") director_enum %module(directors="1") director_enum
%warnfilter(801) EnumDirector::hi; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::hi; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::hello; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::hello; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::yo; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::yo; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::awright; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::awright; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::Foo::ciao; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::Foo::ciao; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::Foo::aufwiedersehen; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::Foo::aufwiedersehen; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::Foo::adios; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::Foo::adios; /* Ruby, wrong constant name */
%warnfilter(470,473) EnumDirector::Foo; /* Thread/reentrant unsafe wrapping, consider returning by value instead. */ %warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,
SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) EnumDirector::Foo; /* Thread/reentrant unsafe wrapping, consider returning by value instead. */

View file

@ -1,5 +1,5 @@
%module(directors="1") director_frob; %module(directors="1") director_frob;
#pragma SWIG nowarn=470,473 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR
%header %{ %header %{
#include <iostream> #include <iostream>

View file

@ -1,5 +1,5 @@
%module(directors="1",dirprot="1") director_nested %module(directors="1",dirprot="1") director_nested
#pragma SWIG nowarn=470,473 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR
%{ %{
#include <string> #include <string>

View file

@ -7,7 +7,7 @@
%include std_string.i %include std_string.i
// Using thread unsafe wrapping // Using thread unsafe wrapping
%warnfilter(470,473) A; %warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) A;
%{ %{
#include <vector> #include <vector>

View file

@ -1,5 +1,5 @@
%module(directors="1") director_wombat %module(directors="1") director_wombat
#pragma SWIG nowarn=470,473 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR
%feature(director) Bar; %feature(director) Bar;
%feature(director) Foo<int>; %feature(director) Foo<int>;

View file

@ -7,7 +7,7 @@
%include std_wstring.i %include std_wstring.i
// Using thread unsafe wrapping // Using thread unsafe wrapping
%warnfilter(470,473) A; %warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) A;
%{ %{
#include <vector> #include <vector>

View file

@ -4,7 +4,7 @@
#include <iostream> #include <iostream>
%} %}
#pragma SWIG nowarn=453 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_APPLY_UNDEF
%apply SWIGTYPE *DISOWN { A *disown }; %apply SWIGTYPE *DISOWN { A *disown };

View file

@ -1,6 +1,6 @@
%module enum_plus %module enum_plus
%warnfilter(801) iFoo; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) iFoo; /* Ruby, wrong constant name */
%inline %{ %inline %{
struct iFoo struct iFoo

View file

@ -1,8 +1,8 @@
%module enum_template %module enum_template
%warnfilter(801) eTest0; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) eTest0; /* Ruby, wrong class name */
%warnfilter(801) eTest1; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) eTest1; /* Ruby, wrong class name */
%warnfilter(801) eTest2; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) eTest2; /* Ruby, wrong class name */
/* /*
From bug report 992329: From bug report 992329:

View file

@ -3,45 +3,45 @@
// Suppress warning messages from the Ruby module for all of the // Suppress warning messages from the Ruby module for all of the
// following... // following...
#pragma SWIG nowarn=314 #pragma SWIG nowarn=SWIGWARN_PARSE_KEYWORD
%warnfilter(801); %warnfilter(SWIGWARN_RUBY_WRONG_NAME);
%warnfilter(801) red; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) red;
%warnfilter(801) blue; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) blue;
%warnfilter(801) green; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) green;
%warnfilter(801) SpeedClass::slow; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) SpeedClass::slow;
%warnfilter(801) SpeedClass::medium; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) SpeedClass::medium;
%warnfilter(801) SpeedClass::fast; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) SpeedClass::fast;
%warnfilter(801) SpeedClass::lightning; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) SpeedClass::lightning;
%warnfilter(801) TemplateClass::einstein; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) TemplateClass::einstein;
%warnfilter(801) TemplateClass::galileo; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) TemplateClass::galileo;
%warnfilter(801) Name::TClass::faraday; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Name::TClass::faraday;
%warnfilter(801) Name::TClass::bell; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Name::TClass::bell;
%warnfilter(801) argh; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) argh;
%warnfilter(801) eek; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) eek;
%warnfilter(801) OldNameStruct::whizz; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) OldNameStruct::whizz;
%warnfilter(801) OldNameStruct::kerboom; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) OldNameStruct::kerboom;
%warnfilter(801) OldNameStruct::pop; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) OldNameStruct::pop;
%warnfilter(801) OldNameStruct::simple1; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) OldNameStruct::simple1;
%warnfilter(801) OldNameStruct::singlename1; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) OldNameStruct::singlename1;
%warnfilter(801) OldNameStruct::doublename1; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) OldNameStruct::doublename1;
%warnfilter(801) TreesClass::oak; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) TreesClass::oak;
%warnfilter(801) TreesClass::fir; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) TreesClass::fir;
%warnfilter(801) TreesClass::pine; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) TreesClass::pine;
%warnfilter(801) curly::greasy::HairStruct::blonde; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) curly::greasy::HairStruct::blonde;
%warnfilter(801) curly::greasy::HairStruct::ginger; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) curly::greasy::HairStruct::ginger;
%warnfilter(801) Obscure::one; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Obscure::one;
%warnfilter(801) Obscure::onetrail; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Obscure::onetrail;
%warnfilter(801) Obscure::two; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Obscure::two;
%warnfilter(801) Obscure::twoagain; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Obscure::twoagain;
%warnfilter(801) Obscure::twotrail; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Obscure::twotrail;
%warnfilter(801) Obscure::twotrailagain; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Obscure::twotrailagain;
%warnfilter(801) globalinstance1; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) globalinstance1;
%warnfilter(801) globalinstance2; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) globalinstance2;
%warnfilter(801) globalinstance3; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) globalinstance3;
%warnfilter(801) Instances::memberinstance1; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Instances::memberinstance1;
%warnfilter(801) Instances::memberinstance2; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Instances::memberinstance2;
%warnfilter(801) Instances::memberinstance3; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Instances::memberinstance3;
%inline %{ %inline %{

View file

@ -3,11 +3,11 @@
%module "enums" %module "enums"
/* Suppress warning messages from the Ruby module for all of the following.. */ /* Suppress warning messages from the Ruby module for all of the following.. */
%warnfilter(801) boo; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) boo;
%warnfilter(801) hoo; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) hoo;
%warnfilter(801) globalinstance1; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) globalinstance1;
%warnfilter(801) globalinstance2; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) globalinstance2;
%warnfilter(801) globalinstance3; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) globalinstance3;
%inline %{ %inline %{

View file

@ -1,9 +1,12 @@
%module(ruby_minherit="1") evil_diamond %module(ruby_minherit="1") evil_diamond
%warnfilter(801) foo; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo; // Ruby, wrong class name
%warnfilter(801) bar; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) bar; // Ruby, wrong class name
%warnfilter(801) baz; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) baz; // Ruby, wrong class name
%warnfilter(801,813,833,870) spam; // Ruby, wrong class name - C# & Java, Php4 multiple inheritance %warnfilter(SWIGWARN_RUBY_WRONG_NAME,
SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) spam; // Ruby, wrong class name - C# & Java, Php4 multiple inheritance
%inline %{ %inline %{

View file

@ -1,9 +1,12 @@
%module(ruby_minherit="1") evil_diamond_ns %module(ruby_minherit="1") evil_diamond_ns
%warnfilter(801) Blah::foo; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Blah::foo; // Ruby, wrong class name
%warnfilter(801) Blah::bar; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Blah::bar; // Ruby, wrong class name
%warnfilter(801) Blah::baz; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Blah::baz; // Ruby, wrong class name
%warnfilter(801,813,833,870) Blah::spam; // Ruby, wrong class name - C# & Java, Php4 multiple inheritance %warnfilter(SWIGWARN_RUBY_WRONG_NAME,
SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) Blah::spam; // Ruby, wrong class name - C# & Java, Php4 multiple inheritance
%inline %{ %inline %{
namespace Blah { namespace Blah {

View file

@ -1,9 +1,12 @@
%module(ruby_minherit="1") evil_diamond_prop %module(ruby_minherit="1") evil_diamond_prop
%warnfilter(801) foo; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo; // Ruby, wrong class name
%warnfilter(801) bar; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) bar; // Ruby, wrong class name
%warnfilter(801) baz; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) baz; // Ruby, wrong class name
%warnfilter(801,813,833,870) spam; // Ruby, wrong class name - C# & Java, Php4 multiple inheritance %warnfilter(SWIGWARN_RUBY_WRONG_NAME,
SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) spam; // Ruby, wrong class name - C# & Java, Php4 multiple inheritance
%inline %{ %inline %{

View file

@ -2,9 +2,9 @@
%module extend_default %module extend_default
%warnfilter(302) Override::over; %warnfilter(SWIGWARN_PARSE_REDEFINED) Override::over;
%warnfilter(302) Override::overload; %warnfilter(SWIGWARN_PARSE_REDEFINED) Override::overload;
%warnfilter(302) Override::ride; %warnfilter(SWIGWARN_PARSE_REDEFINED) Override::ride;
// %extend before the class definition // %extend before the class definition
%extend Before { %extend Before {

View file

@ -1,6 +1,6 @@
%module features %module features
%warnfilter(503,365); %warnfilter(SWIGWARN_LANG_IDENTIFIER,SWIGWARN_IGNORE_OPERATOR_PLUSEQ);
// This testcase checks that %feature is working for templates and non user supplied constructors/destructors and is just generally working // This testcase checks that %feature is working for templates and non user supplied constructors/destructors and is just generally working

View file

@ -3,7 +3,7 @@
#include <iostream> #include <iostream>
%} %}
%warnfilter(503); %warnfilter(SWIGWARN_LANG_IDENTIFIER);
%inline %inline

View file

@ -1,6 +1,6 @@
%module global_vars %module global_vars
%warnfilter(454); /* memory leak when setting a ptr/ref variable */ %warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
%include std_string.i %include std_string.i

View file

@ -5,8 +5,8 @@
%module imports_a %module imports_a
%warnfilter(801) A::MemberEnum; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) A::MemberEnum; /* Ruby, wrong constant name */
%warnfilter(801) GlobalEnum; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) GlobalEnum; /* Ruby, wrong constant name */
%{ %{
#include "imports_a.h" #include "imports_a.h"

View file

@ -2,7 +2,7 @@
// This test is to check the intermediary class name can be changed (C# and Java only use intermediary classes at time of writing) // This test is to check the intermediary class name can be changed (C# and Java only use intermediary classes at time of writing)
%module(directors="1", jniclassname="intermediary_classname", imclassname="intermediary_classname") "intermediary_classname" %module(directors="1", jniclassname="intermediary_classname", imclassname="intermediary_classname") "intermediary_classname"
%warnfilter(470,473); %warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR);
// change the access to the intermediary class for testing purposes // change the access to the intermediary class for testing purposes
%pragma(java) jniclassclassmodifiers="public class"; %pragma(java) jniclassclassmodifiers="public class";

View file

@ -2,7 +2,7 @@
* Test Java director typemaps and features * Test Java director typemaps and features
*/ */
%warnfilter(470,473); /* Thread/reentrant unsafe wrapping, consider returning by value instead. */ %warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR); /* Thread/reentrant unsafe wrapping, consider returning by value instead. */
%module(directors="1") java_director %module(directors="1") java_director

View file

@ -5,10 +5,10 @@
%module kind %module kind
%warnfilter(801) foo; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo; /* Ruby, wrong class name */
%warnfilter(801) bar; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) bar; /* Ruby, wrong class name */
%warnfilter(801) uni; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) uni; /* Ruby, wrong class name */
%warnfilter(801) test; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) test; /* Ruby, wrong class name */
%inline %{ %inline %{

View file

@ -1,6 +1,6 @@
%module li_carrays %module li_carrays
%warnfilter(801) doubleArray; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) doubleArray; /* Ruby, wrong class name */
%include "carrays.i" %include "carrays.i"

View file

@ -1,8 +1,8 @@
%module li_cmalloc %module li_cmalloc
%warnfilter(801) sizeof_int; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) sizeof_int; /* Ruby, wrong constant name */
%warnfilter(801) sizeof_double; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) sizeof_double; /* Ruby, wrong constant name */
%warnfilter(801) sizeof_intp; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) sizeof_intp; /* Ruby, wrong constant name */
%include "cmalloc.i" %include "cmalloc.i"

View file

@ -1,6 +1,6 @@
%module li_cpointer %module li_cpointer
%warnfilter(801) doublep; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) doublep; /* Ruby, wrong class name */
%include "cpointer.i" %include "cpointer.i"

View file

@ -1,5 +1,5 @@
%module("nocastmode") li_implicit %module("nocastmode") li_implicit
#pragma SWIG nowarn=204 #pragma SWIG nowarn=SWIGWARN_PP_CPP_WARNING
%include implicit.i %include implicit.i
%inline %inline

View file

@ -4,12 +4,12 @@
%module long_long %module long_long
%warnfilter(801) lconst1; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) lconst1; /* Ruby, wrong constant name */
%warnfilter(801) lconst2; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) lconst2; /* Ruby, wrong constant name */
%warnfilter(801) lconst3; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) lconst3; /* Ruby, wrong constant name */
%warnfilter(801) lconst4; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) lconst4; /* Ruby, wrong constant name */
%warnfilter(801) lconst5; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) lconst5; /* Ruby, wrong constant name */
%warnfilter(801) lconst6; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) lconst6; /* Ruby, wrong constant name */
%inline %{ %inline %{
void foo1(long long x) {} void foo1(long long x) {}

View file

@ -1,7 +1,7 @@
%module mixed_types %module mixed_types
%warnfilter(801) hi; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) hi; /* Ruby, wrong constant name */
%warnfilter(801) hello; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) hello; /* Ruby, wrong constant name */
%inline %inline
{ {

View file

@ -3,8 +3,13 @@ It tests basic multiple inheritance */
%module(ruby_minherit="1") multiple_inheritance %module(ruby_minherit="1") multiple_inheritance
%warnfilter(813,833,870) FooBar; /* C#, Java, Php4 multiple inheritance */ %warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
%warnfilter(813,833,870) FooBarSpam; /* C#, Java, Php4 multiple inheritance */ SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) FooBar; /* C#, Java, Php4 multiple inheritance */
%warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) FooBarSpam; /* C#, Java, Php4 multiple inheritance */
%inline %{ %inline %{

View file

@ -4,7 +4,7 @@
%module name %module name
#pragma SWIG nowarn=121 // %name is deprecated. Use %rename instead. #pragma SWIG nowarn=SWIGWARN_DEPRECATED_NAME // %name is deprecated. Use %rename instead.
#ifdef SWIGGUILE #ifdef SWIGGUILE
%rename foo_1 "foo-2"; %rename foo_1 "foo-2";

View file

@ -4,7 +4,7 @@
%module name_cxx %module name_cxx
#pragma SWIG nowarn=121 // %name is deprecated. Use %rename instead. #pragma SWIG nowarn=SWIGWARN_DEPRECATED_NAME // %name is deprecated. Use %rename instead.
%name("bar_int") %name("bar_int")
%inline %{ %inline %{

View file

@ -10,7 +10,7 @@
*/ */
/* activate all the name warnings */ /* activate all the name warnings */
%warnfilter(+314,+321,-403); %warnfilter(+SWIGWARN_PARSE_KEYWORD,+SWIGWARN_PARSE_BUILTIN_NAME,-SWIGWARN_TYPE_ABSTRACT);
%{ %{
#ifdef max #ifdef max

View file

@ -210,7 +210,7 @@ namespace a
%} %}
#pragma SWIG nowarn=312 #pragma SWIG nowarn=SWIGWARN_PARSE_NESTED_CLASS
%inline %{ %inline %{
class Ala { class Ala {

View file

@ -1,6 +1,6 @@
%module namespace_extend %module namespace_extend
%warnfilter(801) bar; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) bar; /* Ruby, wrong class name */
%{ %{
namespace foo { namespace foo {

View file

@ -1,7 +1,7 @@
%module namespace_nested %module namespace_nested
%warnfilter(801) hello::hi::hi0; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) hello::hi::hi0; /* Ruby, wrong class name */
%warnfilter(801) oss::hi1<hello::Hi0 >; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::hi1<hello::Hi0 >; /* Ruby, wrong class name */
%inline %{ %inline %{
namespace hello namespace hello

View file

@ -2,10 +2,10 @@
%module namespace_template %module namespace_template
%warnfilter(801) vector<int>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<int>; /* Ruby, wrong class name */
%warnfilter(801) test2::vector<short>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) test2::vector<short>; /* Ruby, wrong class name */
%warnfilter(801) test3::vector<long>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) test3::vector<long>; /* Ruby, wrong class name */
%warnfilter(801) vector<test4::Integer>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<test4::Integer>; /* Ruby, wrong class name */
%{ %{
#ifdef max #ifdef max

View file

@ -7,7 +7,10 @@ see bottom for a set of possible tests
%module operator_overload %module operator_overload
#if defined(SWIGPYTHON) #if defined(SWIGPYTHON)
%warnfilter(362,389,383,384); %warnfilter(SWIGWARN_IGNORE_OPERATOR_EQ,
SWIGWARN_IGNORE_OPERATOR_INDEX,
SWIGWARN_IGNORE_OPERATOR_PLUSPLUS,
SWIGWARN_IGNORE_OPERATOR_MINUSMINUS);
#endif #endif
#if !defined(SWIGLUA) || !defined(SWIGPERL) #if !defined(SWIGLUA) || !defined(SWIGPERL)
@ -87,10 +90,7 @@ public:
friend Op operator/(const Op& a,const Op& b){return Op(a.i/b.i);} friend Op operator/(const Op& a,const Op& b){return Op(a.i/b.i);}
friend Op operator%(const Op& a,const Op& b){return Op(a.i%b.i);} friend Op operator%(const Op& a,const Op& b){return Op(a.i%b.i);}
// unary operators // unary operators
Op operator++() {i++; return *this;}
Op operator--() {i--; return *this;}
Op operator-() const {return Op(-i);} Op operator-() const {return Op(-i);}
bool operator !() const {return !(i);} bool operator !() const {return !(i);}
@ -108,17 +108,13 @@ public:
int operator()(int a=0){return i+a;} int operator()(int a=0){return i+a;}
int operator()(int a,int b){return i+a+b;} int operator()(int a,int b){return i+a+b;}
<<<<<<< operator_overload.i
// TODO: <<,<<=
=======
// increment/decrement operators // increment/decrement operators
Op& operator++(){++i; return *this;} // prefix ++ Op& operator++(){++i; return *this;} // prefix ++
Op& operator++(int){i++; return *this;} // postfix ++ Op operator++(int){return Op(i++);} // postfix ++
Op& operator--(){--i; return *this;} // prefix -- Op& operator--(){--i; return *this;} // prefix --
Op& operator--(int){i--; return *this;} // postfix -- Op operator--(int){return Op(i++);} // postfix --
// TODO: <<,<<= // TODO: <<,<<=
>>>>>>> 1.6
}; };
// just to complicate matters // just to complicate matters

View file

@ -4,7 +4,7 @@
%typemap(default) double y "$1=1000;"; %typemap(default) double y "$1=1000;";
#endif #endif
%warnfilter(302) Foo::test; %warnfilter(SWIGWARN_PARSE_REDEFINED) Foo::test;

View file

@ -6,7 +6,7 @@
%module pointer_reference %module pointer_reference
%warnfilter(454); /* memory leak when setting a ptr/ref variable */ %warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
#ifdef SWIGGUILE #ifdef SWIGGUILE
/* A silly testing typemap for feeding a doubly indirect integer */ /* A silly testing typemap for feeding a doubly indirect integer */

View file

@ -1,11 +1,11 @@
%module preproc %module preproc
%warnfilter(801) one; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) one; /* Ruby, wrong constant name */
%warnfilter(801) two; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) two; /* Ruby, wrong constant name */
%warnfilter(801) three; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) three; /* Ruby, wrong constant name */
%warnfilter(801) __GMP_HAVE_CONST; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) __GMP_HAVE_CONST; /* Ruby, wrong constant name */
%warnfilter(801) __GMP_HAVE_PROTOTYPES; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) __GMP_HAVE_PROTOTYPES; /* Ruby, wrong constant name */
%warnfilter(801) __GMP_HAVE_TOKEN_PASTE; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) __GMP_HAVE_TOKEN_PASTE; /* Ruby, wrong constant name */
/* check __cplusplus case */ /* check __cplusplus case */
%header %header
@ -103,10 +103,10 @@ int f(int min);
// preproc_5 // preproc_5
%warnfilter(801) a5; // Ruby, wrong constant name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) a5; // Ruby, wrong constant name
%warnfilter(801) b5; // Ruby, wrong constant name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) b5; // Ruby, wrong constant name
%warnfilter(801) c5; // Ruby, wrong constant name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) c5; // Ruby, wrong constant name
%warnfilter(801) d5; // Ruby, wrong constant name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) d5; // Ruby, wrong constant name
// Various preprocessor bits of nastiness. // Various preprocessor bits of nastiness.
@ -150,10 +150,10 @@ NAME 42
// preproc_6 // preproc_6
%warnfilter(801) a6; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) a6; /* Ruby, wrong constant name */
%warnfilter(801) b6; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) b6; /* Ruby, wrong constant name */
%warnfilter(801) c6; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) c6; /* Ruby, wrong constant name */
%warnfilter(801) d6; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) d6; /* Ruby, wrong constant name */
#define add(a, b) (a + b) #define add(a, b) (a + b)
#define times(a, b) (a * b) #define times(a, b) (a * b)
@ -279,7 +279,7 @@ inline const char* mangle ## #@__VA_ARGS__ () {
#ifdef SWIGCHICKEN #ifdef SWIGCHICKEN
/* define is a scheme keyword (and thus an invalid variable name), so SWIG warns about it */ /* define is a scheme keyword (and thus an invalid variable name), so SWIG warns about it */
%warnfilter(314) define; %warnfilter(SWIGWARN_PARSE_KEYWORD) define;
#endif #endif
#ifdef SWIGRUBY #ifdef SWIGRUBY

View file

@ -2,10 +2,10 @@
%module(directors="1") primitive_types %module(directors="1") primitive_types
// Ruby constant names // Ruby constant names
#pragma SWIG nowarn=801 #pragma SWIG nowarn=SWIGWARN_RUBY_WRONG_NAME
// Using thread unsafe wrapping // Using thread unsafe wrapping
#pragma SWIG nowarn=470,473 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR
/* /*
if your language has problems with MyInt* and/or Hello*, if your language has problems with MyInt* and/or Hello*,
@ -87,9 +87,7 @@
// Try your language module with and without // Try your language module with and without
// these nowarn flags. // these nowarn flags.
// //
%warnfilter(451); %warnfilter(SWIGWARN_TYPEMAP_CHARLEAK);
//%warnfilter(515);
//%warnfilter(509);
%{ %{
#include <stddef.h> #include <stddef.h>

View file

@ -24,7 +24,7 @@
%} %}
#pragma SWIG nowarn=350 // operator new #pragma SWIG nowarn=SWIGWARN_IGNORE_OPERATOR_NEW // operator new
%inline %{ %inline %{
class TROOT { class TROOT {

View file

@ -7,7 +7,9 @@
%module(ruby_minherit="1") pure_virtual %module(ruby_minherit="1") pure_virtual
%warnfilter(813,833,870) E; /* C#, Java, Php4 multiple inheritance */ %warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) E; /* C#, Java, Php4 multiple inheritance */
%nodefaultctor C; %nodefaultctor C;
%nodefaultdtor C; %nodefaultdtor C;

View file

@ -1,5 +1,5 @@
%module(directors="1") director_stl %module(directors="1") director_stl
#pragma SWIG nowarn=470,473 #pragma SWIG nowarn=SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR
%include "std_string.i" %include "std_string.i"
%include "std_pair.i" %include "std_pair.i"

View file

@ -43,7 +43,7 @@ typedef float Real;
#if 1 #if 1
//fails //fails
namespace std { namespace std {
%template(RealVector) vector<int>; %template(RealVector) vector<Real>;
} }
#else #else
//works //works

View file

@ -1,9 +1,9 @@
%module redefined %module redefined
%warnfilter(801) agua; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) agua;
/* no redundant warnings */ /* no redundant warnings */
%warnfilter(322); %warnfilter(SWIGWARN_PARSE_REDUNDANT);
#if 1 #if 1
// //

View file

@ -4,7 +4,7 @@
%module reference_global_vars %module reference_global_vars
%warnfilter(454); /* memory leak when setting a ptr/ref variable */ %warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
%inline %{ %inline %{
class TestClass { class TestClass {

View file

@ -2,7 +2,7 @@
%module ret_by_value %module ret_by_value
%warnfilter(801) test; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) test; /* Ruby, wrong class name */
%inline %{ %inline %{

View file

@ -1,6 +1,6 @@
%module smart_pointer_extend %module smart_pointer_extend
%warnfilter(801) hi::CBase::z; /* Ruby, wrong const name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) hi::CBase::z; /* Ruby, wrong const name */
%inline %{ %inline %{
namespace hi namespace hi

View file

@ -1,8 +1,8 @@
%module static_const_member_2 %module static_const_member_2
%warnfilter(801) oss::modules::CavityPackFlags::forward_field; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::modules::CavityPackFlags::forward_field;
%warnfilter(801) oss::modules::CavityPackFlags::backward_field; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::modules::CavityPackFlags::backward_field;
%warnfilter(801) oss::modules::Test::current_profile; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::modules::Test::current_profile;
%inline %{ %inline %{
namespace oss namespace oss

View file

@ -1,9 +1,9 @@
/* File : example.i */ /* File : example.i */
%module "template" %module "template"
%warnfilter(801) vector<int>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<int>; /* Ruby, wrong class name */
%warnfilter(801) vector<double>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<double>; /* Ruby, wrong class name */
%warnfilter(801) vector<int (*)[10]>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<int (*)[10]>; /* Ruby, wrong class name */
/* Let's just grab the original header file here */ /* Let's just grab the original header file here */

View file

@ -1,6 +1,6 @@
%module template_arg_replace %module template_arg_replace
%warnfilter(801) Matrix<float, 3, 3>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Matrix<float, 3, 3>; /* Ruby, wrong class name */
%inline %{ %inline %{

View file

@ -1,8 +1,8 @@
%module template_base_template %module template_base_template
%warnfilter(801) traits<double, double>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) traits<double, double>; /* Ruby, wrong class name */
%warnfilter(320); %warnfilter(SWIGWARN_PARSE_EXPLICIT_TEMPLATE);
%inline %{ %inline %{
template <class ArgType, class ResType> template <class ArgType, class ResType>

View file

@ -2,7 +2,7 @@
%warnfilter(801) ns1::Traits::c; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) ns1::Traits::c; /* Ruby, wrong constant name */
namespace ns1 { namespace ns1 {
namespace ns2 { namespace ns2 {

View file

@ -1,6 +1,6 @@
%module template_default2 %module template_default2
%warnfilter(801) oss::traits; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::traits; // Ruby, wrong class name
%inline %{ %inline %{
namespace oss namespace oss

View file

@ -1,6 +1,6 @@
%module template_default_arg %module template_default_arg
%warnfilter(801) Hello; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Hello; /* Ruby, wrong class name */
%inline %{ %inline %{
template <class T> template <class T>

View file

@ -1,6 +1,6 @@
%module template_default_inherit %module template_default_inherit
%warnfilter(801) A::nindex; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) A::nindex; /* Ruby, wrong constant name */
%inline %{ %inline %{
template <class C> template <class C>

View file

@ -3,7 +3,7 @@
%module template_default_qualify %module template_default_qualify
%warnfilter(801) etraits; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) etraits; /* Ruby, wrong class name */
%inline %{ %inline %{
namespace oss namespace oss

View file

@ -1,7 +1,7 @@
%module template_enum %module template_enum
%warnfilter(801) foo<int>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo<int>; /* Ruby, wrong class name */
%warnfilter(801) foo<double>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo<double>; /* Ruby, wrong class name */
%inline %{ %inline %{
template<class T> class foo { template<class T> class foo {

View file

@ -1,6 +1,6 @@
%module template_enum_typedef %module template_enum_typedef
%warnfilter(801) oss::etraits; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::etraits; /* Ruby, wrong class name */
%inline %{ %inline %{

View file

@ -1,13 +1,13 @@
/* File : example.i */ /* File : example.i */
%module "template_explicit" %module "template_explicit"
%warnfilter(801) vector<int>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<int>; /* Ruby, wrong class name */
%warnfilter(801) vector<double>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<double>; /* Ruby, wrong class name */
%warnfilter(801) vector<int (*)[10]>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<int (*)[10]>; /* Ruby, wrong class name */
// #pragma is used for warnings that are not associated to // #pragma is used for warnings that are not associated to
// specific nodes. // specific nodes.
#pragma SWIG nowarn=-320 #pragma SWIG nowarn=-SWIGWARN_PARSE_EXPLICIT_TEMPLATE
/* Let's just grab the original header file here */ /* Let's just grab the original header file here */

View file

@ -2,8 +2,8 @@
%module template_extend1 %module template_extend1
%warnfilter(801) Baz<long>; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Baz<long>; // Ruby, wrong class name
%warnfilter(801) Baz<double>; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Baz<double>; // Ruby, wrong class name
%{ %{
namespace Quux { namespace Quux {

View file

@ -1,8 +1,8 @@
// Another evil Luigi test // Another evil Luigi test
%module template_extend2 %module template_extend2
%warnfilter(801) Baz<long>; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Baz<long>; // Ruby, wrong class name
%warnfilter(801) Baz<double>; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Baz<double>; // Ruby, wrong class name
%{ %{
namespace Quux { namespace Quux {

View file

@ -1,7 +1,10 @@
%module(ruby_minherit="1") template_inherit_abstract %module(ruby_minherit="1") template_inherit_abstract
%warnfilter(801) oss::test; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::test; /* Ruby, wrong class name */
%warnfilter(813,833,870) oss::Module; /* C#, Java, Php4 multiple inheritance */
%warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) oss::Module; /* C#, Java, Php4 multiple inheritance */
%inline %{ %inline %{

View file

@ -1,7 +1,7 @@
%module template_int_const %module template_int_const
%warnfilter(801) interface_traits; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) interface_traits; /* Ruby, wrong class name */
%warnfilter(801) module_traits; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) module_traits; /* Ruby, wrong class name */
%inline %{ %inline %{
enum Polarization { UnaryPolarization, BinaryPolarization }; enum Polarization { UnaryPolarization, BinaryPolarization };

View file

@ -3,8 +3,8 @@
%module template_ns %module template_ns
%warnfilter(801) std::my_pair<int, int>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) std::my_pair<int, int>; /* Ruby, wrong class name */
%warnfilter(801) std::my_pair<double, double>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) std::my_pair<double, double>; /* Ruby, wrong class name */
%ignore std::my_pair::my_pair(); %ignore std::my_pair::my_pair();

View file

@ -1,6 +1,6 @@
%module template_ns3 %module template_ns3
%warnfilter(801) foo::bar<int>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo::bar<int>; /* Ruby, wrong class name */
%inline %{ %inline %{
namespace foo { namespace foo {

View file

@ -1,7 +1,7 @@
%module template_rename %module template_rename
%warnfilter(801) Foo<int>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Foo<int>; /* Ruby, wrong class name */
%warnfilter(801) Foo<double>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Foo<double>; /* Ruby, wrong class name */
%rename(blah_test) Foo::blah(int); %rename(blah_test) Foo::blah(int);
%rename(spam_test) Foo<int>::spam(int); %rename(spam_test) Foo<int>::spam(int);

View file

@ -1,7 +1,7 @@
%module template_specialization_enum %module template_specialization_enum
%warnfilter(801) Hello; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Hello; /* Ruby, wrong class name */
%warnfilter(801) Hi; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Hi; /* Ruby, wrong class name */
%inline %{ %inline %{

View file

@ -1,7 +1,7 @@
%module template_static %module template_static
%warnfilter(801) foo<int>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo<int>; /* Ruby, wrong class name */
%warnfilter(801) foo<double>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo<double>; /* Ruby, wrong class name */
%inline %{ %inline %{
template<class T> class foo { template<class T> class foo {

View file

@ -1,8 +1,8 @@
%module template_tbase_template %module template_tbase_template
%warnfilter(801) traits<Double, Double>; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) traits<Double, Double>; /* Ruby, wrong class name */
%warnfilter(320); %warnfilter(SWIGWARN_PARSE_EXPLICIT_TEMPLATE);
%inline %{ %inline %{
typedef double Double; typedef double Double;

View file

@ -1,6 +1,6 @@
%module template_type_namespace %module template_type_namespace
%warnfilter(801) std::vector<std::string>; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) std::vector<std::string>; // Ruby, wrong class name
%include std_string.i %include std_string.i
%include std_vector.i %include std_vector.i

View file

@ -1,6 +1,6 @@
%module("templatereduce") template_typedef_ptr %module("templatereduce") template_typedef_ptr
%warnfilter(801) Test<int, C*>; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Test<int, C*>; /* Ruby, wrong constant name */
/* /*
Use the "templatereduce" feature to force swig to reduce the template Use the "templatereduce" feature to force swig to reduce the template

View file

@ -1,7 +1,7 @@
%module throw_exception %module throw_exception
%warnfilter(801) Namespace::enum1; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Namespace::enum1;
%warnfilter(801) Namespace::enum2; %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Namespace::enum2;
// Tests SWIG's automatic exception mechanism // Tests SWIG's automatic exception mechanism

View file

@ -2,8 +2,8 @@
%module typedef_funcptr %module typedef_funcptr
%warnfilter(801) addf; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) addf; /* Ruby, wrong constant name */
%warnfilter(801) subf; /* Ruby, wrong constant name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) subf; /* Ruby, wrong constant name */
%{ %{
int addf(int x, int y) { int addf(int x, int y) {

View file

@ -1,6 +1,6 @@
%module typemap_ns_using %module typemap_ns_using
%warnfilter(801) X::_FooImpl; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) X::_FooImpl; /* Ruby, wrong class name */
%inline %{ %inline %{
namespace X { namespace X {

View file

@ -3,7 +3,7 @@
%module typemap_subst %module typemap_subst
%warnfilter(801) xyzzy; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) xyzzy; /* Ruby, wrong class name */
%inline %{ %inline %{
struct xyzzy { struct xyzzy {

Some files were not shown because too many files have changed in this diff Show more