Commit graph

19,691 commits

Author SHA1 Message Date
スノル
970b0fdca3 Add the missing parenthese.
I'm sorry that I didn't notice this last time.
2017-03-20 20:47:08 -05:00
William S Fulton
24fba02571 Allow Guile on Travis OSX to fail until fixed Guile 2.2 support is added 2017-03-20 19:57:21 +00:00
William S Fulton
cf1fb6ca16 Fixes for make partialcheck-ocaml-test-suite 2017-03-20 19:30:46 +00:00
William S Fulton
a4393e2103 Remove unnecessary file check in Ocaml Makefile
First of two fixes for 'make partialcheck-ocaml-test-suite'
2017-03-20 19:30:10 +00:00
William S Fulton
5104c40d9a Ocaml Makefile cosmetic style fixes 2017-03-20 19:28:53 +00:00
William S Fulton
8aa066a1b5 Fix Makefile not erroring 2017-03-20 18:47:31 +00:00
William S Fulton
b1dc7294cc Merge branch 'vadz-fix-py-frag-deps'
* vadz-fix-py-frag-deps:
  Add stddef.h back in to SwigPySequence_Base fragment
  Fix dependency of SwigPySequence_Base fragment
2017-03-17 19:22:00 +00:00
William S Fulton
fa65b24b78 Add stddef.h back in to SwigPySequence_Base fragment 2017-03-17 19:20:02 +00:00
William S Fulton
da381668a2 Python doc correction for %pybuffer_mutable_string usage
[skip ci]
2017-03-17 19:02:38 +00:00
William S Fulton
dcc5911839 Fix handling of typedef'd function pointers for Go
Add equivalent runtime tests for Python and Java
2017-03-17 07:49:21 +00:00
William S Fulton
72ba741d1c Fix wrapping of references/pointers and qualifiers to member pointers
Also fix Go wrapping of member const function pointers.
2017-03-16 21:04:38 +00:00
Vadim Zeitlin
51aa2bdea1 Fix dependency of SwigPySequence_Base fragment
This fragment needs to depend on StdTraits fragment as it specializes the
template struct traits<> defined there and it could happen that the struct was
not declared before being specialized, resulting in compilation errors in the
generated code.

It doesn't seem to need to depend on stddef.h inclusion, however, so replace
it with the correct dependency instead of keeping both.
2017-03-11 18:07:51 +01:00
William S Fulton
cf7d53599c Remove problematic member function pointer tests from Go
Go module needs fixing
2017-03-11 15:05:16 +00:00
William S Fulton
858acf69e4 Add missing function bodies to testcase 2017-03-11 12:43:54 +00:00
William S Fulton
73a5d6c187 Fix testcase 2017-03-11 10:01:11 +00:00
William S Fulton
f9fbaa5cb8 Another C++11 alternate function syntax test 2017-03-10 23:48:32 +00:00
William S Fulton
d851be2b7f Add recent parsing improvements to changes file 2017-03-10 23:34:48 +00:00
William S Fulton
b851e45e0a Fix seg fault for global declarations declared erroneously without a name 2017-03-10 23:25:31 +00:00
William S Fulton
4f235027f4 Improved member function pointer parsing
Add support for parsing member function pointers with qualifiers,
references and pointers, eg

short (Funcs::* const parm)(bool)
2017-03-10 23:25:31 +00:00
William S Fulton
8e86aaf2c3 Add one more alternate function test
Checking member function pointer parameters
2017-03-10 23:25:31 +00:00
William S Fulton
0ccef1424a C++11 alternate syntax for function declarations improvements
Functions can now be declared const/noexcept/final etc
2017-03-10 23:25:31 +00:00
William S Fulton
2a5068bcf2 Add some tests for typedef to member function pointers 2017-03-10 23:25:31 +00:00
William S Fulton
fc638814ae Add support for unnamed parameters: member const function pointers 2017-03-10 23:25:31 +00:00
William S Fulton
5aff26fcb5 Add support for parsing and wrapping member const function pointers 2017-03-10 23:25:31 +00:00
William S Fulton
67edda3bf5 Remove unused cvsignore target 2017-03-10 23:25:31 +00:00
Olly Betts
b451fc464b Escape literal > in HTML 2017-03-02 08:45:45 +13:00
Olly Betts
35e6414099 Add CHANGES.current entry for #908
Fixes #905
2017-02-27 10:11:27 +13:00
Asen Alexandrov
a6e9c087d8 [Issue 905] Add recognition for throw (.+) final|override in parser.y
PROBLEM:
 There is a small ommission in parser.y, which will lead
 to syntax errors in cases when non-empty throw declaration is
 followed by `override`, `final` or both. E.g. in cases like:

       void finalOverriden() throw(std::exception) final override;

SOLUTION:
 - Add a `THROW LPAREN parms RPAREN virt_specifier_seq` to
   exception_specification in Source/CParse/parser.y
 - Add several methods in test-suite/cpp11_final_override.i
   to verify the fix works.
