Elias Holzer
a115bd9a51
Overload comparison operators only if their native counterpart return bool.
11 years ago
Dimitar Dobrev
ccc1608a81
Fixed a regression in the new parser causing a crash on enums with empty names.
11 years ago
triton
fe0c6ebfa8
Fixed test case by using CppSharp.AST.Extensions.
11 years ago
Dimitar Dobrev
72089a499e
Marshalled C++ char as Mono/.NET char instead of sbyte for a more friendly API.
...
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
Dimitar Dobrev
fee1809ca5
Wrapped copy constructors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
24a8db6a32
Fixed the generation of internal implementations of abstract classes to actually work.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
8d9ff9515e
Generated dependent fields if they are of a union type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
99849da1d1
Added preliminary support for char16 to avoid crashes because of null parameter types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
11ef53df10
Generated all internals of all (including ignored) classes and all of their fields in order to properly store objects in managed code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
2de268570c
Added missing test attribute to TestPropertyChains.
11 years ago
triton
0a102d8fbc
Added better wrapping for static classes.
11 years ago
Dimitar Dobrev
be34899fc5
Added tests for v-tables checking calls to virtuals from within C++ and passing parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
ebd692e6aa
Fixed the renaming pass to consider forward declarations and function type defs.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
59e0fb9ede
Generated correct v-tables when using the Itanium ABI.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
20c6e04cd0
Fixed the ignoring of methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
4c5d933cd2
Added support for marshalling arrays of pointers to primitives.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
e1a12027ec
Wrapped value typed fields with properties in order to have changes reflected to the native pointer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
819df6a2a2
Fixed CLI generation with references to pointers types (added a test).
12 years ago
triton
0f76dc0090
Added experimental destructors/finalizers support.
...
This has exposed some underlying bugs on some pieces of generated code, so I've put it under an option temporarily.
Fixes #148 .
12 years ago
Dimitar Dobrev
9686187eb1
Wrapped properties of non-primitive value types as fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
df4391a340
Added a test for unions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
22b6a3c11f
Use GenerateInternalFunctionCall when generating class constructors.
...
Fixes #149 .
12 years ago
triton
4cfd5c083e
Remove unnecessary NUnit attributes from the tests.
12 years ago
triton
1b7947538a
Move all the testing infrastructure to CppSharp.Generator.Tests.
12 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
c853db5d34
Ignored operators which cannot be moved to a class because C# requires operators to be in their containing type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
52cf3702a6
Minor formatting fixes.
12 years ago
triton
0c12ef9bd5
Cleaned up some unused usings.
12 years ago
triton
4d70b60700
Renamed ASTContext parameter from "lib" to "ctx".
12 years ago
triton
a8c6e1f140
Fixed a problem with class operators not being correctly promoted to class operators.
...
We need to check all the parameters for a possible class to promote the operators.
12 years ago
triton
3a74428f94
Fixed delegate generation regression and added some tests.
12 years ago
triton
b5e947881b
Fixed the generation of 'ToInternal' to check for null only fields of a ref type.
...
Part of the patch by @ddobrev .
12 years ago
Dimitar Dobrev
d583b489a3
Fixed the returning of empty values when the returned type is a structure.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
c5f2acacc6
Fixed the wrapping of instance operators to account for fixed instances.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
06b83ee3fc
Changed the generation of method bodies to avoid duplication of local variables when a fixed instance is required.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
3a891950df
Remove useless code.
12 years ago
triton
8135983b58
Formatting fixes.
12 years ago
triton
6bf0ae980c
Changed attributed types test to be CLI-only for now since Clang currently fails with some mangling bugs.
12 years ago
triton
6402c3ca55
Added support for C++ attributed types to the parser, AST ,generators and tests.
12 years ago
triton
a766ba7255
Added tests for C++ STL vectors.
12 years ago
Dimitar Dobrev
6dcb8fa593
Added the option to have attributes generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
3cf6c7b3f1
Added a test for the pass that moves functions to a class.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
df99550a39
Fixed the parsing of function prototypes in cases where the Clang type locator is not available.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
2b77361d89
Reverted the hack about filling the empty names of parameters explicitly for function types. Added tests for this regression and another one caused by the changed around the introduction of FunctionType.Arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
1133b6c935
Fixed delegate generation problem.
12 years ago
triton
5fbfbac8f4
Small cleanup.
12 years ago
triton
fed9031775
Fixed support for C++ conversion operators.
12 years ago
triton
4a29db6bcd
Revert "Fixed bug caused by a type in the new parser."
...
This reverts commit f1f6c2e5e9
.
12 years ago
triton
f1f6c2e5e9
Fixed bug caused by a type in the new parser.
12 years ago