Vadim Zeitlin
ed28725a15
Add std_auto_ptr.i defining typemaps for returning std::auto_ptr<>.
...
These typemaps are currently defined for C#, Java and Python only and the
tests are provided only for these languages.
Also add a brief description of the new header to the documentation.
2013-12-03 23:45:20 +01:00
William S Fulton
f4ada30a7e
Add support for C++11 noexcept specification in exception specifications
2013-11-21 20:20:56 +00:00
William S Fulton
e566c5fa7f
Add support for parsing C++11 =delete and =default
...
Although this was documented as working, it wasn't implemented
%typemap(default) failed without the idstring changes
Add some C tests using the C++ keyword delete
2013-11-20 19:12:16 +00:00
William S Fulton
65de78b8b4
enum_plus testcase was never been run
2013-11-09 14:54:36 +00:00
William S Fulton
bcb7aee022
Merge branch 'master' into gsoc2009-matevz
...
Conflicts:
Examples/Makefile.in
Examples/guile/Makefile.in
Lib/php/php.swg
Makefile.in
Source/CParse/parser.y
configure.ac
2013-10-10 07:26:09 +01:00
William S Fulton
de5e0c8655
C++11 testing moved to a configure option
...
Use './configure --enable-cpp11-testing' to enable the C++11 test.
Off by default for now.
2013-10-08 20:12:18 +01:00
William S Fulton
738cc36aab
Rename all C++0x to C++11 and cpp0x to cpp11
2013-10-07 20:37:00 +01:00
William S Fulton
e186d2176a
Fix %naturalvar and templated methods using enums
...
%naturalvar was not being picked up - use the symbol table instead for
looking up the feature.
use_naturalvar_mode() has been moved to Language class (not strictly necessary though)
2013-10-04 23:08:33 +01:00
William S Fulton
a91cd0bc5c
Infinity is now by default an acceptable value for type 'float'.
...
This fix makes the handling of type 'float' and 'double' the same. The implementation requires the
C99 isfinite() macro, or otherwise some platform dependent equivalents, to be available.
2013-09-12 07:28:12 +01:00
William S Fulton
ada7dd92e4
Fix testcase name
2013-08-29 22:49:59 +01:00
William S Fulton
f55ff50dd5
Skip the UTF-8 BOM of including files.
...
For avoiding illegal token error when parsing include files which have the UTF-8 BOM.
Closes #75 .
2013-08-29 19:22:50 +01:00
Artem Serebriyskiy
3e188e508d
Add test case for attributes with moderately complex templates
...
* New test case tests that %attribute macros correctly supports passing
template with multiple parameters as class name or attribute type name
* Some further changes were made to %attribute macros - now
AttributeType is protected with %arg as well. This allows you
to have attributes of type e.g. std::pair<int,int> etc
Update CHANGES file for %attribute template fixes
Closes #48
2013-05-25 00:44:36 +01:00
William S Fulton
857e447654
Fix syntax error when preprocessor macros are defined inside of enum lists
...
Fixes SF Bug 428, Patch 333
2013-04-18 22:48:42 +01:00
Karl Wette
ee2b46abe0
Fix SWIG's handling of qualified (e.g. const) variables of array type
2013-02-19 20:05:46 +00:00
William S Fulton
8778724768
Add support for extern "C++" - no warning should be issued as was previously occurring
2013-02-08 18:55:16 +00:00
William S Fulton
d613ef42f2
Rework std::initializer_list handling to warn about usage in any method, not just constructors. A typemap is used to issue the warning and can be overridden with user defined behaviour.
2013-02-04 20:03:22 +00:00
William S Fulton
e805d5f925
Merge branch 'master' into gsoc2009-matevz
...
parser.y still to be fixed up
Conflicts:
Doc/Devel/engineering.html
Examples/Makefile.in
Lib/allegrocl/allegrocl.swg
Lib/csharp/csharp.swg
Lib/csharp/enums.swg
Lib/csharp/enumsimple.swg
Lib/csharp/enumtypesafe.swg
Lib/java/java.swg
Lib/python/pydocs.swg
Lib/r/rtype.swg
Source/Include/swigwarn.h
Source/Modules/octave.cxx
Source/Modules/python.cxx
Source/Modules/ruby.cxx
Source/Swig/scanner.c
Source/Swig/stype.c
Source/Swig/swig.h
configure.ac
2013-01-28 07:01:37 +00:00
William S Fulton
07c35d61e3
Fix generated code for rvalue references by converting functions returning an rvalue reference into something that can be taken the address of - via a const ref cast. Now the rvalue_reference tests compile under g++-4.7 (C# only atm)
2013-01-24 08:02:34 +00:00
Paweł Tomulik
0afbb357d0
moved testdir/* to testdir/inctest/* under Examples/test-suite/
2013-01-13 23:14:46 +01:00
William S Fulton
1f0db4fb9e
Add check-cpp11 target for testing c++11 only tests
2013-01-13 00:06:09 +00:00
William S Fulton
5889d7bfdd
Merge branch 'SFbug1299' of https://github.com/BrantKyser/swig into BrantKyser-SFbug1299
2013-01-11 23:12:06 +00:00
William S Fulton
3f1d77ee0f
Merge branch 'SFbug1296' of https://github.com/ptomulik/swig into ptomulik-SFbug1296
2013-01-05 20:13:19 +00:00
William S Fulton
0bde711222
Merge branch 'SFbug1295' of https://github.com/ptomulik/swig
2013-01-05 17:59:18 +00:00
Brant K. Kyser
c786781e92
Add test case for SourceForge Bug #1299
2013-01-05 03:14:42 -06:00
Paweł Tomulik
8e418d61e6
corrected some typos
2013-01-04 18:41:10 +01:00
Paweł Tomulik
2bb6a8c4a8
added test case for SF bug #1296
2013-01-04 18:20:19 +01:00
Paweł Tomulik
da00bdb12d
added python test case li_std_except_as_class for SF bug 1295
2013-01-04 15:43:44 +01:00
Brant K. Kyser
f0e47b81d6
Added a test case for SourceForge Bug #1283 .
...
This test case exercise directors used in conjunction with smart pointers.
2013-01-04 00:31:55 +00:00
Brant K. Kyser
60525e800d
Added a test case for SourceForge Bug #1283 .
...
This test case exercise directors used in conjunction with smart pointers.
2013-01-03 14:09:14 -06:00
William S Fulton
4e8d81750d
Add test added a short while back
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-13 22:20:47 +00:00
William S Fulton
c4e4b4b610
New director test highlighting a proble in Go
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-26 19:32:19 +00:00
William S Fulton
b17a77c6ea
Support special variable expansion in %extend.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-11 19:28:02 +00:00
William S Fulton
b9fd49858d
result_of not working
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13862 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-04 20:31:40 +00:00
William S Fulton
e81b6eccdb
Add lambda tests to test-suite - gcc-4.7 supports these
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13861 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-04 06:12:44 +00:00
William S Fulton
4db087d81f
Delegating constructors and inheriting constructors clarification and split of tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13852 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-25 20:22:15 +00:00
William S Fulton
070bf3cc9e
gcc-4.7 now supports alias templates
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13851 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-25 19:29:13 +00:00
William S Fulton
e25da884cb
Fix unrestricted unions testcase and add runtime example
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-21 19:15:44 +00:00
William S Fulton
4c2a1abd6b
Minor doc tweaks for unrestricted unions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13848 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-21 18:21:15 +00:00
William S Fulton
dbdbdd94aa
Some updates to c++11 warning messages and update docs on alias templates
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-21 18:04:15 +00:00
William S Fulton
3578be5753
Better clarify C++11 smart pointer support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-20 19:28:20 +00:00
William S Fulton
744659345e
Update c++0x tests run by default for g++-4.6
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-20 19:14:27 +00:00
William S Fulton
323f841d93
Add a testcase for the Curiously Recurring Template Pattern - CRTP
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-13 20:15:03 +00:00
William S Fulton
289b8bb269
Fix additio of assumeoverride testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 21:59:14 +00:00
William S Fulton
009c191430
Add assumeoverride feature option for Java directors to improve performance when it can be assumed that all methods are overridden by the Java derived classes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 21:41:08 +00:00
William S Fulton
54726b9d09
Fix using declarations and templates. %template was putting the
...
instantiated template into the global namespace instead of the namespace
of the template definition. This fixes regression in swig-2.0.5 copying
the std::pair typemaps which occurs with a 'using std::pair'
declaration. This also fixes lots of other using declarations of
template problems (template forward declarations. combinations
using directives).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13504 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-04 20:24:22 +00:00
William S Fulton
6e6ce16e4e
Fix using declarations combined with using directives with forward class
...
references.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-04 20:23:07 +00:00
William S Fulton
1ce0058256
Fix symbol table bug with combinations of using directives and using declarations
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-25 06:36:29 +00:00
William S Fulton
7ec1e11604
Fix bug 3529601 - seg fault when a protected method has the director
...
feature but the parent class does not. Also fix similar problems with
the allprotected feature.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-29 22:02:43 +00:00
Olly Betts
de9d01dbcd
[PHP] Fix getters for template members. (SF#3428833)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13096 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-18 02:43:52 +00:00
William S Fulton
ef7a8a8253
Fix typemap method hiding regression introduced in swig-2.0.5 - rev 12764
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13071 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-11 21:23:37 +00:00