2017-02-27 10:08:23 +13:00
Olly Betts
eeff677c72 [CI] Fix ocaml job to actually run
Fixes #912, reported by Karl Wette.
2017-02-22 10:13:11 +13:00
Olly Betts
5498955931 [CI] Fix octave 4.2 CI job to actually still run
Fix pointed out by Karl Wette in #909.
2017-02-21 11:13:43 +13:00
Olly Betts
09edd722e1 [CI] Mark Octave 4.2 build as "allowed to fail"
It's started to reliably fail at package install time.  See #909.
2017-02-20 09:49:00 +13:00
Mark Dufour
21f532975f [Coverity] fix issue reported for SWIG_Python_ConvertFunctionPtr
Fix Coverity issue reported for SWIG_Python_ConvertFunctionPtr:

"Execution cannot reach this statement: *ptr = vptr;"

Because if 'ty' is null, then desc becomes null and we return with
SWIG_ERROR. So 'ty' cannot be null at 'if (ty)'.
2017-02-19 09:47:34 +13:00
Mark Dufour
9825fcbab5 [Coverity] fix issue reported for SWIG_Python_FixMethods
Fix Coverity issue reported for SWIG_Python_FixMethods:

"buffer_size: Calling strncpy with a source string whose length
(10 chars) is greater than or equal to the size argument (10)
will fail to null-terminate buff."

The issue is only reported for the "swig_ptr: " line, but for
consistency we replace both occurrences of strncpy with memcpy.
2017-02-15 15:58:26 +13:00
William S Fulton
e5add63548 Enable C++11 and C++14 testing for Ruby 2017-02-10 19:57:50 +00:00
William S Fulton
f120fa44f6 Use travis_retry for commands that may fail due to network issues 2017-02-10 19:50:10 +00:00
William S Fulton
d6a349997c C++11 hash tables documentation 2017-02-10 19:49:58 +00:00
William S Fulton
de6476f321 Merge branch 'tamuratak-fix_std_unordred'
* tamuratak-fix_std_unordred:
  Move cpp11_hash_tables test to Ruby makefile until other languages work
  Cosmetic changes in C++11 std_unordered support files
  [ruby] add tests for unordered containers.
  [ruby] support for std unordered containers.
  use equal_range instead of upper_bound. unordered containers do not have the upper_bound method.
  fix a %fragment argument.
  use %std_container_methods_without_reverse_iterators
  fix Lib/std/std unordered containers
2017-02-10 19:49:10 +00:00
William S Fulton
16b583ec25 Move cpp11_hash_tables test to Ruby makefile until other languages work 2017-02-10 19:38:00 +00:00
William S Fulton
50f556de39 Cosmetic changes in C++11 std_unordered support files 2017-02-10 19:26:02 +00:00
William S Fulton
dee6b075a8 Fix seg fault parsing unterminated raw string literals 2017-02-09 22:02:20 +00:00
William S Fulton
b3a61a3876 Add C# IEnumerable improvement to changes file 2017-02-08 20:12:59 +00:00
William S Fulton
4262fab626 Merge branch 'jcsharp-patch-1'
* jcsharp-patch-1:
  Add tests for constructing C# std::vector from various container interface types
  Replace ICollection with IEnumerable<T>
2017-02-08 20:05:32 +00:00
William S Fulton
281eec7d18 Add tests for constructing C# std::vector from various container interface types 2017-02-08 20:02:40 +00:00
William S Fulton
1730210013 Remove differences from lua example compared to Python version 2017-02-06 20:30:13 +00:00
William S Fulton
35ef98f4d0 Give same name to common example 2017-02-06 20:30:13 +00:00
William S Fulton
760c008311 Warning fixes for gcc-7
warning: dynamic exception specifications are deprecated in C++11; use 'noexcept' instead [-Wdeprecated]
2017-02-06 20:30:09 +00:00
Jean-Claude Manoli
18ac3030df Replace ICollection with IEnumerable<T>
Adding a constructor that accepts IEnumerable<T> avoids the boxing and unboxing overhead of the original constructor, when the type parameter is a value type. This also allows passing IList<T>, which does not implement ICollection (ironically the generated type implements IList<T>).

Kept the original constructor for backward compatibility, but replaced ICollection with IEnumerable for added flexibility.
2017-02-05 08:02:14 +01:00
William S Fulton
f5299fba82 Appveyor Windows testing enhancements
- Test python 3.6 instead of 3.5 under visual c++
- Speed up using 2 make jobs to use both available CPUs
- Test cygwin 32 bit and 64 bit C++11 (python only)
- Test msys2/mingw 32 bit and 64 bit C++11 (python only)
- Remove python 2.7.9 vc++ workaround as we're testing 2.7.10 now
2017-02-04 19:18:54 +00:00
William S Fulton
f16f7ada79 add missing test function implementation 2017-02-04 19:18:54 +00:00
William S Fulton
be22dd94d1 configure fixes for Python under MinGW / msys
MinGW's python is a normal posix Python distribution, so handle
detection differently to vanilla Windows Python.
2017-02-04 19:18:54 +00:00