[OCaml] Add missing warning filters for OCaml keywords in the test suite
This commit is contained in:
parent
0078c7d84d
commit
5c19f4de2f
32 changed files with 129 additions and 0 deletions
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
// %constant and struct
|
// %constant and struct
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#pragma warning(disable : 4190) // warning C4190: 'result' has C-linkage specified, but returns UDT 'Type1' which is incompatible with C
|
#pragma warning(disable : 4190) // warning C4190: 'result' has C-linkage specified, but returns UDT 'Type1' which is incompatible with C
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
%module cpp_namespace
|
%module cpp_namespace
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
typedef int Bad;
|
typedef int Bad;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module default_arg_expressions
|
%module default_arg_expressions
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK_MSG) ptr;
|
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK_MSG) ptr;
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK_MSG) UsdGeomTokensPtr;
|
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK_MSG) UsdGeomTokensPtr;
|
||||||
%immutable UsdGeomTokens;
|
%immutable UsdGeomTokens;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
%module default_args
|
%module default_args
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#pragma warning(disable: 4146) // unary minus operator applied to unsigned type, result still unsigned
|
#pragma warning(disable: 4146) // unary minus operator applied to unsigned type, result still unsigned
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module derived_byvalue
|
%module derived_byvalue
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
struct Foo {
|
struct Foo {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module(directors="1") director_basic
|
%module(directors="1") director_basic
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) MyClass::pmethod;
|
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) MyClass::pmethod;
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,10 @@
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) Base::Ptr;
|
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) Base::Ptr;
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) Base::ConstPtrRef;
|
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) Base::ConstPtrRef;
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%module(directors="1") director_classes
|
%module(directors="1") director_classes
|
||||||
|
|
||||||
%feature("director") Base;
|
%feature("director") Base;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module(directors="1") director_overload
|
%module(directors="1") director_overload
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%feature("director");
|
%feature("director");
|
||||||
|
|
||||||
#ifdef SWIGPYTHON
|
#ifdef SWIGPYTHON
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) MyClass::pmethod;
|
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) MyClass::pmethod;
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,10 @@
|
||||||
%module(directors="1") director_thread
|
%module(directors="1") director_thread
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%begin %{
|
%begin %{
|
||||||
#define SWIG_JAVA_USE_THREAD_NAME
|
#define SWIG_JAVA_USE_THREAD_NAME
|
||||||
//#define DEBUG_DIRECTOR_THREAD_NAME
|
//#define DEBUG_DIRECTOR_THREAD_NAME
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module extend
|
%module extend
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%extend Base {
|
%extend Base {
|
||||||
~Base() {
|
~Base() {
|
||||||
delete $self;
|
delete $self;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
%warnfilter(SWIGWARN_LANG_IDENTIFIER,SWIGWARN_IGNORE_OPERATOR_PLUSEQ);
|
%warnfilter(SWIGWARN_LANG_IDENTIFIER,SWIGWARN_IGNORE_OPERATOR_PLUSEQ);
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
// 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
|
||||||
|
|
||||||
// If the default %exception is used it will not compile. It shouldn't get used.
|
// If the default %exception is used it will not compile. It shouldn't get used.
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
#define SHARED_PTR_WRAPPERS_IMPLEMENTED
|
#define SHARED_PTR_WRAPPERS_IMPLEMENTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(SHARED_PTR_WRAPPERS_IMPLEMENTED)
|
#if defined(SHARED_PTR_WRAPPERS_IMPLEMENTED)
|
||||||
|
|
||||||
%include <boost_shared_ptr.i>
|
%include <boost_shared_ptr.i>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
%module("templatereduce") li_std_map
|
%module("templatereduce") li_std_map
|
||||||
%feature("trackobjects");
|
%feature("trackobjects");
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
namespace another {
|
namespace another {
|
||||||
struct map {
|
struct map {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,10 @@
|
||||||
|
|
||||||
%template(IntPtrVector) std::vector<int *>;
|
%template(IntPtrVector) std::vector<int *>;
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
// bug #491476
|
// bug #491476
|
||||||
%inline %{
|
%inline %{
|
||||||
struct Outer {
|
struct Outer {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module nested_template_base
|
%module nested_template_base
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
template <class T> class OuterT {
|
template <class T> class OuterT {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,9 @@
|
||||||
%rename(Foos) Foo;
|
%rename(Foos) Foo;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) type;
|
||||||
|
#endif
|
||||||
|
|
||||||
%immutable Spam::type;
|
%immutable Spam::type;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
/* This test confirms the fix to sourceforge bug #3478922 for R */
|
/* This test confirms the fix to sourceforge bug #3478922 for R */
|
||||||
|
|
||||||
%module overload_method
|
%module overload_method
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
class Base
|
class Base
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,10 @@
|
||||||
%rename(Foos) Foo;
|
%rename(Foos) Foo;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) type;
|
||||||
|
#endif
|
||||||
|
|
||||||
%immutable Spam::type;
|
%immutable Spam::type;
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,11 @@
|
||||||
#endif
|
#endif
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* check __cplusplus case */
|
/* check __cplusplus case */
|
||||||
%header
|
%header
|
||||||
%{
|
%{
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@
|
||||||
SWIGWARN_D_MULTIPLE_INHERITANCE,
|
SWIGWARN_D_MULTIPLE_INHERITANCE,
|
||||||
SWIGWARN_PHP_MULTIPLE_INHERITANCE) E; /* C#, D, Java, PHP multiple inheritance */
|
SWIGWARN_PHP_MULTIPLE_INHERITANCE) E; /* C#, D, Java, PHP multiple inheritance */
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%nodefaultctor C;
|
%nodefaultctor C;
|
||||||
%nodefaultdtor C;
|
%nodefaultdtor C;
|
||||||
%nodefaultctor E;
|
%nodefaultctor E;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::modules::CavityPackFlags::backward_field;
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::modules::CavityPackFlags::backward_field;
|
||||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::modules::Test::current_profile;
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) oss::modules::Test::current_profile;
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
namespace oss
|
namespace oss
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module template_default_class_parms
|
%module template_default_class_parms
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
namespace Space {
|
namespace Space {
|
||||||
struct SomeType {};
|
struct SomeType {};
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
|
|
||||||
%feature("python:nondynamic");
|
%feature("python:nondynamic");
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
namespace Space {
|
namespace Space {
|
||||||
struct SomeType {};
|
struct SomeType {};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module template_typedef_class_template
|
%module template_typedef_class_template
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
namespace Standard {
|
namespace Standard {
|
||||||
template <class T, class U > struct Pair {
|
template <class T, class U > struct Pair {
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@
|
||||||
%typemap(out) Integer2 { /* do nothing */ }
|
%typemap(out) Integer2 { /* do nothing */ }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%{
|
%{
|
||||||
typedef int Integer1;
|
typedef int Integer1;
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
// Similar to template_typedef_class_template
|
// Similar to template_typedef_class_template
|
||||||
// Testing typemaps of a typedef of a nested class in a template and where the template uses default parameters
|
// Testing typemaps of a typedef of a nested class in a template and where the template uses default parameters
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
namespace Standard {
|
namespace Standard {
|
||||||
template <class T, class U > struct Pair {
|
template <class T, class U > struct Pair {
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
// Similar to template_typedef_class_template
|
// Similar to template_typedef_class_template
|
||||||
// Testing typemaps of a typedef of a nested class in a template and where the template uses default parameters
|
// Testing typemaps of a typedef of a nested class in a template and where the template uses default parameters
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
namespace Standard {
|
namespace Standard {
|
||||||
template <class T, class U > struct Pair {
|
template <class T, class U > struct Pair {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module typemap_delete
|
%module typemap_delete
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||||
|
#endif
|
||||||
|
|
||||||
%typemap(in) Rect* (Rect temp) {
|
%typemap(in) Rect* (Rect temp) {
|
||||||
$1 = 0;
|
$1 = 0;
|
||||||
will_not_compile
|
will_not_compile
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
* Opaque types
|
* Opaque types
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
%feature("valuewrapper") C;
|
%feature("valuewrapper") C;
|
||||||
class C;
|
class C;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@
|
||||||
#endif
|
#endif
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
#ifdef SWIGOCAML
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check this example with directors wherever possible.
|
// Check this example with directors wherever possible.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue