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
parent 6f0ac941e8
commit 89e7497ac6
124 changed files with 671 additions and 281 deletions

View File

@ -1,5 +1,25 @@
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
Fix for %extend and static const integral types, eg:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,11 @@
%module(ruby_minherit="1") abstract_virtual
%warnfilter(813,833,870) D; /* C#, Java, Php4 multiple inheritance */
%warnfilter(813,833,870) E; /* C#, Java, Php4 multiple inheritance */
%warnfilter(SWIGWARN_JAVA_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 %{
struct A

View File

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

View File

@ -2,7 +2,7 @@
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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ below.
%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."

View File

@ -4,7 +4,7 @@ This testcase primarily test constant pointers, eg int* const. Only a getter is
%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 %{

View File

@ -1,6 +1,9 @@
%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
%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 */
%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

View File

@ -3,9 +3,15 @@
%module(ruby_minherit="1") default_constructor
%warnfilter(813,833,870) EB; /* C#, Java, Php4 multiple inheritance */
%warnfilter(813,833,870) AD; /* C#, Java, Php4 multiple inheritance */
%warnfilter(510) F; /* friend function */
%warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
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 %{

View File

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

View File

@ -1,7 +1,8 @@
%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>

View File

@ -1,13 +1,14 @@
%module(directors="1") director_enum
%warnfilter(801) EnumDirector::hi; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::hello; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::yo; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::awright; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::Foo::ciao; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::Foo::aufwiedersehen; /* Ruby, wrong constant name */
%warnfilter(801) EnumDirector::Foo::adios; /* Ruby, wrong constant name */
%warnfilter(470,473) EnumDirector::Foo; /* Thread/reentrant unsafe wrapping, consider returning by value instead. */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::hi; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::hello; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::yo; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::awright; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::Foo::ciao; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::Foo::aufwiedersehen; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) EnumDirector::Foo::adios; /* Ruby, wrong constant name */
%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;
#pragma SWIG nowarn=470,473
#pragma SWIG nowarn=SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR
%header %{
#include <iostream>

View File

@ -1,5 +1,5 @@
%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>

View File

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

View File

@ -1,5 +1,5 @@
%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) Foo<int>;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,9 +1,12 @@
%module(ruby_minherit="1") evil_diamond
%warnfilter(801) foo; // Ruby, wrong class name
%warnfilter(801) bar; // Ruby, wrong class name
%warnfilter(801) 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) foo; // Ruby, wrong class name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) bar; // Ruby, wrong class name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) baz; // Ruby, wrong class name
%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 %{

View File

@ -1,9 +1,12 @@
%module(ruby_minherit="1") evil_diamond_ns
%warnfilter(801) Blah::foo; // Ruby, wrong class name
%warnfilter(801) Blah::bar; // Ruby, wrong class name
%warnfilter(801) 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) Blah::foo; // Ruby, wrong class name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) Blah::bar; // Ruby, wrong class name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) Blah::baz; // Ruby, wrong class name
%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 %{
namespace Blah {

View File

@ -1,9 +1,12 @@
%module(ruby_minherit="1") evil_diamond_prop
%warnfilter(801) foo; // Ruby, wrong class name
%warnfilter(801) bar; // Ruby, wrong class name
%warnfilter(801) 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) foo; // Ruby, wrong class name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) bar; // Ruby, wrong class name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) baz; // Ruby, wrong class name
%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 %{

View File

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

View File

@ -1,6 +1,6 @@
%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

View File

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

View File

@ -1,6 +1,6 @@
%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

View File

@ -5,8 +5,8 @@
%module imports_a
%warnfilter(801) A::MemberEnum; /* Ruby, wrong constant name */
%warnfilter(801) GlobalEnum; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) A::MemberEnum; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) GlobalEnum; /* Ruby, wrong constant name */
%{
#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)
%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
%pragma(java) jniclassclassmodifiers="public class";

View File

@ -2,7 +2,7 @@
* 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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,8 +3,13 @@ It tests basic multiple inheritance */
%module(ruby_minherit="1") multiple_inheritance
%warnfilter(813,833,870) FooBar; /* C#, Java, Php4 multiple inheritance */
%warnfilter(813,833,870) FooBarSpam; /* C#, Java, Php4 multiple inheritance */
%warnfilter(SWIGWARN_JAVA_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 %{

View File

@ -4,7 +4,7 @@
%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
%rename foo_1 "foo-2";

View File

@ -4,7 +4,7 @@
%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")
%inline %{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,10 @@ see bottom for a set of possible tests
%module operator_overload
#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
#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);}
// unary operators
Op operator++() {i++; return *this;}
Op operator--() {i--; return *this;}
Op operator-() const {return Op(-i);}
bool operator !() const {return !(i);}
@ -108,17 +108,13 @@ public:
int operator()(int a=0){return i+a;}
int operator()(int a,int b){return i+a+b;}
<<<<<<< operator_overload.i
// TODO: <<,<<=
=======
// increment/decrement operators
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--(int){i--; return *this;} // postfix --
Op operator--(int){return Op(i++);} // postfix --
// TODO: <<,<<=
>>>>>>> 1.6
};
// just to complicate matters

View File

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

View File

@ -6,7 +6,7 @@
%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
/* A silly testing typemap for feeding a doubly indirect integer */

View File

@ -1,11 +1,11 @@
%module preproc
%warnfilter(801) one; /* Ruby, wrong constant name */
%warnfilter(801) two; /* Ruby, wrong constant name */
%warnfilter(801) three; /* Ruby, wrong constant name */
%warnfilter(801) __GMP_HAVE_CONST; /* Ruby, wrong constant name */
%warnfilter(801) __GMP_HAVE_PROTOTYPES; /* Ruby, wrong constant name */
%warnfilter(801) __GMP_HAVE_TOKEN_PASTE; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) one; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) two; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) three; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) __GMP_HAVE_CONST; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) __GMP_HAVE_PROTOTYPES; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) __GMP_HAVE_TOKEN_PASTE; /* Ruby, wrong constant name */
/* check __cplusplus case */
%header
@ -103,10 +103,10 @@ int f(int min);
// preproc_5
%warnfilter(801) a5; // Ruby, wrong constant name
%warnfilter(801) b5; // Ruby, wrong constant name
%warnfilter(801) c5; // Ruby, wrong constant name
%warnfilter(801) d5; // Ruby, wrong constant name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) a5; // Ruby, wrong constant name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) b5; // Ruby, wrong constant name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) c5; // Ruby, wrong constant name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) d5; // Ruby, wrong constant name
// Various preprocessor bits of nastiness.
@ -150,10 +150,10 @@ NAME 42
// preproc_6
%warnfilter(801) a6; /* Ruby, wrong constant name */
%warnfilter(801) b6; /* Ruby, wrong constant name */
%warnfilter(801) c6; /* Ruby, wrong constant name */
%warnfilter(801) d6; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) a6; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) b6; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) c6; /* Ruby, wrong constant name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) d6; /* Ruby, wrong constant name */
#define add(a, b) (a + b)
#define times(a, b) (a * b)
@ -279,7 +279,7 @@ inline const char* mangle ## #@__VA_ARGS__ () {
#ifdef SWIGCHICKEN
/* 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
#ifdef SWIGRUBY

View File

@ -2,10 +2,10 @@
%module(directors="1") primitive_types
// Ruby constant names
#pragma SWIG nowarn=801
#pragma SWIG nowarn=SWIGWARN_RUBY_WRONG_NAME
// 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*,
@ -87,9 +87,7 @@
// Try your language module with and without
// these nowarn flags.
//
%warnfilter(451);
//%warnfilter(515);
//%warnfilter(509);
%warnfilter(SWIGWARN_TYPEMAP_CHARLEAK);
%{
#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 %{
class TROOT {

View File

@ -7,7 +7,9 @@
%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;
%nodefaultdtor C;

View File

@ -1,5 +1,5 @@
%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_pair.i"

View File

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

View File

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

View File

@ -4,7 +4,7 @@
%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 %{
class TestClass {

View File

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

View File

@ -1,6 +1,6 @@
%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 %{
namespace hi

View File

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

View File

@ -1,9 +1,9 @@
/* File : example.i */
%module "template"
%warnfilter(801) vector<int>; /* Ruby, wrong class name */
%warnfilter(801) vector<double>; /* Ruby, wrong class name */
%warnfilter(801) vector<int (*)[10]>; /* Ruby, wrong class name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<int>; /* Ruby, wrong class name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<double>; /* 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 */

View File

@ -1,6 +1,6 @@
%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 %{

View File

@ -1,8 +1,8 @@
%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 %{
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 ns2 {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,13 +1,13 @@
/* File : example.i */
%module "template_explicit"
%warnfilter(801) vector<int>; /* Ruby, wrong class name */
%warnfilter(801) vector<double>; /* Ruby, wrong class name */
%warnfilter(801) vector<int (*)[10]>; /* Ruby, wrong class name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<int>; /* Ruby, wrong class name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<double>; /* 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
// specific nodes.
#pragma SWIG nowarn=-320
#pragma SWIG nowarn=-SWIGWARN_PARSE_EXPLICIT_TEMPLATE
/* Let's just grab the original header file here */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
%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 %{
namespace foo {

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
%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 %{
typedef double Double;

View File

@ -1,6 +1,6 @@
%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_vector.i

View File

@ -1,6 +1,6 @@
%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

View File

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

View File

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

View File

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

View File

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

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