From 0b2561f300484470478849a3aa5e1cb9d91b3942 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 22 Jul 2010 17:00:59 +0000 Subject: Add a test case for the regex encoder inside %rename. Simple unit test checking that %rename("%(regex:...)") works as expected. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12171 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index c1952543f..c7afb6647 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -284,6 +284,7 @@ CPP_TEST_CASES += \ rename4 \ rename_scope \ rename_strip_encoder \ + rename_pcre_encoder \ restrict_cplusplus \ return_const_value \ return_value_scope \ -- cgit v1.2.1 From 70c5bb5a47d7380cf5b5371a2b84ad04f330053a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 22 Jul 2010 17:02:10 +0000 Subject: Add support for "[not]regexmatch" and "regextarget" to %rename. "regexmatch" and "notregexmatch" can be used with anonymous %renames in the same way as "match" and "notmatch" while "regextarget" specifies that the argument of a non-anonymous %rename should be interpreted as a regular expression. Document the new functions. Also add a new unit test for %regex also testing regexmatch &c and provide test code for C# and Java verifying that it works as intended. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12174 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index c7afb6647..af9316656 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -285,6 +285,7 @@ CPP_TEST_CASES += \ rename_scope \ rename_strip_encoder \ rename_pcre_encoder \ + rename_pcre_enum \ restrict_cplusplus \ return_const_value \ return_value_scope \ -- cgit v1.2.1 From 69af82caa4c0207cdc150f92cac1f0498ea91928 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 26 Aug 2010 18:06:02 +0000 Subject: Fix __LINE__ and __FILE__ expansion. Mostly this did not work at all. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12192 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index af9316656..e385b11dd 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -486,6 +486,7 @@ C_TEST_CASES += \ overload_extendc \ preproc \ preproc_constants_c \ + preproc_line_file \ ret_by_value \ simple_array \ sizeof_pointer \ -- cgit v1.2.1 From 3219746776bb1bcb9f46f895c68040303f0d4b33 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 3 Oct 2010 13:12:00 +0000 Subject: Apply patch #3066958 from Mikael Johansson to fix default smart pointer handling when the smart pointer contains both a const and non-const operator->. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12240 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index e385b11dd..026612db5 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -294,6 +294,7 @@ CPP_TEST_CASES += \ sizet \ smart_pointer_const \ smart_pointer_const2 \ + smart_pointer_const_overload \ smart_pointer_extend \ smart_pointer_member \ smart_pointer_multi \ -- cgit v1.2.1 From ee1c2f3ef086080a54cf5aec99f8b46e3f4d910d Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Thu, 18 Nov 2010 00:15:13 +0000 Subject: Renamed 'immutable' test-case to 'immutable_values'. This is a part of the pending merge of the D module, where 'immutable' is a keyword (and thus not a valid module name). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12294 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 026612db5..05d2f80c8 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -466,7 +466,7 @@ C_TEST_CASES += \ extern_declaration \ funcptr \ function_typedef \ - immutable \ + immutable_values \ inctest \ integers \ keyword_rename \ -- cgit v1.2.1 From 0fb77ce2068128e02217cdddd6a388e6c6d30d9f Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Thu, 18 Nov 2010 00:15:41 +0000 Subject: Renamed 'template' test-case to 'template_basic'. This is a part of the pending merge of the D module, where 'template' is a keyword (and thus not a valid module name). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12295 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 05d2f80c8..f0fe4af1c 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -318,11 +318,11 @@ CPP_TEST_CASES += \ struct_initialization_cpp \ struct_value \ symbol_clash \ - template \ template_arg_replace \ template_arg_scope \ template_arg_typename \ template_array_numeric \ + template_basic \ template_base_template \ template_classes \ template_const_ref \ -- cgit v1.2.1 From 32769435fd4f5c0ab7dde07feac70c0da1f19ebd Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 8 Dec 2010 19:35:03 +0000 Subject: More extensive member function pointer test git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12336 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index f0fe4af1c..833e1532b 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -231,6 +231,7 @@ CPP_TEST_CASES += \ li_windows \ long_long_apply \ memberin_extend \ + member_funcptr_galore \ member_pointer \ member_template \ minherit \ -- cgit v1.2.1 From 8f1bde9d81c84bd3f761803eec6c5ab456633cf0 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 14 Dec 2010 21:38:36 +0000 Subject: Fix expansion in array typemaps git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12347 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 833e1532b..2f061cd88 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -397,6 +397,7 @@ CPP_TEST_CASES += \ typedef_scope \ typedef_sizet \ typedef_struct \ + typemap_arrays \ typemap_delete \ typemap_global_scope \ typemap_namespace \ -- cgit v1.2.1 From 91523f7510a248bd4d2fcc2e892b29f35cd33a04 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Thu, 30 Dec 2010 15:40:17 +0000 Subject: [C#, D, Java] Check for collision of parameter names with target language keywords when generating the director glue code. The situation in which the generated could would previously be invalid is illustrated in the new 'director_keywords' test case. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12358 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 2f061cd88..f25238382 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -166,6 +166,7 @@ CPP_TEST_CASES += \ director_finalizer \ director_frob \ director_ignore \ + director_keywords \ director_namespace_clash \ director_nested \ director_overload \ -- cgit v1.2.1 From 892caec201744b4af004ecaa5db18a60c3dbc2dc Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sat, 8 Jan 2011 21:05:49 +0000 Subject: [D] Fixed a bug in the loop breaking code for directors leading to a superclass implementation erroneously being called. The situation in which this would previously happen is illustrated in the new "director_alternating" test case. Currently broken for C# and Java. Thanks to Jimmy Cao for reporting this. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12380 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index f25238382..d2b9bc254 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -154,6 +154,7 @@ CPP_TEST_CASES += \ derived_nested \ destructor_reprotected \ director_abstract \ + director_alternating \ director_basic \ director_classes \ director_classic \ -- cgit v1.2.1 From 17ad1105437d3d79b7e8a92c8a27760cde2966cb Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 29 Jan 2011 21:53:16 +0000 Subject: Add li_typemaps_apply to tests git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12410 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index d2b9bc254..a0ae5e4ff 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -230,6 +230,7 @@ CPP_TEST_CASES += \ li_cpointer \ li_stdint \ li_typemaps \ + li_typemaps_apply \ li_windows \ long_long_apply \ memberin_extend \ -- cgit v1.2.1 From f4c74bc500195797d41fad5d1203a0c109ab00e7 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 4 Feb 2011 23:42:06 +0000 Subject: R - SF #3168676 Fix %rename not working for member variables and methods. Add new simple rename testcase with runtime tests for C# and R git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12432 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index a0ae5e4ff..734b556f3 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -287,6 +287,7 @@ CPP_TEST_CASES += \ rename3 \ rename4 \ rename_scope \ + rename_simple \ rename_strip_encoder \ rename_pcre_encoder \ rename_pcre_enum \ -- cgit v1.2.1 From 63af0a2d7221743f5613540d108a56acdd0fc052 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 7 Feb 2011 07:29:55 +0000 Subject: Fix #1940536, overactive preprocessor which was expanding defined(...) outside of #if and #elif preprocessor directives. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12441 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 734b556f3..ad2a91c7c 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -493,6 +493,7 @@ C_TEST_CASES += \ overload_extendc \ preproc \ preproc_constants_c \ + preproc_defined \ preproc_line_file \ ret_by_value \ simple_array \ -- cgit v1.2.1 From e0ee14c3ba28a2ca4a053f7cd4e2d5e2827fb504 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 13 Feb 2011 13:53:14 +0000 Subject: Fix Fix #1927852 - #include directives don't preprocess the file passed to it git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12457 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Examples/test-suite/common.mk') diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index ad2a91c7c..5f3012091 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -494,6 +494,7 @@ C_TEST_CASES += \ preproc \ preproc_constants_c \ preproc_defined \ + preproc_include \ preproc_line_file \ ret_by_value \ simple_array \ @@ -518,6 +519,7 @@ MULTI_CPP_TEST_CASES += \ # Custom tests - tests with additional commandline options wallkw.cpptest: SWIGOPT += -Wallkw +preproc_include.ctest: SWIGOPT += -includeall NOT_BROKEN_TEST_CASES = $(CPP_TEST_CASES:=.cpptest) \ -- cgit v1.2.1