[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
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
#if defined(_MSC_VER)
|
||||
#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
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
typedef int Bad;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
%module default_arg_expressions
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK_MSG) ptr;
|
||||
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK_MSG) UsdGeomTokensPtr;
|
||||
%immutable UsdGeomTokens;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
%module default_args
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
%{
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable: 4146) // unary minus operator applied to unsigned type, result still unsigned
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
%module derived_byvalue
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
|
||||
struct Foo {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
%module(directors="1") director_basic
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||
#endif
|
||||
|
||||
%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::ConstPtrRef;
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
%module(directors="1") director_classes
|
||||
|
||||
%feature("director") Base;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
%module(directors="1") director_overload
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||
#endif
|
||||
|
||||
%feature("director");
|
||||
|
||||
#ifdef SWIGPYTHON
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) MyClass::pmethod;
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||
#endif
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@
|
|||
%module(directors="1") director_thread
|
||||
#endif
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
%begin %{
|
||||
#define SWIG_JAVA_USE_THREAD_NAME
|
||||
//#define DEBUG_DIRECTOR_THREAD_NAME
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
%module extend
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||
#endif
|
||||
|
||||
%extend Base {
|
||||
~Base() {
|
||||
delete $self;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
%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
|
||||
|
||||
// If the default %exception is used it will not compile. It shouldn't get used.
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@
|
|||
#define SHARED_PTR_WRAPPERS_IMPLEMENTED
|
||||
#endif
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
#if defined(SHARED_PTR_WRAPPERS_IMPLEMENTED)
|
||||
|
||||
%include <boost_shared_ptr.i>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
%module("templatereduce") li_std_map
|
||||
%feature("trackobjects");
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
namespace another {
|
||||
struct map {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@
|
|||
|
||||
%template(IntPtrVector) std::vector<int *>;
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
// bug #491476
|
||||
%inline %{
|
||||
struct Outer {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
%module nested_template_base
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
template <class T> class OuterT {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@
|
|||
%rename(Foos) Foo;
|
||||
#endif
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) type;
|
||||
#endif
|
||||
|
||||
%immutable Spam::type;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
/* This test confirms the fix to sourceforge bug #3478922 for R */
|
||||
|
||||
%module overload_method
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
class Base
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,6 +19,10 @@
|
|||
%rename(Foos) Foo;
|
||||
#endif
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) type;
|
||||
#endif
|
||||
|
||||
%immutable Spam::type;
|
||||
|
||||
%inline %{
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue