Commit graph

3,484 commits

Author SHA1 Message Date
William S Fulton
3aab2df371 Fix D examples when run 'in-source' 2014-12-29 17:17:25 +00:00
William S Fulton
2d340efe0d Fix D examples clean
Was not working if run out of source without previously running D examples
2014-12-28 19:54:46 +00:00
William S Fulton
063aa9e3c5 Revert "Fix D examples clean"
This reverts commit c26010eb01.
2014-12-28 19:14:25 +00:00
William S Fulton
1610ca86dd Fix javascript clean 2014-12-28 19:07:32 +00:00
William S Fulton
c26010eb01 Fix D examples clean 2014-12-28 17:35:18 +00:00
William S Fulton
8b9d68582d Fix javascript clean
Regression introduced a couple of commits ago
2014-12-28 17:35:18 +00:00
William S Fulton
2b04d37b94 Tidy up Javascript build system 2014-12-28 16:13:22 +00:00
William S Fulton
d79f11501d Don't delete checked in files with 'make distclean'
Occurs when ruby is not detected.
Fixes #290.
2014-12-28 15:26:27 +00:00
William S Fulton
ad5890bb46 Reduce scope of template_default_class_parms testcase
%template is not working for all languages yet - remove it until fixed
2014-12-28 13:05:30 +00:00
William S Fulton
ee35389d22 Fix abort using template default parameters
Closes #280
2014-12-28 10:39:53 +00:00
William S Fulton
eec306c228 Test suite warning fixes 2014-12-28 10:38:12 +00:00
William S Fulton
5c57a8c877 Warning suppressions in tests 2014-12-22 20:35:13 +00:00
William S Fulton
31df3077b3 nested_scope test fixes for clang 2014-12-21 20:41:31 +00:00
William S Fulton
93d58cd3ed Fix use of preprocessor null directive
This was broken recently in commit 255c929c56
for issue #217
2014-12-20 17:05:13 +00:00
William S Fulton
68a936a638 Add testcase for nested inner class deriving from a templated base class and defined outside of the outer class.
For languages that don't support nested class support, use flatnested.
See issue #270
2014-12-19 19:35:38 +00:00
William S Fulton
70a04c9ffe Add in missing constant_directive.i test 2014-12-18 07:06:52 +00:00
William S Fulton
2e01533b23 Partial support for %constant and structs
Test case is slightly modified from the test case in issue #250

Use of constant objects does not seem to work in Python - the type is
SwigPyObject instead of constant_directive.Type1.
2014-12-18 07:01:08 +00:00
Vadim Zeitlin
e12a1d7671 Ignore E402 (import not on top of file) PEP8 error.
Travis uses the latest pep8 sources from Git and since

f3a12babd4

this error is given for all Python files generated by SWIG with -builtin
option.
2014-12-16 17:28:27 +01:00
Vadim Zeitlin
cb53e3063b Add PEP8_FLAGS variable to the test suite Python makefile.
Put pep8 options into this variable to avoid repeating them twice.

No real changes.
2014-12-16 17:28:25 +01:00
William S Fulton
ae555c2339 Fix templated constructors regression
Templated constructors were incorrectly ignored because SWIG thought they were
methods without a return type.
Regression introduced in swig-3.0.0
Closes #245.
2014-12-09 23:48:37 +00:00
William S Fulton
7f8bb02d78 Fix regression in introduced in merge of C++11 strongly typed enums support
- Guile constants bad casts generated
- Go non-public enum value wrappers assert failure

