Dimitar Dobrev
|
1b68ecf239
|
Fixed the generated C# when a constructor uses an unsupported expression in a default arg.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
b2a872f431
|
Merged the passes for properties and made the result non-optional.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
bc9016cf19
|
Made the generation of conversion operators for constructors non-optional.
We are better off always having them because we map to C++ better this way.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
055f4c627e
|
Fixed the generated C++/CLI when a header and a contained name-space bear the same name.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
1b41897172
|
Fixed the generated C# when a header and a contained name-space bear the same name.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
77f45dee38
|
Fixed the adjustment of the instance in cases of multiple inheritance.
Fixes https://github.com/mono/CppSharp/issues/707.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
05c4213c28
|
Revert "Fixed the adjustment of the instance in cases of multiple inheritance."
This reverts commit e43dd1c18f .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
e43dd1c18f
|
Fixed the adjustment of the instance in cases of multiple inheritance.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
ad5505f113
|
Enabled multiple inheritance, and removed its option, in the C# generator.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
924ceaf85a
|
Fixed the selection of a virtual table to call virtual methods through in the C# generator.
Fixes https://github.com/mono/CppSharp/issues/703.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
baee5fd5a8
|
A test for the crash when using multiple inheritance and calling a virtual function from a secondary base.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
9 years ago |
Joao Matos
|
7a26c11382
|
Rename VisitLibrary method to VisitASTContext.
|
9 years ago |
Dimitar Dobrev
|
d22e084c7c
|
Fixed the walking of pointer types to use the correct qualifiers.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
9cbb13053a
|
Fixed the generated code when an override has its access increased.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
7c9c91acc3
|
Fixed the generated C# when a method with a default arg is named the same as another, non-default, of its parameters.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
a04c752b33
|
Fixed the generated C# when an abstract function has no default args but its overrides do.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
6245f9e105
|
Fixed the generated C# when an abstract function in a secondary base has a non-primitive default argument.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
d2326a3883
|
Added processing of type aliases.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
6ed05c2b5d
|
Fixed the generated C# with properties constructed from a returned value and a taken reference.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
3ee6165053
|
Fixed the generated C# when a virtual function returns a primitive pointer.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
7da5acda65
|
Fixed the handling of covariant returned types.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
9fe2d307dc
|
Fixed the generated C# when marshalling a field of type const wchar_t*.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
1932798d45
|
Aligned pointers to classes when passing them converted to their secondary bases.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
b16bb0a979
|
Moved the change of order when visiting properties to just the renaming pass.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
be32825bed
|
Added support for wrapping variable arrays.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
829422cc86
|
Fixed invalid generated C# code when having a field renamed the same as a method.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
9da51c1e16
|
Changed the renaming not to remove the underscores from all-capital names.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
1aa85ab9f7
|
Fixed a bug causing some functions with pointer parameters to be marked as ambiguous when they aren't.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
bcd6b226fa
|
Fixed the marshalling of arrays.
Fixes https://github.com/mono/CppSharp/issues/680.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
979057d263
|
Fixed the generated C# code when wrapping fixed arrays of enums.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
7b510bec42
|
Simplified the name of the internal structure.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
b2a90a5d80
|
Prefixed the internal structure for the C# end to avoid naming conflicts.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
e6c4bb9cc5
|
Fixed a crash when overrides change the sugaring of involved types.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
50ee414799
|
Fixed the C++ type printer to handle const value types.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
4f10e9fb78
|
Fixed the build after the refactoring.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
cbafb55044
|
Removed the managed calls to destructors of std::strings passed by value.
The native code calls the destructors itself.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
e2690ba078
|
Switched the C# generator from manual conversion between strings and pointers to the built-in string marshallers.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
e36e7fc0ca
|
Ignored fields with types pointer to a function because they are not properly marshalled anyway.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Joao Matos
|
013a9e8b4c
|
Merged IgnoreAbstractOperatorsPass into CheckOperatorsOverloadsPass and added a test.
|
9 years ago |
Dimitar Dobrev
|
fbd1f5e328
|
Optimised, simplified and fixed the pass for renaming by case.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
aabe7409d1
|
Fixed the internals of templates specialising arrays by simplifying the names.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
deea8d8cda
|
Removed functions made ambiguous by different qualifiers on the same type in their parameter.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
1771f7462b
|
Fixed the generation of internals for nested template specialisations with pointers as T.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
5a4748f2d0
|
Handled two or more empty enums with identically prefixed members and in the same context.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Joao Matos
|
b8adc4af6e
|
Fixed Common tests to include the extra units.
|
9 years ago |
Dimitar Dobrev
|
d41609eafb
|
Marked incomplete class template specialisations and ignored them later.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
0837094d76
|
Fixed the generated C# code when a default arg with an ignored expression is preceded by another default arg.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
dd3a9e1673
|
Fixed the Linux build by explicitly including a system header.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
9d940c8f51
|
Removed default parameters when they use ignored declarations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
6a0069f9c2
|
Fixed invalid C# code when wrapping a constant of type std::string.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |