Dimitar Dobrev
c512a558c7
Fixed a bug when a default arg is a binary operator expression.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
7cff21aa78
Fixed default args with template types; added an option for expressions to use in type maps.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
e33ae461b0
Fixed a bug when a default arg of type double has a value ending with .0.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
53e75ab19f
Fixed a bug when having a default arg value for a pointer to a C# struct.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
7328538f19
Prevented Dispose from destroying unmanaged objects we didn't create.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
73e9455821
Put own (created in managed code) objects in the object map upon creation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
84d8af2396
Added a mapping between native object and their managed wrappers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
c7253b456b
Fixed the assigment of structs with private fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
19f3400cff
Extended the generation of implicit ctors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Pyry Kontio
9e318355fa
A test for floating point default arg
11 years ago
Pyry Kontio
99f643d13f
Test that demonstrate the "new 0" and show some other erroneus behaviour too.
...
Implemented CastExpression. ImplicitCast and ExplicitCast statement classes.
Fixed implicit constructor string generation.
Implemented CtorExpr.
All test cases pass.
Fixed indentations, streamlined the code.
Fixed regressions.
Fixed regressions.
Adding a test case not covered before.
Fixed, refactored and simplified things.
Still more fixes (0 to null ptr conversion, enum check). The additional test passes now too.
11 years ago
Dimitar Dobrev
191821b1d4
Fixed the generated code for default value of 0 to a class mapped to an enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
26df3e0c77
Improved the handling of numeric default values.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f1c0d7a82a
Fixed the ambiguity in the C++/CLI branch when a native ctor takes anything mapped to IntPtr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
c4b48cf185
Fixed some problems with arrays of void after mapping void* to IntPtr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
30cb2cbe85
Fixed an ambiguity between an internal ctor and a potential wrapped one.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
2894999696
Fixed the generation of constructor overloads synthetised because of default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
1dbc76f134
Fixed a bug when a char parameter is assigned a default value of 0.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
de4c551fda
Worked around a specific default argument construct used in Qt.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
95547dbec8
Fixed default arguments with enums directly declared in headers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
d481cf8078
Fixed the renaming of overloads generated because of default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
88a88599e7
Fixed the wrapping of bit masks in default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs
11 years ago
Dimitar Dobrev
2bc06983f3
Fixed the generation of default argument when a reference is assigned a value.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
17fa53ac06
Fixed the advanced pass for properties to skip ignored methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
db30cde06d
Handled indirect return params in type maps.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f16a5ff6e0
Ensured default values, if any, of parameters of overrides, are generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/Generator/Driver.cs
tests/Basic/Basic.cpp
tests/Basic/Basic.h
11 years ago
Dimitar Dobrev
0499556bfe
Added support for default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
cbf4afae1f
Prepended 'get' and 'on' to methods and events respectively when there's a conflict with a newly generated property.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
7477b90023
Moved the tests for copy ctors to separate classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
3fd94bf482
Added better support for destructors.
...
Also changed the native identifier mangling scheme to add some shorthand for the type of special method. This makes it simpler to read through the generated binding code.
Hopefully fixes #142 .
12 years ago
Dimitar Dobrev
6dcb8fa593
Added the option to have attributes generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
fed9031775
Fixed support for C++ conversion operators.
12 years ago
Dimitar Dobrev
79883199f5
Prevented the renaming of constructors if there is duplication of names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
84fba50cf6
Extended the searching for type maps to try both qualified and unqualified names and both full template declarations and just templated types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
9d1687dbc4
Improved the property generation by matching with an "is" prefix for read-write properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ae1351d2b5
Improved the property generation by matching with an "is" prefix for read-write properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
8a502835f7
Added a check for 'null' before getting the native pointer of a wrapped object.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
7ecafc9858
Prevented renaming of methods when a base class has a property of the same name. Made the delegates used in abstract implementations prefixed with an underscore and internal.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
47f03ae68c
Added tests about the dereference and prefix/postfix operators. Fixed multiple inheritance not to include operators in interfaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
961316f96d
Fixed the new tests for properties to work around the existing unrelated bug of incorrect field values.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
501f123277
Removed a check for const-ness because of a parser bug. Added tests for properties of complex types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
fcb1ab67ca
Added tests for properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
5b6beaaf33
Added a test about operators in nested classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
88d5192684
Wrapped conversion (cast) operators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
07beb47048
Converted return types to their complementary interfaces, if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
3a9eef1e80
Added a new pass converting all parameter types to their respective interfaces, if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
c9e5c0d505
Completed the parallel hierarchy of interfaces so that a derived class can access the members of all of its bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
f5304e69bb
Completed the support for multiple inheritance with the exception of base interfaces and the cast operator in the derived class to the second or later base.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
b82aebab3a
Added support for writing using indexers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
cf58c70d23
Moved all ignored tests for the C# back-end to a temporary test project and enabled them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago