Commit Graph

12 Commits

Author SHA1 Message Date
William S Fulton 400caf59bd Fix various Go compilation problems when wrapping rvalues references
Removes numerous SWIGWARN_LANG_NATIVE_UNIMPL warnings for rvalues, eg:
  Warning 507: No Go typemap defined for MyClass &&
2025-11-02 13:39:59 +00:00
William S Fulton f91a9cb8e4 Use SWIG_NOEXCEPT for deprecated dynamic exception specifications
SWIG_NOEXCEPT is generated instead of throw() which is deprecated in
c++11. If c++11 or later is being used, then this macro expands to
noexcept instead of throw().

Affects director code only.

Also fix up some testcase to not use throw() when using c++11 or later.
Tested with clang and -Wdeprecated-dynamic-exception-spec as gcc
doesn't seem to warn for this deprecation.

Closes #3027
2025-04-29 22:41:09 +01:00
Olly Betts 0b4496a735 Fix testsuite SWIG warnings; enable SWIG -Werror
SWIG/mzscheme (aka racket) is excluded for now as it currently has a lot
of testsuite warnings and is slated for removal in 4.4.0 anyway.

Closes #3034
2024-10-22 10:30:52 +13:00
Olly Betts bb2b97b228 Fix comment typos 2023-10-11 08:54:37 +13:00
William S Fulton 25cfde71e7 Fix testcase for C++20
Aggregate initialization no longer possible in C++20 with user declared constructors
2023-09-03 09:10:50 +01:00
William S Fulton fb7e0ef069 C++11 single default deleted constructor fix
Fix for when a class has a default deleted constructor and does
not have any other constructors (except implicit or explicit copy
constructors).

Closes #1644
2023-09-02 14:07:47 +01:00
William S Fulton 605e5a1abb C++11 default deleted constructors fix
SwigValueWrapper was not being used when the default constructor is
deleted for a type passed around by value.

Fix is only for when other constructors declarations are present,
deleted, defaulted or not.

Issue #1644
2023-09-02 12:35:39 +01:00
William S Fulton 06e5ab8975 Workaround clang 10.0.1 C++17 linker errors in testcases
Fixes:
  Undefined symbols for architecture x86_64: "___cxa_deleted_virtual"
which clang issues when a class deletes a method (seems to be when the
function is not one of the compiler's automatically added special member
functions).
2019-06-27 07:40:49 +01:00
William S Fulton 95e8643d70 Rename func to funk in tests to avoid Go keyword problems 2017-06-16 19:24:48 +01:00
William S Fulton fcd0480364 Fix some cases of C++11 exception specifications on constructors with =default or =delete 2013-11-22 00:13:48 +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 738cc36aab Rename all C++0x to C++11 and cpp0x to cpp11 2013-10-07 20:37:00 +01:00