Commit graph

3,977 commits

Author SHA1 Message Date
Robert Stone
488aed4224 apply SF Patch #350 and add testcase 2014-08-15 21:47:10 -07:00
Vadim Zeitlin
07e2568a20 Remove long line wrapping from Python parameter list generation code.
This doesn't play well with PEP8 checks which imposes very strict continuation
line indentation rules which need to be _visually_ aligned, i.e. the subsequent
lines must be indented by the position of the opening bracket in the function
declaration line, but the code generating the parameter lists doesn't have
this information and so it's impossible to do it while avoiding either E128 or
E123 ("continuation line {under,over}-indented for visual indent" respectively)
error from pep8.

Moreover, the wrapping code didn't work correctly anyhow as it only took into
account the length of the parameter list itself and not the total line length,
which should include the function name as well.

So just disable wrapping entirely, long lines shouldn't be a problem anyhow in
auto-generated code.
2014-08-10 14:52:00 +02:00
William S Fulton
69736cc0cb Tweak generated C# .cs files header 2014-08-04 19:41:38 +01:00
gpetrou
8433539849 Changed CSharp license header to include auto-generated tag so that StyleCop ignores the files. 2014-08-02 08:35:15 +01:00
Simon Marchetto
cc8b859162 scilab: use language specific warnings for too long identifier names 2014-07-21 12:47:27 +02:00
Simon Marchetto
dead560910 scilab: fix String & printf previous commit 2014-07-21 12:36:35 +02:00
Simon Marchetto
0e03e22e9d scilab: display truncated name in long identifier name warnings 2014-07-21 11:09:38 +02:00
Simon Marchetto
0278261604 scilab: display by default warnings for long identifier names 2014-07-21 10:54:41 +02:00
Simon Marchetto
46d1ae77cd scilab: use String and Printf in scilab.cxx 2014-07-21 10:47:20 +02:00
Ian Lance Taylor
287e84d84c [Go] Change struct definition to use void *, not uint8, so
that the type is recorded as possibly containing
pointers.  This ensures that the 1.3 garbage collector
does not collect pointers passed to C++ code.
2014-07-14 08:33:43 -07:00
Simon Marchetto
386d9f2a54 scilab: remove debug stuff 2014-07-02 17:34:50 +02:00
Simon Marchetto
fa405fafc1 scilab: fix build error management 2014-07-02 16:06:57 +02:00
William S Fulton
83749b3937 Fix expansion of the $parentclassname special variable
It incorrectly contains brackets in the expanded name.
Fixes SF Bug 1375.
2014-07-01 20:27:48 +01:00
Simon Marchetto
8b1daa91b4 scilab: debug travis 2014-07-01 17:28:40 +02:00
Simon Marchetto
5d3a5632c4 scilab: debug travis 2014-07-01 10:50:38 +02:00
Simon Marchetto
f1bc012fb2 scilab: debug travis 2014-06-27 12:56:45 +02:00
Simon Marchetto
4660e693e9 scilab: generate builder.sce in currrent dir 2014-06-27 10:15:38 +02:00
William S Fulton
081cb1af53 Beautify scilab.cxx 2014-06-26 20:30:26 +01:00
William S Fulton
e9c8e98260 Use Insert instead of DohInsertitem 2014-06-26 20:30:25 +01:00
Simon Marchetto
821118de9b scilab: rename swig_this(), swig_ptr() to SWIG_this(), SWIG_ptr() 2014-06-26 09:44:49 +02:00
William S Fulton
4f949e7d4a Scilab -help options in alphabetical order 2014-06-20 08:09:19 +01:00
Simon Marchetto
a531ea2f27 scilab: fix command line option names 2014-06-12 18:09:19 +02:00
Olly Betts
8d226e39dc Merge pull request #188 from jschueller/python_pep8
Python PEP-8 conformity
2014-06-10 23:48:38 +12:00
Julien Schueller
6fe71da9fa Fixed remaining pep8 errors 2014-06-07 13:09:15 +02:00
Jason Turner
fa36b6228e Fix function naming conflict with class overloads.
This fix takes into account the classname while generating overload
handlers.

Example:

If you have two classes:

  class A {
    public:
      void doSomething(int);
      void doSomething(double);
  };

  class B {
    public:
      void doSomething(int);
      void doSomething(double);
  };

Before this patch, the overload handlers for A::doSomething and
B::doSomething create conflicting names and function redefinition errors
are caused.

