Joao Matos
|
40bfd65135
|
Revert "Extract current module as read-only property to CodeGenerator.Module."
This reverts commit d340de3afa.
|
9 years ago |
Joao Matos
|
2ad1f8b001
|
Extract file preamble generation into CodeGenerator.
|
9 years ago |
Joao Matos
|
d340de3afa
|
Extract current module as read-only property to CodeGenerator.Module.
|
9 years ago |
Joao Matos
|
dc998d391e
|
Minor code formatting changes.
|
9 years ago |
Dimitar Dobrev
|
7ad1af0cac
|
Removed redundant qualification of types in the generated C#.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Joao Matos
|
0d39c03bc9
|
Use the type printer from CSharpGenerator in CSharpSources.
The code generator depends on the it being the same due to side effects from type printer context handling.
|
9 years ago |
Joao Matos
|
a298f5c8b5
|
Extract CSharpTypePrinter.GetPrimitiveTypeWidth to re-use it in Java type printer.
|
9 years ago |
Joao Matos
|
9ea9a302e4
|
Fixed CSharpTypePrinter.GetIntString to work without ParserTargetInfo available.
|
9 years ago |
Joao Matos
|
55c26d2fe5
|
Setup type and expression printer in C# sources generator.
|
9 years ago |
Dimitar Dobrev
|
cf7813d8d6
|
Moved the C# generation of internal names of template specialisations to the C# type printer.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
6353b4b2a5
|
Simplified the construction of names by using stacks.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Joao Matos
|
035c3707e5
|
Rename template variable.
|
9 years ago |
Joao Matos
|
e11314143a
|
Global qualify ConcurrentDictionary references in generated code.
Fixes issue #747.
|
9 years ago |
Joao Matos
|
b49389e409
|
Rename CodeTemplate to CodeGenerator.
|
9 years ago |
Dimitar Dobrev
|
87a75e3acd
|
Changed the generation of C++ for inlines not to rely on -fkeep-inline-functions.
|
9 years ago |
Dimitar Dobrev
|
930dd85f15
|
Ensured delegates are generated within the main name-space and reused them more.
|
9 years ago |
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
|
c0d4aa3979
|
Modified templates to be visitors.
|
9 years ago |
Joao Matos
|
70e4d3b3a4
|
Added a new overload to Template that takes a single translation unit.
|
9 years ago |
Joao Matos
|
f88ea66a88
|
Implement CSharpTypePrinter.VisitVectorType.
Fixes and closes issue #741.
|
9 years ago |
Mark Thompson
|
46d3e932ef
|
Made sure CLI comment block text is commented out.
|
9 years ago |
Joao Matos
|
c42bd6eeaa
|
Rename the OutputDebug option to GenerateDebugOutput and document it.
|
9 years ago |
Joao Matos
|
fbf43067d7
|
Refactor the diagnostics system.
|
9 years ago |
Joao Matos
|
7a5c34e0bc
|
Refactor the block-based text generator into own class.
|
9 years ago |
Dimitar Dobrev
|
8d322ad53e
|
Properly handled signed chars in the AST.
|
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
|
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 |