Also cosmetic test comment correction
2014-12-07 21:31:14 +00:00
William S Fulton
b9b9b3cd21 Merge master and C++11 strongly typed enum support
Merging from master:
* 'master' of github.com:/swig/swig:
  Add more docs about _global_ prefix in typemap temporary variables
  Add clarification on _global_ prefix.
  fix for nested template defined out of class (issue #265)
  using an unknown constant emits a notice, not a warning
  Fix typo
  Consistently put whitespace outside of <tt>...</tt> and not inside
  wording tweak
  Go: Document memory management of C++ classes allocated in Go.  Fixes #266.
  revert unrelated file
  Fix #224
  Fixes for clang -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error
  delete unmeaningful macro
  Go: fix overload functions with polymorphic issue
  del tmp files
  GoLang:fix overload functions with polymorphic issue
2014-12-07 17:33:16 +00:00
William S Fulton
3d85dfba9a Add c++11 strongly typed enums runtime test for Javascript 2014-12-02 19:59:59 +00:00
William S Fulton
a798699e09 Add c++11 strongly typed enums runtime test for Octave 2014-11-29 00:00:32 +00:00
William S Fulton
713d3d5973 Add c++11 strongly typed enum support for Go 2014-11-28 20:40:37 +00:00
William S Fulton
be272ff8cd Add c++11 strongly typed enum support for Lua 2014-11-28 07:47:45 +00:00
William S Fulton
97b0868754 Fix line endings in lua example 2014-11-27 20:23:28 +00:00
William S Fulton
55a9dc7115 Add c++11 strongly typed enums runtime test for Tcl 2014-11-27 19:59:23 +00:00
William S Fulton
3efd3affbd Add c++11 strongly typed enum support for PHP 2014-11-27 19:59:20 +00:00
William S Fulton
91c5b0fd13 Add c++11 strongly typed enums runtime test for Ruby 2014-11-27 19:59:16 +00:00
William S Fulton
b9d70866ca Add c++11 strongly typed enums runtime test for Perl 2014-11-27 19:59:08 +00:00
William S Fulton
80ae335319 Enhance C++11 strongly typed enums testcase 2014-11-27 19:56:08 +00:00
William S Fulton
7ffea44d80 C++11 strongly typed enums runtime test for python 2014-11-25 19:56:34 +00:00
Vladimir Kalinin
274977154f fix for nested template defined out of class (issue #265) 2014-11-25 19:38:37 +03:00
William S Fulton
49761fe347 Add Java runtime testcases for C++11 strongly typed enums 2014-11-25 07:08:02 +00:00
William S Fulton
b5cb93f43e add director_nested_class to list of broken tests 2014-11-25 07:08:02 +00:00
William S Fulton
366948079f Add C# support for wrapping C++11 strongly typed enums 2014-11-25 07:07:47 +00:00
William S Fulton
73fc7c2a90 Enhance strongly typed enums testcase 2014-11-24 07:05:00 +00:00
William S Fulton
0664ecdeb7 Fix strongly typed enums for Java when using simple enum wrappers 2014-11-24 07:04:54 +00:00
William S Fulton
fcef37d682 Fix incorrect symbol clash error in C# and Java when using %rename for enums
When using using 'simple enum' wrappers
2014-11-21 19:50:23 +00:00
William S Fulton
296d45aec5 Merge branch 'alexey-pelykh-cpp11_strongly_typed_enums__direct_inject_in_java'
* alexey-pelykh-cpp11_strongly_typed_enums__direct_inject_in_java:
  Enhance cpp11_strongly_typed_enumerations testcase and turn it on
  Simplify/improve strongly typed enum implementation for Java
  Rewrite some Java director nested class support code for strongly typed enums
  Expand director_nested_class test to test more than one level of nesting
  Add director_nested_class testcase
  Removed useless code (it does not affect output, at least on our testcases)
  Java/Fix: swig_connect_director used not-fully-qualified classname (proper)
  Java/Fix: swig_connect_director used not-fully-qualified classname
  Java: fix generation of ProxyName when JNI descriptor is requested - for inner classes '$' should be used as separator instead of '/'
  Java: fix invalid director 'self' variable type name (wasn't fully qualified)
  Clean-up test suite and fix issue with nspace, as well as keep the fix for Class::Struct::EnumClass being JNI-referenced as Struct_EnumClass
  C++11 strongly-typed enums fix for Java only (proper)
  Revert "C++11 strongly-typed enums fix for Java only"
  Additional test cases for C++11 strongly-typed enums
  C++11 strongly-typed enums fix for Java only
2014-11-21 07:34:12 +00:00
William S Fulton
f72b9f99a4 Enhance cpp11_strongly_typed_enumerations testcase and turn it on 2014-11-21 07:32:28 +00:00
ianlancetaylor
da7133aa8e Merge pull request #235 from dontpanic92/master
Go: fix overload functions with polymorphic
2014-11-17 08:28:07 -08:00
Anthony Li
3b3de5d477 revert unrelated file 2014-11-11 12:18:13 +08:00
William S Fulton
92d3146a06 Expand director_nested_class test to test more than one level of nesting 2014-11-10 19:57:49 +00:00
William S Fulton
bca042a7dd Add director_nested_class testcase
Java nested director class test for fix in e7db081d5e
2014-11-07 19:50:20 +00:00
Olly Betts
ac1f067ce9 Eliminate trivial differences between the reference examples 2014-11-07 15:34:43 +13:00
Olly Betts
37cd1474b5 Remove bogus ; after } in examples 2014-11-07 15:34:43 +13:00
David Nadlinger
0e5e043870 D: Fix up the emergency CI build fix (fe3d137ce).
Turns out the issue that led me to push a broken commit in
the first place also caused the build to succeed when I
tested the fix in a rush. I should've just used the GitHub
merge button. Sorry for the noise, hopefully won't happen again.
2014-11-07 00:42:45 +01:00
David Nadlinger
fe3d137ce9 D: Fixup example makefile.
This fixes 8627656. I accidentally merged an old version to master,
sorry for the intermittent breakage.
2014-11-06 23:12:00 +01:00