Commit graph

21,365 commits

Author SHA1 Message Date
etse
24f974bb0c Adding test case demonstrating issue where SWIG does not generate a correctly typed, upcasted shared_ptr for a template instantiation deriving from a base class 2019-05-06 15:30:54 -04:00
Eric Tse
f9efe5b5bd WIP - Use the non-encoded type string for upcasting a shared_ptr of a derived type to a shared_ptr of the base type 2019-05-06 15:30:54 -04:00
William S Fulton
49195c5361 Specify Go version to test with c++11
Default version of Go 1.11.1 on Travis is broken for c++11 testing.

gcc_libinit.c: In function ‘_cgo_try_pthread_create’:
gcc_libinit.c:110:3: error: implicit declaration of function ‘nanosleep’ [-Werror=implicit-function-declaration]
   nanosleep(&ts, nil);
2019-05-04 22:47:19 +01:00
William S Fulton
32c9e2ada8 Travis testing GCC=5 not needed for xenial.
Default compiler is gcc 5 on xenial.
2019-05-04 22:31:48 +01:00
William S Fulton
0cf01afc54 Windows documentation minor improvement 2019-05-04 22:28:35 +01:00
William S Fulton
4539041c50 Travis output optimisation during configure 2019-05-02 21:57:58 +01:00
William S Fulton
00fb2e5629 Travis output optimisation 2019-05-02 21:57:58 +01:00
William S Fulton
25c0397ec4 Travis testing gcc versions
gcc-4.5 has package dependency problems
Add gcc-4.9
2019-05-02 21:57:58 +01:00
William S Fulton
256446d290 Expand Travis testing of core SWIG compilation to include more gcc versions 2019-05-02 21:57:58 +01:00
William S Fulton
48e61eea1d Travis gcc version refactor
Use GCC env variable to hold gcc version to install instead of SWIG_CC
and SWIG_CXX.
2019-05-02 21:57:53 +01:00
William S Fulton
be019a03ce Appveyor testing - make sure language tests are not mistakenly skipped 2019-05-02 19:15:49 +01:00
William S Fulton
78a1515f46 OCaml testing requires camlp4 2019-05-02 07:41:35 +01:00
William S Fulton
dbb5fdda01 Fix php pragmas example
. is not always in the include_path by default
2019-04-30 23:44:41 +01:00
William S Fulton
5d976b0ebe Fix php testcase warning 2019-04-30 23:44:41 +01:00
William S Fulton
9d0cf2ce61 Remove duplicate Travis xenial Octave testing 2019-04-30 23:44:41 +01:00
William S Fulton
6606a164f0 Migrate Travis tests from trusty to xenial
Ubuntu trusty 14.04 is end of life April 2019.
Ubuntu xenial 16.04 is the main platform for Travis now.
Some languages are not working on xenial, so I've left them on trusty
for now.
2019-04-30 23:44:33 +01:00
William S Fulton
6a91723fcf Bump version to 4.0.1 2019-04-28 21:01:21 +01:00
William S Fulton
9c3faeb0ee Travis testing of Go changes
Use gimme to install a version of Go to test. Travis already uses gimme
to pre-install a version of Go.
Switch some of the Go testing from travis to xenial.
2019-04-26 19:48:33 +01:00
William S Fulton
2937f05296 Add 4.0.0 release date 2019-04-26 19:21:40 +01:00
William S Fulton
11b54b0cbd Fix command line error handling to work like in 3.0.12
Output is once again:

  $ swig -versioon
  Unable to find option or file '-versioon', Use 'swig -help' for more information.

instead of

  $ swig -versioon
  No target language specified
2019-04-25 23:13:51 +01:00
Ian Lance Taylor
8a1c09e280 Fix Go tests to run in module mode
Stop using relative imports and add a go.mod file.

Tested against Go 1.6 through Go pre-1.13, and gccgo.
2019-04-24 21:43:38 -07:00
William S Fulton
b04cc850ab Add recent doxygen fixes to changes file 2019-04-24 08:13:19 +01:00
William S Fulton
fbed720b98 Merge branch 'enum-trailing-comma-doxygen'
* enum-trailing-comma-doxygen:
  Fix parsing of enums with trailing comma with -doxygen
2019-04-24 08:08:18 +01:00
William S Fulton
8df627eab8 HTML section numbering update 2019-04-24 08:06:10 +01:00
William S Fulton
fb0adb14c3 Documentation: terminology consistency for command line options plus Doxygen tweaks. 2019-04-24 08:04:15 +01:00
William S Fulton
7bb7ff6f95 Merge branch 'markok314-master'
* markok314-master:
  markok314: fixed section numbering because of inserted Doxygen troubleshooting section
  updated troubleshooting section
  improved section 'troubleshooting', moved before 'Developr info'
  added section 'troubleshooting'
2019-04-24 07:56:01 +01:00
William S Fulton
154b50d925 Merge branch 'pydoc-return-crash'
* pydoc-return-crash:
  Don't crash if type is not available in Python Doxygen code
