Commit graph

21,348 commits

Author SHA1 Message Date
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
William S Fulton
e15c112480 Update ax_compare_version.m4 to latest from autoconf archive
Purely cosmetic changes
Updated to serial #13
2019-04-11 19:56:30 +01:00
William S Fulton
1955758f27 Update ax_path_generic.m4 to latest from autoconf archive
Purely cosmetic change
Updated to serial #17.
2019-04-11 19:51:23 +01:00
William S Fulton
892f0fdc6b Update ax_boost_base.m4 to latest from autoconf archive
Updated to serial #45.
This is in preparation to a possible fix for issue #1435.
The use of AS_CASE requires autoconf-2.60 or later.
2019-04-11 19:48:06 +01:00
William S Fulton
65056349cf Add release notes summary 2019-04-11 19:14:00 +01:00
William S Fulton
00528a1ef6 Fix C# wrappers FxCop warning CA2002 in SWIGPendingException
Fixes two warnings in each wrapper:

warning  : CA2002 : Microsoft.Reliability : 'examplePINVOKE.SWIGPendingException.Retrieve()' locks on a reference of type 'Type'. Replace this with a lock against an object with strong-identity.

warning  : CA2002 : Microsoft.Reliability : 'examplePINVOKE.SWIGPendingException.Set(Exception)' locks on a reference of type 'Type'. Replace this with a lock against an object with strong-identity.

Use lock statement advice not to use typeof for locks, see
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/lock-statement
2019-04-09 19:35:00 +01:00
William S Fulton
d6746379a1 Use wine on Linux to test executable when building windows zip file 2019-04-09 06:50:25 +01:00
William S Fulton
be8061c7f5 Cosmetic C# Makefile tweak 2019-04-08 19:44:10 +01:00
William S Fulton
a8055b45d7 Check Dispose is called in C# auto_ptr test 2019-04-08 19:37:00 +01:00
William S Fulton
bf9065395a C++11 test fixes for Visual Studio 2017 2019-04-08 19:33:59 +01:00
William S Fulton
0303e821ef html documentation fixes 2019-04-08 19:20:50 +01:00
William S Fulton
ad60edef57 Make obs-buildlogs.py Python3 compatible 2019-04-08 19:20:50 +01:00
William S Fulton
66d5d76a29 mkrelease.py improvements
Make python3 compatible.
Add optional command line arguments.
2019-04-08 19:20:50 +01:00
William S Fulton
320254eb14 Port mkdist.py to Python 3 2019-04-08 19:20:50 +01:00
William S Fulton
3d99cc6b2f Add a few options to the mkdist.py script for building the distribution tarball 2019-04-08 19:20:50 +01:00
William S Fulton
831fae3c69 Add the parameters typemap attribute to D and Java destructor wrapper typemaps
Added to the javadestruct, javadestruct_derived, ddispose, ddispose_derived
typemaps to mirror enhanced flexibility in the csdisposing and
csdisposing_derived (C#) typemaps. If provided the contents are generated
as the delete/dispose method's parameters declaration.
2019-04-08 19:20:50 +01:00
William S Fulton
06462acdf9 Fix C# CA1063 warning by implementing the recommended Dispose methods.
Previously just the Dispose() method was generated.
Now the Dispose() and Dispose(bool disposing) methods are generated.
Changes are required if custom "csfinalize", "csdestruct" or "csdestruct_derived"
typemaps are being used. Details in #421 on Github. SWIG will error out if one of
the "csfinalize, "csdestruct" or "csdestruct_derived" typemaps are found. Example
error message:

  foo.h:60: Error: A deprecated csfinalize typemap was found for Foo, please remove
  it and replace all csdestruct, csdestruct_derived and csfinalize typemaps by the
  csdispose, csdispose_derived, csdisposing and csdisposing_derived typemaps.

Closes #421
2019-04-08 19:20:45 +01:00
William S Fulton
33f8c36813 Correct ocaml dynamic targets 2019-03-26 21:24:00 +00:00