Marko Klopcic
20cc685e8a
tests with escapes added, tests refactored - broken to smaller chunks
2013-01-10 22:26:50 +01:00
Marko Klopcic
8d61aae0fb
fixed handling of /******/ comments, added tests for backslash handling, which fail
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-06 20:56:19 +00:00
Marko Klopcic
e62580acb8
fixed doxy documentation (also shortened lines), added test for discovered bug reltaed to nested enums
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13728 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-28 20:59:32 +00:00
Marko Klopcic
af74b4f96a
renamed test case
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-27 20:25:00 +00:00
Dmitry Kabak
3ca3848464
Implemented missing runtime tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-16 15:10:07 +00:00
Dmitry Kabak
380b71eb56
Implemented automatic translation of links in doxygen comments, for example @see function(std::string) -> @see function(String) in java. Also included testcase for that
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13490 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-03 21:43:02 +00:00
Dmitry Kabak
1881130f10
Fixed doxygen_basic_translate java runtime test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13486 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-02 22:01:54 +00:00
Dmitry Kabak
fb3ee4fb78
Implemented support for default args - overloaded functions, optional feature 1 in my project plan. Extended testcase.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13483 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-02 10:31:02 +00:00
Dmitry Kabak
5fe88acdfb
Forgot to escape special HTML-chars in JavaDocConverter
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13425 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-29 11:37:38 +00:00
Dmitry Kabak
4c293c8282
Enhanced and unified all java doxygen tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13345 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-23 11:23:47 +00:00
Dmitry Kabak
32ac8c0be4
Added doxygen_basic_translate runtime test for java
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-23 11:19:04 +00:00
Dmitry Kabak
791ea1ba3a
Enhanced commentParser.java, improved string comparison (now ignoring whitespaces), improved comments text output
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13342 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-23 10:52:59 +00:00
Dmitry Kabak
ff0ec620b2
Added runtime test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-16 19:51:43 +00:00
Dmitry Kabak
dc43241130
Rewritten doxygen_parsing.cpptest according to the project plan
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-09 14:02:23 +00:00
Dmitry Kabak
3a3c2b8063
Extended commentParser.java to the standalone java app to print parsed comments
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13274 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-09 13:56:45 +00:00
Dmitry Kabak
92112f69f1
Refactored java commentParser class
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-07 13:55:25 +00:00
Dmitry Kabak
93a02cc728
Refactored doxygen tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-07 13:40:41 +00:00
Dmitry Kabak
4c215eb337
Refactored most of comments translating code for java, preliminary version, lots of bugs right now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-02 20:29:49 +00:00
Dmitry Kabak
774cbc3ef2
Fixed comments parsing, but broken li_boost_shared_ptr_bits test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-29 19:37:42 +00:00
Dmitry Kabak
304e232dbc
Fixed enum comments generation in java
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13209 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-29 19:28:21 +00:00
Dmitry Kabak
b88de2aa89
Fixed enum comments generation, added testcases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13184 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-18 19:13:23 +00:00
Dmitry Kabak
e3f41f32a6
Added test case to check Doxygen comments parsing, including java and python runtime tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-04 18:11:29 +00:00
William S Fulton
a0e21e82ca
char **STRING_ARRAY typemaps fixed to handle null pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 14:29:23 +00:00
William S Fulton
196097949b
Add JNI checking when running Java test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12962 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-29 20:27:56 +00:00
William S Fulton
50693941c6
Fix #3475492 - iterating through std::vector wrappers of enumerations.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-13 07:10:24 +00:00
William S Fulton
debd5e9246
Add support for %nspace when using directors - Java
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-01-06 18:57:25 +00:00
William S Fulton
b50e6858ac
keyword variable workaround in testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-12-21 07:18:45 +00:00
William S Fulton
468ca084fc
Correct special variables in 'directorargout' typemap. This change will break any 'directorargout' typemaps you may have written. Please change: to and to \n Also fix the named 'directorargout' DIRECTOROUT typemaps for these languages which didn't previously compile and add in , etc expansion.\n [C#, Go, Java, D] Add support for the 'directorargout' typemap.\n [Java] Add (char *STRING, size_t LENGTH) director typemaps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-12-20 20:50:36 +00:00
William S Fulton
4c6f66577a
Add warnings for badly named destructors. Fix %extend and destructors for templates - they weren't always being wrapped. Fix destructor "name" attribute.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12804 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-09-13 06:15:29 +00:00
William S Fulton
a141af9574
Fix regression introduced in r12784 where SWIG accepts a non standard constructor and destructor name in %extend, where the typedef name is used as the constructor/destructor name.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12801 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-09-08 18:19:45 +00:00
William S Fulton
2fd6b5367d
Fix %extend on typedef classes in a namespace using the typedef name
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12800 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-09-08 18:18:33 +00:00
William S Fulton
d0081ebb82
%shared_ptr fixes when the type is a template using template parameters that are typedef'd to another type. Also fixed %shared_ptr when the template parameter has a default value.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12776 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-08-13 00:36:12 +00:00
William S Fulton
4511b13646
Add testcase for bug #3378145 which was fixed in r12764
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-07-28 06:29:20 +00:00
William S Fulton
6c100423b8
Fix some scope and symbol lookup problems when template default parameters are being used with typedef - add the fully expanded template into the c symbol table and scope table.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-07-01 22:59:55 +00:00
William S Fulton
6f67280044
Add setter tests to test case
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-07-01 20:34:38 +00:00
William S Fulton
8a6e006a7b
Marshalling char[] and char[ANY] to Java byte[] is now a bit easier
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-06-17 06:41:53 +00:00
William S Fulton
f24d1b99b1
Add in missing wrappers for friend functions for some target languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 23:06:40 +00:00
William S Fulton
b13ec94386
SF bug #3195112 - fix wrapping of enums that are type char
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-26 15:28:31 +00:00
David Nadlinger
ce6516fb4c
[D] nspace support.
...
As for C# and Java, this doesn't work for free functions/variables yet.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:32:26 +00:00
William S Fulton
4a73d986dd
Any 'using' statements in the protected section of a class were previously ignored with dirprot mode, certainly with Java and C#. Also directors - a call to a method being defined in the base class, not overridden in a subcalss, but again overridden in a class derived from the first subclass was not being dispatched correcly to the most derived class - affecting non-scripting languages. Fix for C# is based on recent fix for D.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-01 07:02:50 +00:00
William S Fulton
640cce2c50
Fix typecheck typemaps for SWIGTYPE *const&
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-30 00:42:27 +00:00
William S Fulton
ef865e06d5
Added some missing multi-argument typemaps: (char *STRING, size_t LENGTH) and (char *STRING, int LENGTH) - Java patch is from Volker Grabsch. Elements of the primitive_types.i testcase for this moved into char_binary.i. Documentation for this enhanced.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-14 19:06:43 +00:00
William S Fulton
cdc8d13ae6
Fix rname testcase when run under OpenJDK icedtea on Linux because libjvm.so also contains a class called Base. Also remove need for Go specific handling in this testcase.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12372 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-05 21:15:10 +00:00
William S Fulton
8f1bde9d81
Fix expansion in array typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-14 21:38:36 +00:00
William S Fulton
93b030ec6a
Fix wallkw runtime test since D was added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-08 19:58:19 +00:00
William S Fulton
64852460a0
Fix wallkw runtime test since D was added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-08 19:56:14 +00:00
Vadim Zeitlin
f6cab0170a
Ignore non-matching regex renames when searching renames list.
...
Skip over %renames with non-matching %(regex)s expansion when looking for the
one to apply to the given name. This allows to have multiple anonymous renames
using regex as now the first _matching_ one will be used instead of always
using the first one and ignoring all the rest of them.
Extend unit tests to verify that applying two anonymous %renames does work as
expected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-16 14:09:39 +00:00
William S Fulton
c9ede7e622
Fix unary scope operator (::) (global scope) regression introduced in 2.0.0. The mangled symbol names were incorrect, sometimes resulting in types being incorrectly treated as opaque types.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-13 05:48:59 +00:00
William S Fulton
3219746776
Apply patch #3066958 from Mikael Johansson to fix default smart pointer handling when the smart pointer contains both a const and non-const operator->.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-03 13:12:00 +00:00
William S Fulton
efb9090a87
Fix correct line number reporting in errors/warnings when a macro definition ends with '/' and it is not the end of a C comment - swig.swg has some of these macro definitions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-11 11:02:18 +00:00