Dimitar Dobrev
bc078d8a15
Removed the limitation about class templates when checking v-table entries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
a1cd57667b
Ignored the unused methods in system class templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
f7e5d9cc0e
Added std::char_traits as a supported type because std::string needs it.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
8fe6e346c5
Ignored templates specialised with types external to the template itself.
...
Supporting such external types is quite difficult so it will be done later on.
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
Dimitar Dobrev
8646d3e077
Obsoleted the direct settings for wrapped libraries in the options.
...
Modules should be used instead.
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
3b6cfd70f5
Added CheckIgnoredDeclsPass.CheckDecayedTypes option.
...
This is used for Embeddinator-4000 and could be removed once we improve our support for custom types.
9 years ago
Joao Matos
8b2b260d16
Fixed visitor regression when visiting declaration contexts.
9 years ago
Joao Matos
b7b40ecedc
Move type map setup to driver code.
9 years ago
Joao Matos
eed3d09d0b
Improve error handling when searching for type maps via reflection.
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
Joao Matos
864a81bf6d
Extract enum items generation into its own method.
9 years ago
Joao Matos
fa565a1e09
Factor common declaration and comment handling functionality to base code generator.
9 years ago
Dimitar Dobrev
ab32637e14
Fixed the generation of sequential layouts to handle unions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
73321c2e10
Fixed a crash at memory allocation introduced by an unverified pull request.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Alin Gherman
6e42ef36a6
Add the GenerateSequentialLayout option
...
Signed-off-by: Alin Gherman <Alin Gherman>
9 years ago
Alin Gherman
66bbc388e1
Let the marshal determine the size of the structure
...
Signed-off-by: Alin Gherman <Alin Gherman>
9 years ago
Dimitar Dobrev
cbb64c4c62
Fixed a regression when generating imports of libraries with '.' in the name on Windows.
...
P/Invoke in .NET (on Windows) can only import libraries with '.' in the name if they are explicitly suffixed (have ".dll" at the end).
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
3bfb24228b
Remove "Ordinary" prefix from BCPL and C comment kinds.
9 years ago
Joao Matos
9a4c0bae82
Renamed RawCommentKind to CommentKind.
9 years ago