Dimitar Dobrev
f77d394eb1
Generated methods and variables of base classes of value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Tom Spilman
ba8c29c1ac
Fixed simple mistake in the EnumOut tests.
11 years ago
Tom Spilman
5e63406de0
Added tests for out enums.
11 years ago
Tom Spilman
51fa468cfa
Added unit test for in/out for primitive parameters.
11 years ago
Tomi Valkeinen
4e185973e5
Normalize all the line endings
...
Normalized all the line endings with:
git rm --cached -r .
git reset --hard
git add .
git commit -m "Normalize all the line endings"
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
triton
af06f32fd5
Reworked static class support in CLI and C#.
11 years ago
triton
eb2bbba883
Added better support for nullptr_t types.
11 years ago
triton
6edcb8dd44
Added support for decltype types.
11 years ago
Elias Holzer
6fa7077dbd
Moved unnamed enums test to generator tests.
11 years ago
Elias Holzer
502b9e1637
Added test case for unnamed enums - should pass with old parser, but fail with new one.
11 years ago
Elias Holzer
0c260bd223
Improved support for indexed properties.
...
More types and types with different qualifiers are supported now - in both backends. See test cases for details.
11 years ago
Elias Holzer
7478c5329e
Cleaned up tests regarding indexed properties.
11 years ago
triton
ac778cd593
Fixed whitespace in new test in TestDelegates.
11 years ago
Elias Holzer
cc3cc40fc4
When generating delegates attributed types need to be taken into account or proper calling convention won't get picked up.
11 years ago
Elias Holzer
474f82b513
Added support for explicit conversion operators and added new pass which will create implicit and explicit conversion operators out of single argument constructors.
...
Conflicts:
src/Generator/Passes/CheckAmbiguousFunctions.cs
src/Generator/Passes/CheckOperatorsOverloads.cs
11 years ago
triton
d6c2004ca4
Comment this test since it's not reproducible between platforms.
...
Specifically, on OSX it's generating `2147483648`, while it generates `-2147483648` on VS. I've tried to get down to the cause and Clang itself returns different values on both platforms, even though the compiler seems to deduce the same signed 32-bit integer on both platforms.
11 years ago
Elias Holzer
325bca6082
CLI generator didn't respect static properties.
11 years ago
Elias Holzer
15f1394aaf
The extension method Type.IsPointerTo<T> will take attributed types into account.
...
Fixed generation of attributed delegate types in my case.
11 years ago
triton
9166a55202
Fixed generation of properties to behave as expected.
...
Fixed this by changing GenerateProperties to use GetterSetterToPropertyPass instead of GetterSetterToPropertyAdvancedPass.
Fixes issue #215 .
11 years ago
triton
d68b7b3b56
Fixed code generation for enum pointers as parameters.
...
Fixes issue #217 .
11 years ago
Elias Holzer
f091c6662a
CLI generator will use the pointee type for indexed properties which have a setter.
11 years ago
Elias Holzer
e6cb543c36
Fixed overloading of an indexed properties by removing the hard coded "int index" part.
11 years ago
Elias Holzer
d8b855bfe6
Fixed handling of primitive pointer types.
11 years ago
triton
9c07283ff0
Fixed CLI getter/setter property generation (with tests).
11 years ago
triton
ee6baa38dd
Fixed code generation for global functions (and added a test).
11 years ago
triton
46f92e30d0
Fixed the remaining tests from the pull request.
11 years ago
triton
e95a2929a8
Fixed handling of property indexers in the CLI generator.
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>
12 years ago
Dimitar Dobrev
7477b90023
Moved the tests for copy ctors to separate classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
fee1809ca5
Wrapped copy constructors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 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>
12 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>
12 years ago
triton
2de268570c
Added missing test attribute to TestPropertyChains.
12 years ago
triton
0a102d8fbc
Added better wrapping for static classes.
12 years ago
triton
819df6a2a2
Fixed CLI generation with references to pointers types (added a test).
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
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
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
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
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
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
triton
5fbfbac8f4
Small cleanup.
12 years ago
triton
fed9031775
Fixed support for C++ conversion operators.
12 years ago
Dimitar Dobrev
19bae92f9b
Added a fake option so that the build stays healthy since the C++/CLI-back-end does not properly support properties yet.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago