William S Fulton
d3051c5b04
Merge branch 'ConroyJ-master'
...
* ConroyJ-master:
Updated usage string for -cppcast/-nocppcast in octave.cxx
Attempting fixes for Octave shared_ptr support
2015-01-22 20:06:55 +00:00
William S Fulton
fb94b312e0
Fix incorrect flags being passed to javac on cygwin/mingw
2015-01-17 23:17:57 +00:00
William S Fulton
06fb68af5b
Merge branch 'ptomulik-fix/py-object-const'
...
* ptomulik-fix/py-object-const:
constant_directive_runme.py and classic classes
additional fixes to %constant directive
make %constant directive to work with structs/classes
2015-01-15 20:18:21 +00:00
William S Fulton
4d5333cb88
Merge branch 'leg0-bug_307'
...
* leg0-bug_307:
C++11 strongly typed enum fixes for directors
Fix #307 .
2015-01-15 19:48:38 +00:00
William S Fulton
fd8dcf44bf
C++11 strongly typed enum fixes for directors
...
Tests added for previous commit. Further refinements to patch #308 and
fixes #307 .
2015-01-15 19:48:07 +00:00
William S Fulton
afba5b755a
Fix Python default args when using kwargs
...
Recent default arg handling fixes didn't fix the case when kwargs is turned on
2015-01-15 07:54:36 +00:00
Olly Betts
ecf3ab5605
Disable director_thread_runme.php
...
This fails in a ZTS build of PHP.
2015-01-15 09:32:34 +13:00
Olly Betts
be4065531e
Add suggestion to check block delimiter
...
The fix for #217 means that blocks of target code delimited by { } with
'#' comments in now give errors (previously these lines were quietly
discarded).
The fix is generally to use %{ %} delimiters instead, so suggest this
might be the issue in the error message to help users hitting this issue
with wrappers which were apparently working before.
2015-01-14 16:08:08 +13:00
Olly Betts
a2f803bb5a
Add explanatory comment to pp_unknowndirective2.i
2015-01-14 16:00:40 +13:00
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
Jeremy
e301457a43
Attempting fixes for Octave shared_ptr support
2015-01-05 10:53:06 -05:00
Paweł Tomulik
2f6dee3adb
constant_directive_runme.py and classic classes
2015-01-02 18:50:49 +01:00
Paweł Tomulik
cfaf2f97fd
additional fixes to %constant directive
2015-01-02 18:50:49 +01:00
Paweł Tomulik
c21e2423a0
make %constant directive to work with structs/classes
2015-01-02 18:50:49 +01: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