After the patch, the overload handlers are named classname_doSomething
and no longer conflict.

This is might not the best way to implement this, but it
solves a critical problem on large projects, and specifically can affect
operator overloads that are being wrapped.
2014-06-06 18:24:22 +02:00
Simon Marchetto
07b06a4089 Merge branch 'master' into gsoc2012-scilab
Conflicts:
	.gitignore
	.travis.yml
	COPYRIGHT
	Examples/Makefile.in
	Examples/test-suite/constructor_copy.i
	Makefile.in
	configure.ac
2014-06-06 16:33:16 +02:00
Julien Schueller
93e06c0e58 Fixed another E231 2014-06-06 14:44:46 +02:00
Julien Schueller
36cac80166 Fixed some pep8 issues E701 2014-06-06 14:27:17 +02:00
Simon Marchetto
9dda9285ea scilab: fix allprotected test (scilab 6) 2014-06-06 12:03:03 +02:00
Julien Schueller
01a9946455 Fixed some pep8 issues E302 2014-06-06 11:28:00 +02:00
Julien Schueller
0d589349a1 Fixed pep8 issues E701, E203, E231, E261 2014-06-06 11:03:46 +02:00
Simon Marchetto
8e4041478f scilab: fix Scilab variable creation for scilab 6 2014-06-05 18:34:19 +02:00
Julien Schueller
e0c432f70d Use 4 spaces in emitFunctionShadowHelper for python 2014-06-05 16:51:23 +02:00
Simon Marchetto
d8e22f0e21 scilab: fix test bools (scilab 6) 2014-06-02 18:16:39 +02:00
William S Fulton
81d023ac05 Merge branch 'wkalinin-csymbols-2' - %extend and nested structs
* wkalinin-csymbols-2:
  Add runtime test for %extend and nested union
  test fixed
  %extend symbols for nested structs get into a wrong C symbol table
2014-06-02 07:11:22 +01:00
Karl Wette
6612997b63 Fix bug in DohNewStringWithSize(): guarantee string is nul-terminated 2014-06-01 15:33:26 +02:00
Karl Wette
ecf28da5a9 Octave: remove deprecated -global/-noglobal command-line arguments 2014-05-29 23:42:55 +02:00
Karl Wette
ebe1338015 Octave: whitespace/indentation cleanup of octave.cxx 2014-05-29 23:42:55 +02:00
Vladimir Kalinin
665c4f581b %extend symbols for nested structs get into a wrong C symbol table 2014-05-28 22:15:50 +04:00
William S Fulton
b531956467 Warning fixes compiling with Visual Studio 2014-05-27 21:55:17 +01:00
Simon Marchetto
82fed351dd scilab: for scilab 6, cannot pass API pointer everywhere in SWIG, use global pointer for now 2014-05-22 11:27:25 +02:00
Simon Marchetto
a74874f288 scilab: support of Scilab 6: gateway signatures 2014-05-22 10:59:57 +02:00
William S Fulton
71e72c45ed Create separate extetnd.c file for handling extensions / %extend
This is just a simple code refactor, moving and function renaming to
remove the %extend code out of the parser into its own file now
 that it isn't just used in the parser.
2014-05-21 19:16:15 +01:00
William S Fulton
9e4bce051d Merge branch 'wkalinin-csymbols-1'
* wkalinin-csymbols-1:
  obscure case workaround in std::set wrapper, where ignored type still need to be processed
  global unnamed structures ignored
  test added for nested unnamed C struct %extend
  %extend for nested unnamed C structs
2014-05-20 18:10:41 +01:00
Oliver Buchtala
0c42158723 Javascript: preparations for using Language::getNSpace(). 2014-05-19 00:20:19 +02:00
Vladimir Kalinin
d2ab75f907 obscure case workaround in std::set wrapper, where ignored type still need to be processed 2014-05-19 02:05:23 +04:00
Vladimir Kalinin
3692e175bc global unnamed structures ignored 2014-05-15 03:13:25 +04:00
Vladimir Kalinin
5d78f14b1c test added for nested unnamed C struct %extend 2014-05-14 00:56:39 +04:00
Vladimir Kalinin
2aa540b9c0 %extend for nested unnamed C structs 2014-05-14 00:51:36 +04:00
Vladimir Kalinin
55bda53145 C nested classes symbol table should be in global space 2014-05-10 22:16:26 +04:00