William S Fulton
944fbfb426
Python 3 default args fix
...
Fix 0U and 0L as default args for Python 3 (tests committed in
previously commit of default_args.i).
Relates to issue #294 .
2015-01-13 07:55:31 +00:00
William S Fulton
9d87b9f099
Revert introduction of python:defaultargs feature
...
See issue #294
2015-01-12 21:35:47 +00:00
Olly Betts
02b10195fc
Add regression test for #217
2015-01-12 22:33:15 +13:00
William S Fulton
679f9395bc
Tests for Python default arguments and %pythondefaultargs.
...
Tests changes in previous commit (see patch #294 )
2015-01-11 16:45:53 +00:00
William S Fulton
efb8784c8b
Fix python default_args testcase for Python 3
...
Changes for the default_args testcase to run under Python 3 when called
from python_default_args testcase
2015-01-09 00:37:23 +00:00
William S Fulton
38ba81811e
Fix Python default argument handing broken since swig-3.0.3
...
Default values are no longer generated as Python code by default.
They must be explicitly turned on using the "python:defaultargs" feature.
Closes #294
Closes #296
The problems in these two issues when "python:defaultargs" is turned
on still need to be fixed and should be addressed in separate patches.
The important thing is the default code generation is now fixed.
2015-01-09 00:34:17 +00:00
Vadim Zeitlin
34787ab98e
Python default argument test cases from issue #294
2015-01-09 00:33:57 +00:00
William S Fulton
af43f90484
Wording change for missing semicolon error
2015-01-08 23:37:52 +00:00
Olly Betts
bfa570e404
Handle "constexpr explicit" and "constexpr static"
2015-01-09 11:47:40 +13:00
Olly Betts
87bdaa3910
Allow C++11 "explicit constexpr"
2015-01-08 15:56:50 +13:00
Olly Betts
62670e756e
Improve errors for missing ; and unexpected )
2015-01-08 15:27:57 +13:00
Olly Betts
8fbdd75a0b
Add test coverage for unterminated %{ ... %} block
2015-01-08 13:26:39 +13:00
Olly Betts
ce90ff6a77
When reporting an error for a construct which hasn't been terminated
...
when the end of the file is reached, report it at the start line rather
than "EOF" as then tools like editors and IDEs will take you to a
generally more useful place for fixing the problem.
2015-01-08 13:19:17 +13:00
Olly Betts
51487c1acc
Improve error message for extraneous '%}'.
2015-01-08 12:47:12 +13:00
Olly Betts
19961d7135
Add .gitignore for Examples/test-suite/errors/
2015-01-08 12:25:47 +13:00
Olly Betts
809ebef1f8
Fix testcase name in expected output
2015-01-08 12:21:23 +13:00
Olly Betts
04715f74e2
Improve error message when an unknown SWIG directive is used
...
This previously gave the cryptic "Error: Syntax error in input(1).", but
now gives "Error: Unknown directive '%foo'."
2015-01-08 12:07:54 +13:00
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