| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
Use parser error recovery to skip to the closing matching `)` and
issue a warning that we can't deduce the decltype for the expression
(like we already do for any expression which isn't a simple variable
or similar).
Fixes #1589
Helps #2335 (fixes the decltype-related examples)
|
|
|
|
| |
We stopped wrapping C++ static method A::bar as A_bar in SWIG 4.1.0.
|
|
|
|
| |
See #1567
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
For: JavaScript, C#, go, Java, Lua, Perl, PHP, python, Ruby, TCL and Octave.
Signed-off-by: Erez Geva <ErezGeva2@gmail.com>
|
|/
|
|
|
| |
Add testing of the empty and null cases for all languages which
already have a runme.
|
|
|
|
|
|
|
|
|
| |
The "deprecation" warning has been changed to a "removal" warning
with newer JDK versions. This needs to be addressed, but meanwhile
it makes running the testsuite unusably noisy so suppressing it
seems more helpful than not.
Closes: #2556
|
|
|
|
| |
Introduced by previous commit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously we had a hard-coded list of allowed combinations in the
grammar, but this suffers from combinatorial explosion, and results
in a vague `Syntax error in input` error for invalid (and missing)
combinations.
This means we now support a number of cases which are valid C++
but weren't supported.
Fixes #302
Fixes #2079 (friend constexpr)
Fixes #2474 (virtual explicit)
|
|
|
|
|
|
|
| |
So far C#, Java, Lua and PHP are supported.
Closes: #2540
See #1567
|
|
|
|
|
|
|
|
|
|
|
| |
We now wrap this as a non-static method in PHP, which means the static
form only callable via an object.
Previously this case could end up wrapped as static or non-static
in PHP. If it was wrapped as static, attempting to call non-static
overloaded forms would crash with a segmentation fault.
See #2544
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* typedef-namespace:
Partial revert of previous commit for typedefs
add an unit test
tentative fix for typedef/using declaration to struct typedef
Conflicts:
CHANGES.current
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Setting current symbol table for a typedef seems wrong.
No difference to test-suite though.
Testcase rename for C++11 testing and minor adjustments.
Issue #2550
Closes #2551
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
See #2538
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* python-iterator-protocol:
Finish removal of SwigPySequence_Cont
Remove undocumented and non-existent STL std::carray
Remove assign method uses by the removed Python Sequence Protocol
Remove now redundant use of Python Sequence protocol in STL wrappers
Add support for all STL containers to be constructible from a Python set
Iterator Protocol support for std::array wrappers
STL support for copying Python objects supporting Iterator protocol
Closes #2515
Conflicts:
CHANGES.current
|
| | | |
|
| | | |
|
|\ \ \ |
|
| | |/
| |/| |
|
| | |
| | |
| | |
| | | |
There's no need to do a substring check here.
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously the default was always "node", even if nodejs wasn't
detected by configure. This leads to a confusing failure from
"make check" if you have another support JS engine installed
but not node.
Now the default it picked based on which engines configure
found. If only one was detected, that should be used. If
multiple are, you can override the default choice by specifying
e.g. ENGINE=jsc on the make command line.
Fixes #2453
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Nodejs is like V8 and needs C++ output enabled when wrapping C code.
The testsuite was masking this bug by using SWIG options
`-v8 -DBUILDING_NODE_EXTENSION=1` rather than `-node` when testing
with nodejs, while the javascript examples currently all seem to all get
processed with -c++.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
By default SWIG/PHP wraps std::string& as a pass-by-reference PHP
string parameter, but sometimes such a parameter is only for input
or only for output, so add support for the named typemaps that other
target languages support.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix warnings in the extend_template_method, li_std_string, and
template_methods tests. std::string was missing a typecheck typemap.
Add extend_template_method_runme.ml, li_std_string_runme.ml, and
template_methods_runme.ml.
Add INPUT, OUTPUT and INOUT typemaps for string &
Use the INOUT typemap in the strings_test example. In the
strings_test example, takes_and_gives_std_string() was relying on the
silly fact that an argout typemap for string & was enabled by
default.
Remove the in, out, and typecheck typemaps for string &.
Closes: #1439
|
| |
| |
| |
| | |
Fixes failure for cpp20_spaceship_operator.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Previously they were silently ignored in this context (but #if defined
already worked here if you need a workaround which works for older
versions).
Fixes #2183
|
| |
| |
| |
| |
| |
| |
| | |
Go is happy with the testcase if the type is changed from int to
char, so just go with that.
See https://sourceforge.net/p/swig/bugs/983/
|
| |
| |
| |
| |
| | |
The bulk of this was already removed in
e3b112c69ceed5c39cb07fa45a3ba62b27712679.
|
|\ \ |
|
| | | |
|
| | |
| | |
| | |
| | | |
This is a C++ testcase so these aren't useful.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Make argc and argv test works in C.
Signed-off-by: Erez Geva <ErezGeva2@gmail.com>
|
| | |
| | |
| | |
| | | |
Needed to get compilable code for Lua and guile.
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add a regression test based on https://sourceforge.net/p/swig/bugs/1163/
since this patch solves that case too.
Replace the __attribute__ test case from #2525 with a variant of the
1163 regression test, since __attribute__ is specific to certain
compilers.
Adjust the self-referential test case to actually work - it wasn't
valid C code before.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|