2019-04-24 07:52:20 +01:00
William S Fulton
03030e98a1 Add -cgo as default to changes file 2019-04-24 07:32:50 +01:00
William S Fulton
8212473b93 Add missing issue number 2019-04-24 07:26:15 +01:00
Marko Klopcic
453fe4cda8 markok314: fixed section numbering because of inserted Doxygen troubleshooting section 2019-04-23 12:24:12 +02:00
Marko Klopcic
57965e29f6 updated troubleshooting section 2019-04-23 11:34:25 +02:00
Marko Klopcic
4c6f33b1c9 improved section 'troubleshooting', moved before 'Developr info' 2019-04-23 10:25:35 +02:00
Marko Klopcic
c3a2b7524e added section 'troubleshooting' 2019-04-23 10:07:42 +02:00
Vadim Zeitlin
74adaa5738 Fix parsing of enums with trailing comma with -doxygen
To correctly parse Doxygen post-comments after the trailing comma,
switch to right recursion in "enumlist" production rule definition: this
does consume more stack space when parsing, but makes the rules much
easier to write and to understand and hopefully shouldn't result in any
problems with real code (which shouldn't have thousands of enums items
in it).

Closes #1514.
2019-04-20 13:52:56 +02:00
Vadim Zeitlin
01a2cd27e7 Don't crash if type is not available in Python Doxygen code
Fix crash if "@return" Doxygen tag was used on a node without any return
type (such as a class, for example). Ignoring it might not be the best
thing to do, but it's definitely better than crashing and it's not
really clear what else could be done anyhow.

Closes #1516.
2019-04-20 13:52:05 +02:00
William S Fulton
d67c133c4a Java/C# std::vector<bool> workarounds for clang
Workaround clang++ 9.1.0 error not knowing std::vector<bool>::const_reference
is actually typedef to bool:

  li_std_vector_wrap.cxx:1838:40: error: no matching constructor for initialization of 'std::vector<bool>::const_reference'

Workaround is use

  const value_type& getitem(int index) throw (std::out_of_range) { ...
  // bool specialization:
  bool getitem(int index) throw (std::out_of_range) { ...

instead of

  const_reference_type getitem(int index) throw (std::out_of_range) { ...

Although the following would be better, it would require a more
complicated implementation:

  const_reference_type getitem(int index) throw (std::out_of_range) { ...
  // bool specialization:
  bool getitem(int index) throw (std::out_of_range) { ...
2019-04-20 11:32:42 +01:00
Ian Lance Taylor
77f075b6e8 When generating Go code, make -cgo the default.
Add new -no-cgo option to disable the default.
Keep -cgo as a no-op for existing users.
2019-04-19 12:49:56 -07:00
William S Fulton
545ab8af08 Fix Visual Studio 2015 and later compilation errors due to snprintf macro definition.
Closes #1508
2019-04-19 11:33:02 +01:00
William S Fulton
f87182ad98 Improve backwards compatibility in C#/Java std::array wrappers
For users who have typemaps for the parameters in the setitem or set methods.
2019-04-19 11:06:24 +01:00
William S Fulton
592b97a8cd Improve backwards compatibility in D std::vector wrappers
For users who have typemaps for the parameters in the setElement method.
Correct definitions of const_reference to match the those in the
(C++11) standard.
2019-04-19 00:22:53 +01:00
William S Fulton
c79cf79085 Improve backwards compatibility in C# std::vector wrappers
For users who have typemaps for the parameters in the setitem method.
Correct definitions of const_reference to match the those in the
(C++11) standard.
2019-04-19 00:11:22 +01:00
William S Fulton
05c8c972cc Improve backwards compatibility in Java std::vector wrappers
For users who have typemaps for the parameters in the add and set methods
(now called doAdd and doSet).
Also for users who have typemaps for the get method - revert the return
type for get (now called doGet) back to the same return type as
std::vector::at. Correct definitions of const_reference to match the
those in the (C++11) standard.
2019-04-18 23:24:43 +01:00
William S Fulton
b6a675cf1d Add potential incompatibility info for Java std::vector wrappers 2019-04-18 23:22:01 +01:00
William S Fulton
65a7fafd84 Fix minor whitespace regression in Java generated code 2019-04-18 20:27:14 +01:00
William S Fulton
12a245183f Clear up some confusion over ANSI vs ISO C/C++ support
Issue #890
2019-04-18 20:04:20 +01:00
William S Fulton
31b3b782a1 Possible fix for MinGW MSYS configure script error from ax_boost_base.m4
Issue #1435
2019-04-15 23:28:25 +01:00
William S Fulton
4e5d1891e6 testcase fixes for gcc-9 2019-04-15 23:25:53 +01:00
William S Fulton
6791f8b769 Add linkchecker3 make target to check internal links
Make sure all internal links use # anchors which are needed for wkhtmltopdf
2019-04-15 19:31:32 +01:00
William S Fulton
bc615e8a6e Correct out of date html links 2019-04-15 19:01:52 +01:00
William S Fulton
dc4fb85d00 cpp11_thread_local testcase fix for Visual C++ 2019-04-11 20:13:44 +01:00