Dimitar Dobrev
6bff560adc
Removed the usages of named pointers when patching v-tables in C#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
e0c397d709
Collected internal functions of class template specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 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>
10 years ago
Dimitar Dobrev
3ccb5361df
Shortened the generated C# by not suffixing attributes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 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>
10 years ago
Dimitar Dobrev
935c580465
Deleted a useless weak reference thus simplifying TranslationUnit.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
c7040fc242
Fixed a crash when generating C# for empty enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
96aa703b60
Fixed the printing of errors during compilation of native symbols.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
f809dbf2d4
Removed redundant paragraphs and spaces when printing C# XML comments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 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>
10 years ago
Dimitar Dobrev
dbfd93d941
Fixed the comment kind of the parser generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 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>
10 years ago
Joao Matos
c16d25f1b0
Fixed C# type printer to go through visit method when printing declarations.
10 years ago
Joao Matos
5f6561eaf3
Deal with null modules when type priting declarations in C#.
10 years ago
Joao Matos
98858a73ee
Implement GetPrimitiveTypeWidth for signed/unsigned chars.
10 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.
10 years ago
Joao Matos
f8725509fb
Print null primitive type printing for non-C++ based languages.
10 years ago
Joao Matos
44c2be4375
Abstract generated method override check into AST extensions.
10 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.
10 years ago
Joao Matos
a6c3410b09
Fixed C typedef type printing regression.
...
This one was introduced by 8fa4a1082e and broke Embeddinator.
10 years ago
Joao Matos
8b2b260d16
Fixed visitor regression when visiting declaration contexts.
10 years ago
Joao Matos
b7b40ecedc
Move type map setup to driver code.
10 years ago
Joao Matos
eed3d09d0b
Improve error handling when searching for type maps via reflection.
10 years ago
Joao Matos
f70d1d0165
Unify class method specifier code generation.
10 years ago
Joao Matos
157da89ed5
Unify class specifier code generation.
10 years ago
Joao Matos
591ab6fd57
Refactor C# class prologue generation.
10 years ago
Joao Matos
1e6bf9b7fd
Simplify code.
10 years ago
Joao Matos
d4b6476569
Unify block kinds between generators.
10 years ago
Joao Matos
9a42bbecf5
Added CodeGenerator.AccessIdentifier instance method.
10 years ago
Joao Matos
8203515c5b
Move C# code generation helpers to base code generator.
10 years ago
Joao Matos
a5728225d8
Do not use blocks for enum items as NewLineKind.Never is buggy.
10 years ago
Joao Matos
76d1145ed4
Use object initializer syntax instead of explicit adds.
10 years ago
Dimitar Dobrev
02b845e6b0
Updated a test to properly check the new printing of comments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
6cb7ce4a3e
Fixed enum generation regression.
10 years ago
Joao Matos
b1621d660c
Add the enum as the enum item namespace when converting the parser AST.
10 years ago
Joao Matos
c8d46f179f
Only generate inline summary if the comment exists.
10 years ago
Joao Matos
2d10968f89
Move safe and generated identifier generation to base code generator.
10 years ago
Joao Matos
f90c019178
Unify enumeration item generation between CLI and C# generators.
10 years ago
Joao Matos
865f659d4f
Generate summary comments using comment generation methods.
10 years ago
Joao Matos
123c45129e
Generate documentation blocks inside CodeGenerator.GenerateMultiLineComment.
10 years ago
Joao Matos
8f5831d37e
Move source code overload.
10 years ago
Joao Matos
77f809bce2
Unify common CLI and C# comments and documentation generation.
10 years ago
Joao Matos
864a81bf6d
Extract enum items generation into its own method.
10 years ago
Joao Matos
fa565a1e09
Factor common declaration and comment handling functionality to base code generator.
10 years ago
Dimitar Dobrev
ab32637e14
Fixed the generation of sequential layouts to handle unions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
af6e2ec194
Regenerated the parser bindings to use the new dynamic allocation of memory in C#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 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>
10 years ago
Alin Gherman
6e42ef36a6
Add the GenerateSequentialLayout option
...
Signed-off-by: Alin Gherman <Alin Gherman>
10 years ago
Alin Gherman
66bbc388e1
Let the marshal determine the size of the structure
...
Signed-off-by: Alin Gherman <Alin Gherman>
10 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>
10 years ago