Dimitar Dobrev
e9fcc76918
Restored the code formatting of the tests after an accident.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
5ef899366c
Renamed the test suite projects.
10 years ago
triton
18bc6729ac
Removed useless ignored TestChar16 test.
10 years ago
Dimitar Dobrev
a04ac2237a
Fixed the potential generation of explicit and implicit conversion from the same type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Abhinav Tripathi
364ea2660f
Fixed code gen for out Parameters.
10 years ago
Dimitar Dobrev
63bc07e965
Fixed the cleaning of invalid names to allow custom names for enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
9d78f5386d
Fixed a crash on Mono when marshalling types with no fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
5c5c9b8698
Fixed nested abstract classes to get internally implemented.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
86bd6bd118
Fixed the names when marshalling enum parameters in the C# end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
25f2b4a1f9
Prevented any change of access for inherited virtual properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
João Matos
2e448a5c83
Ignore TestPassAnonymousDelegate test as it's causing NUnit exceptions on AppVeyor.
10 years ago
Chris Spencer
e3a88f9136
Fix the anonymous delegates pass so it doesn't generate duplicate delegates when the same namespace is used in multiple translation units.
10 years ago
Chris Spencer
0c535d361b
Generate delegates for non-typedef'd function pointers to prevent runtime exceptions during marshalling.
10 years ago
Dimitar Dobrev
d2189fa5a7
Moved the improved test for friends to Basic because it's not C#-specific.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
3d72c2fca4
Added renaming of variables.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
6fb15efd50
When checking const-ness for ambiguity, ensure parameters are the same.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
6d7c1de491
Fixed a bug in the Equals generation for CLI and regenerated the bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
e6223a1c4c
Fixed 4 bugs related to custom comparison operators.
...
1. Missing Equals to complement operator ==;
2. Endless recursion when having a == and comparing to null;
3. Crash when having a == and comparing a null pointer to sth else;
4. Incompilable code with a type derived from a struct with operators.
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
261473cef8
Extended the support for fixed arrays to the C++/CLI back-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
6bd26ac443
Improved wide char handling in the C# and CLI.
...
References #320 .
11 years ago
triton
ec4ee6ba3c
Fixed handling of static fields in the parser.
...
References #320 .
11 years ago
triton
100d43c2b0
Fixes classes wrongly being assigned as static classes.
...
Closes #348 .
11 years ago
Dimitar Dobrev
d35a81c1f6
Ensured the UnmanagedFunctionPointerAttribute is always set on generated delegates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
1387b636e2
Replaced the usage of memcpy with a simple dereference assignment.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Tom Spilman
27a2016f8a
Added reference test case.
11 years ago
Tom Spilman
7e8f743228
Fixed const char string CS_IN_OUT case.
11 years ago
Tom Spilman
4bddc0798b
Added StringOutRef test.
...
Moved const char string in/out into its own test function.
11 years ago
Tom Spilman
d4e4aaffad
Fixed CLI and CSharp support for out parameter const char strings.
...
Added test for out parameter const char strings.
11 years ago
Tom Spilman
997de0e836
Added test for static protected methods/properties.
11 years ago
Tom Spilman
9159e531f4
Added EnumInOut tests.
11 years ago
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