Joao Matos
|
38d5bc3094
|
Convert CodeTemplate.FileExtension overrides to expression-bodied members.
|
9 years ago |
Joao Matos
|
17d06ac0e5
|
Port class handling to visitor model in C# generator.
|
9 years ago |
Joao Matos
|
3eb59e4667
|
Minor improvements to code readability.
|
9 years ago |
Joao Matos
|
08c089251a
|
Port declaration context handling to visitor model in C# generator.
|
9 years ago |
Joao Matos
|
34ed304228
|
Renamed Template to CodeTemplate due to conflict with AST templates.
|
9 years ago |
Joao Matos
|
c42bd6eeaa
|
Rename the OutputDebug option to GenerateDebugOutput and document it.
|
9 years ago |
Dimitar Dobrev
|
dd814fe5d5
|
Fixed all warnings in the C# code.
|
9 years ago |
Dimitar Dobrev
|
fc1d75363a
|
Regenerated the parser bindings after making internals internal.
|
9 years ago |
Dimitar Dobrev
|
aa079c3222
|
Added setters to non-const static fields (variables) in the C# end.
Fixes https://github.com/mono/CppSharp/issues/545.
|
9 years ago |
Dimitar Dobrev
|
f12597fc3f
|
Minor improvements to InternalsVisibleTo in the C# end.
|
9 years ago |
Dimitar Dobrev
|
21233a6622
|
Hid most internal details of the generated code from users.
|
9 years ago |
Dimitar Dobrev
|
70492c248f
|
Deleted two unused variables.
|
9 years ago |
Dimitar Dobrev
|
18cc5ed24a
|
Removed the manual padding of fields with type array.
This used to work around a bug in Mono which has now been fixed.
|
9 years ago |
Dimitar Dobrev
|
22bd02c849
|
Revert "Shortened the generated C# code for patching v-tables."
This reverts commit 2486d1d419 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
2486d1d419
|
Shortened the generated C# code for patching v-tables.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
a8815b84e2
|
Fixed the generated C# when a parameter is s typedef of a primitive pointer.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
2a3fed61b7
|
Improved the searching for the correct native lib to import.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
5b6a19a0c4
|
Handled more possible names for type maps when generating the mapped class itself.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
4cb5412915
|
Fixed a regression when an abstract implementation has a function from a secondary base.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
c16a0287f4
|
Fixed a regression when wrapping functions which implement secondary bases.
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
|
458f7ff25b
|
Deleted the non-working marshalling interface and the option for it.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
2a369a341d
|
Simplified the code for generating virtual C# calls.
Fixes https://github.com/mono/CppSharp/issues/706.
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
|
9cb7155679
|
Enforced the option for generating partial C# classes by removing it.
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 |
Joao Matos
|
098ff73e52
|
Rename type map database in binding context.
|
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
|
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
|
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
|
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
|
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
|
70f0851635
|
Ignored extern templates because they just forward to real specialisations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Joao Matos
|
a77bc2a91f
|
Separate parser options from driver options.
This will break API compatibility, you will have to update your options setup code.
|
9 years ago |
Joao Matos
|
4e48af9a4c
|
Remove the Driver dependency from the generators with a BindingContext.
|
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
|
5b52075d32
|
Fixed the generated usages of internals of template specialisations with dependent fields.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
a4dfeb94be
|
Moved the marking of supported template specialisations to a pass.
This allows custom passes to add other specialisations to support.
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
|
d419cb7156
|
Added all system fields to the internal layouts used in the C# generator.
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
|
fa086e086c
|
Ensured __int128, __uint128_t and __fp16 are ignored without crashing in the C# generator.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |