Joao Matos
|
38cb8e1dbe
|
Overhaul type printer and marshal contexts design and implementation.
The goal is to simplify the design and get rid of useless type printer contexts inside type printers.
|
8 years ago |
Dimitar Dobrev
|
9dbcc3cc2c
|
Completed the support for dependent type names.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Gilad Levi
|
5302f5870c
|
Use fixed c# statement when accessing fixed struct members
|
8 years ago |
Victor Peter Rouven Müller
|
0a61baa4b6
|
Completely ignore incomplete classes in C++/CLI (#823)
Signed-off-by: realvictorprm <mueller.vpr@gmail.com>
|
8 years ago |
Dimitar Dobrev
|
974f8fab20
|
Replaced the useless desugared dependent name type with its qualifier.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
5f6c432f19
|
Removed all warnings in the C# part.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
realvictorprm
|
9d89764965
|
Wrapped injected classes in order to ease binding lists of redeclarations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
42facd9df1
|
Fixed the generation of parameters in the C# printer.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
52788fd0d6
|
Removed a redundant parameter.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
realvictorprm
|
f44c578be8
|
Disabled generation of disposable for incomplete structs/classes (#799)
Fixes https://github.com/mono/CppSharp/issues/798.
|
9 years ago |
realvictorprm
|
938ccf686b
|
Incomplete classes and structs are now generated for C#. (#797)
This feature is NOT coming for C++/CLI !
|
9 years ago |
Dimitar Dobrev
|
38f247b1db
|
Merged the libraries for inlines and templates into one.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
realvictorprm
|
4307fb3303
|
Fixed ArgumentException due to nullptr arguments in Marshaling native function pointers. (#794)
|
9 years ago |
Dimitar Dobrev
|
e2a2e8df4b
|
Fixed the generated C# for an array of const char*.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
fe85a33ba1
|
Restored the renaming of enums.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
10ac0a4865
|
Fixed the getting of the template a specialised function is instantiated from.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
254e51145f
|
Moved the generation of C# bodies to their own methods.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
a1fa5bd93f
|
Changed the generation of patched v-tables to also work for class templates.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
9b7a372a3c
|
Sped up the generated C# by using sizeof instead of Marshal.SizeOf.
They are equivalent in our case because we only use blittable types.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
6bff560adc
|
Removed the usages of named pointers when patching v-tables in C#.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
e0c397d709
|
Collected internal functions of class template specialisations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
fed72f5910
|
Ensured the C# gen correctly imports a native library with no target triple.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
3ccb5361df
|
Shortened the generated C# by not suffixing attributes.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
f9fdacb512
|
Removed a null check for the module of a unit.
Each unit has a module, if it doesn't, it's a bug.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
c7040fc242
|
Fixed a crash when generating C# for empty enums.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
f809dbf2d4
|
Removed redundant paragraphs and spaces when printing C# XML comments.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
ec6ddb62cf
|
Restored the new line after the last generated item of an enum.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Joao Matos
|
c16d25f1b0
|
Fixed C# type printer to go through visit method when printing declarations.
|
9 years ago |
Joao Matos
|
5f6561eaf3
|
Deal with null modules when type priting declarations in C#.
|
9 years ago |
Joao Matos
|
98858a73ee
|
Implement GetPrimitiveTypeWidth for signed/unsigned chars.
|
9 years ago |
Joao Matos
|
4a653b00bd
|
Added string as a primitive type to the type system.
This will make it less hacky to represent proper strings in our AST model.
|
9 years ago |
Joao Matos
|
44c2be4375
|
Abstract generated method override check into AST extensions.
|
9 years ago |
Joao Matos
|
8b2b260d16
|
Fixed visitor regression when visiting declaration contexts.
|
9 years ago |
Joao Matos
|
f70d1d0165
|
Unify class method specifier code generation.
|
9 years ago |
Joao Matos
|
157da89ed5
|
Unify class specifier code generation.
|
9 years ago |
Joao Matos
|
591ab6fd57
|
Refactor C# class prologue generation.
|
9 years ago |
Joao Matos
|
1e6bf9b7fd
|
Simplify code.
|
9 years ago |
Joao Matos
|
d4b6476569
|
Unify block kinds between generators.
|
9 years ago |
Joao Matos
|
9a42bbecf5
|
Added CodeGenerator.AccessIdentifier instance method.
|
9 years ago |
Joao Matos
|
8203515c5b
|
Move C# code generation helpers to base code generator.
|
9 years ago |
Joao Matos
|
a5728225d8
|
Do not use blocks for enum items as NewLineKind.Never is buggy.
|
9 years ago |
Joao Matos
|
76d1145ed4
|
Use object initializer syntax instead of explicit adds.
|
9 years ago |
Joao Matos
|
6cb7ce4a3e
|
Fixed enum generation regression.
|
9 years ago |
Joao Matos
|
c8d46f179f
|
Only generate inline summary if the comment exists.
|
9 years ago |
Joao Matos
|
2d10968f89
|
Move safe and generated identifier generation to base code generator.
|
9 years ago |
Joao Matos
|
f90c019178
|
Unify enumeration item generation between CLI and C# generators.
|
9 years ago |
Joao Matos
|
865f659d4f
|
Generate summary comments using comment generation methods.
|
9 years ago |
Joao Matos
|
123c45129e
|
Generate documentation blocks inside CodeGenerator.GenerateMultiLineComment.
|
9 years ago |
Joao Matos
|
8f5831d37e
|
Move source code overload.
|
9 years ago |
Joao Matos
|
77f809bce2
|
Unify common CLI and C# comments and documentation generation.
|
9 years ago |