Matevz Jekovec
dccbc68c70
Added warning for initializer_list introduced in C++0x.
...
Added testcase cpp0x_initializer_list.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-12 16:50:17 +00:00
Matevz Jekovec
bc8f86b6ec
Fixed cpp0x_result_of testcase.
...
Added testcase cpp0x_sizeof_object.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11538 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-12 10:18:18 +00:00
Matevz Jekovec
955c736164
Added testcase for default/delete arguments introduced in C++0x.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11535 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 20:06:23 +00:00
Matevz Jekovec
2f3a18e49b
Added cpp0x_result_of testcase.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 19:44:03 +00:00
Matevz Jekovec
65c09323fc
Added syntax support for template aliasing and new 'using' syntax for typedefs introduced in C++0x.
...
Added testcase cpp0x_template_typedefs.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 18:27:33 +00:00
Matevz Jekovec
41a565dd5f
Added testcase cpp0x_constructors for delegating constructors and constructor inheritance.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 15:20:38 +00:00
Matevz Jekovec
e2e9b04b3d
Added initial support for C++0x decltype().
...
Added testcase cpp0x_decltype.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-10 10:46:07 +00:00
Matevz Jekovec
8a4efbc6d3
Added support for user-defined string literals.
...
Added testcase cpp0x_userdefined_literals.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 00:51:21 +00:00
Matevz Jekovec
ba2c8cff40
Added syntax for lambda expressions and closures introduced in C++0x.
...
Added testcase cpp0x_lambda_functions.i.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11491 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-03 15:03:41 +00:00
Matevz Jekovec
a7e9a105d9
Enabled alternate function syntax and added runtime testcases.
...
Added support for null pointer constant introduced in C++0x.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11484 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-31 10:13:31 +00:00
Matevz Jekovec
85ae38ccee
Added initial support for variadic templates.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11458 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-27 19:07:38 +00:00
Matevz Jekovec
a8209bfd68
Added support for C++0x rvalue and move semantics.
...
Added testcase.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-25 18:51:37 +00:00
Matevz Jekovec
29004c3fcf
Added initial support for parsing C++0x strongly typed enumerations.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-25 16:48:30 +00:00
Matevz Jekovec
f9a385c6a6
Added testcase for cpp0x unrestricted unions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-22 17:48:38 +00:00
Matevz Jekovec
54e6910631
Disabled alternate function syntax testcase.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-18 22:35:03 +00:00
Matevz Jekovec
e949fa3cc7
Added testcase for function objects.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-18 22:13:40 +00:00
Matevz Jekovec
03db5b4991
Added support for C++0x alternate function syntax.
...
Added testcase.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-17 11:17:01 +00:00
Matevz Jekovec
63a7f06afb
Added support for cpp0x uniform initialization.
...
Added testcases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-17 10:21:25 +00:00
Matevz Jekovec
55268bbc2d
Added testcase for shared_ptr, unique_ptr and weak_ptr.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-14 12:26:26 +00:00
Matevz Jekovec
74d8325cdf
Added keyword 'thread_local' to Swig.
...
Added testcase.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-14 12:05:05 +00:00
Matevz Jekovec
e1b5d43cd8
Added C++0x support for 'extern' explicit template instantiation without the translation unit.
...
Added test cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-11 20:13:36 +00:00
Matevz Jekovec
72708ea173
Added support for C++0x static_assert().
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11369 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-05 14:33:40 +00:00
Matevz Jekovec
0f2786aa54
Added support for unicode strings and fixed support for wstrings.
...
Added test case cpp0x_raw_string_literals.i.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11327 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-28 14:51:10 +00:00
Matevz Jekovec
4946748164
Added test case for explicit conversion operators.
...
Some cosmetic fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-26 22:23:07 +00:00
Matevz Jekovec
d8012716ed
Added constexpr keywords and CONSTEXPR terminal to Swig parser.
...
Added cpp0x_constexpr.i testcase.
Fixed compilation bug of cpp0x_template_double_brackets.i testcase.
Removed obsolete cpp0x_template_double_brackets_broken.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-26 21:48:48 +00:00
Matevz Jekovec
1af6d8a1b0
Renamed template_double_brackets -> cpp0x_template_double_brackets.
...
Added CPP0X_TEST_CASES and CPP0X_TEST_BROKEN in common.mk.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-06 16:25:24 +00:00
Matevz Jekovec
2b4b1cc157
Added support for template double brackets for C++0x.
...
Added test cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11245 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-04 23:25:39 +00:00
William S Fulton
90b1578d65
add test for optimal attribute in out typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-30 06:12:32 +00:00
William S Fulton
efa11dee52
add new %begin directive for inserting code at top of wrapper file
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-20 07:52:24 +00:00
William S Fulton
22e4cb8e52
Fix classLookup and enumLookup when the global scope operator is used on objects passed by value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-28 18:45:13 +00:00
William S Fulton
d029d0a627
Fix compilation error when using directors on protected virtual overloaded methods reported by Sam Hendley.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-13 07:09:27 +00:00
William S Fulton
c07efac296
Fix union.i module name and rename to union_parameter.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11060 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-12 11:42:27 +00:00
William S Fulton
4b79eb9219
Apply patch from Kalyanov Dmitry which fixes parsing of nested structs containing comments
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-12 21:31:21 +00:00
William S Fulton
93f0390322
UTL - Fix some incorrect acceptance of types in the STL, eg a double * element passed into a vector<int *> constructor would be accepted, but the ensuing behaviour was undefined. Now the type conversion correctly raises an exception
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-28 23:35:46 +00:00
William S Fulton
db83e51441
modify test-suite (barring python atm) to not rely on the -I path to find the input .i file - removes the new warning 125 and sets up the test-suite for testing with ccache. This change required the use of -outcurrentdir and moving the .i files from the language subdirectories to the directory above along with some .i file name changes.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-26 21:35:15 +00:00
William S Fulton
a604f46593
Add the strip encoder patch from Anatoly Techtonik #2130016
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-01 22:52:26 +00:00
Haoyu Bai
3d8ddfc442
Merged the Python 3.0 support branch. The merging progress is not so smooth, so hope this commit won't make anything broken.
...
This is the (incomplemete) log produced by svnmerge.py:
Merged revisions 10405-10409,10420-10422,10426,10438,10445,10451,10454-10465,10467,10473-10475,10485,10488-10489,10493-10495,10497,10509-10510,10513-10514,10517,10520,10525,10528-10529,10533-10535,10554-10557,10570,10573,10593,10614,10666-10669,10673,10678,10687,10690,10704-10706,10731,10744,10750-10752,10755,10759,10770,10775-10776,10813,10819 via svnmerge from
https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-11 17:18:07 +00:00
Haoyu Bai
aec1473a6e
Added a test case for keyword renaming.
...
Now it works for Python in SWIG's -c++ mode,
but in C mode it doesn't work! (you can try with make keyword_rename.ctest)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-07 11:20:07 +00:00
William S Fulton
f06222b993
Add partialcheck make targets. Also add RUNTOOL, COMPILETOOL and SWIGTOOL variables for invoking tools when running tests, compiling or invoking swig
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10482 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-20 21:27:22 +00:00
William S Fulton
0df0a87981
rename package testcase to packageoption as package is a Java keyword
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10433 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-10 10:36:35 +00:00
Jason Stewart
bea5f1d47b
package option for perl5
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 13:12:45 +00:00
William S Fulton
9976dc9d75
Add allprotected mode for wrapping protected members when using directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 20:41:01 +00:00
Xavier Delacour
b0921513e0
Move null_pointer.i to common.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 15:48:56 +00:00
Xavier Delacour
2ad4024977
Move samename test to common.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-12 13:49:01 +00:00
Jason Stewart
5d625e950d
committed patch for bug SWIG-1937031 ; moved operator_overload_break back to working tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-08 04:04:37 +00:00
William S Fulton
929f68b069
Add Lua pointer reference typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-07 20:06:37 +00:00
William S Fulton
69d6ce4f33
Fix shared_ptr typemaps for use with %pythonnondynamic
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-04 23:29:59 +00:00
Jason Stewart
ad93f971ca
new operator overload tests to locate bugs in pre- increment/decrement operators
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:48:41 +00:00
William S Fulton
f0a4145cb3
Add shared_ptr test to regular test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-14 23:07:30 +00:00
William S Fulton
9029bae5e0
Move funcptr.i from being an R only test to a test for all languages. Modify the test to test function pointers with no arguments, which is a problem for R.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10250 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 22:41:34 +00:00