triton
a1c4885610
Fixed the output of forward references in CLI headers.
...
We now use a sorted set to prevent duplicated references and have a stable ordering.
12 years ago
triton
ede3149a41
Reworked the CLI type references functionality.
12 years ago
triton
872cd1c812
Add the method to the marshaling context when handling value type ctors.
...
This fixes a marshaling regression with extra erroneous "&" which was caused by the fix done a couple days ago.
12 years ago
triton
4289633dcf
Fixed CLI newline behavior for some declarations.
12 years ago
triton
e835d5086a
Remove useless code.
12 years ago
triton
62f81e16f1
Reworked pointer marshaling in C# and CLI.
...
We are now more consistent between backends, specifically we need to make sure
to avoid directly visiting the desugared type since we might lose type maps when
handling typedefs.
12 years ago
triton
b5e947881b
Fixed the generation of 'ToInternal' to check for null only fields of a ref type.
...
Part of the patch by @ddobrev .
12 years ago
Dimitar Dobrev
d583b489a3
Fixed the returning of empty values when the returned type is a structure.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
c5f2acacc6
Fixed the wrapping of instance operators to account for fixed instances.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
06b83ee3fc
Changed the generation of method bodies to avoid duplication of local variables when a fixed instance is required.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
b808117566
Cleaned up the default diagnostics output to be more concise.
12 years ago
triton
6402c3ca55
Added support for C++ attributed types to the parser, AST ,generators and tests.
12 years ago
Dimitar Dobrev
6dcb8fa593
Added the option to have attributes generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
f6e0453744
Revert "Fixed function types to provide qualified argument types in the AST."
...
This reverts commit 70122b0568
.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
1133b6c935
Fixed delegate generation problem.
12 years ago
triton
c8b0f515b3
Fixed parsing and marshaling of dependent declarations.
12 years ago
triton
70122b0568
Fixed function types to provide qualified argument types in the AST.
...
We just parsed the function type "parameters" which does not even make sense from a type system point of view but it's useful in some instances in the generator when function types are "mappable" to function declarations.
12 years ago
triton
7520c25d30
Normalized line endings of CSharpTypePrinter.cs
12 years ago
triton
e059f5e099
Fixed parsing of enum items to use normal declaration comments.
12 years ago
triton
fed9031775
Fixed support for C++ conversion operators.
12 years ago
triton
4a29db6bcd
Revert "Fixed bug caused by a type in the new parser."
...
This reverts commit f1f6c2e5e9
.
12 years ago
triton
f1f6c2e5e9
Fixed bug caused by a type in the new parser.
12 years ago
Dimitar Dobrev
7dcc4e1506
Checked for type maps of tag types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
cc4275f7a9
Generated comments, if any, for properties. Fixed a possible crash with the multiple inheritance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
a24bc6c805
Removed comments from internal functions. Changed their access from public to internal.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
997f278aaa
Added support for multi-line summaries in the XML code comments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d0f0c7e9e2
Added generation of detailed code comments ("<remarks/>").
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
8a502835f7
Added a check for 'null' before getting the native pointer of a wrapped object.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
7ecafc9858
Prevented renaming of methods when a base class has a property of the same name. Made the delegates used in abstract implementations prefixed with an underscore and internal.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
0e37a62726
Changed the check whether to invoke a property in the v-tables to work around the non-shared methods in v-tables. Set the function signature to an empty string rather that null by default.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
c7612248fd
Added method signatures debugging output to vtable delegates.
12 years ago
triton
000b45cf2b
Fixed duplicated vtable delegate generation by changing the way the unique name is generated.
...
Previously, we could get duplicated names due to different named methods (setFoo and setFoo1) having overloads (and names for them would be setFoo11 [id: 11] and setFoo11 [id: 1]).
12 years ago
triton
23fc25faca
Fixed generation of vtable components.
...
Only generate delegates for each unique vtable component entry and skip vtable hook registration for duplicated entries.
12 years ago
triton
0801e98823
Fixed generation of C# vtable interop code. Update the vtable generation index in each iteration.
12 years ago
Dimitar Dobrev
9255ac4144
Added the method to its block to maintain the connection between them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
2b53801510
Prefixed "System.Runtime.InteropServices" with "global::" to prevent name collision.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
9deaa403bc
Fixed a crash when setting up v-tables.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
56385a453f
Fixed the generation of v-table delegates to take into account indirect return types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Stephen Kennedy
0957843c4d
Unify debugging output
...
Route all debugging output through Driver.Diagnostics
12 years ago
triton
b51687a2f6
Fixed vtable setup call generation when there are no valid methods in the vtable.
12 years ago
triton
44ce759a33
V-table method delegates need to take into account same-named overloads.
...
Fixes #88 .
12 years ago
Stephen Kennedy
972e08ba67
We only handle functions and fields in property setters
12 years ago
Stephen Kennedy
0c7a72c400
Hack for CLI version
12 years ago
Stephen Kennedy
00bf3714ca
Hack to silently ignore non-class base class (e.g. templates etc)
12 years ago
Stephen Kennedy
84f0942a76
Avoid mismatched braces when the decl is neither a Function nor a Field
12 years ago
triton
565d73a4d0
Fixed CLI type references to work correctly with library namespaces.
12 years ago
triton
71d9ba5761
Added NativeDataSize property to the ICppMarshal interface.
12 years ago
triton
c602f3b331
Formatting fixes.
12 years ago
triton
3e489c9a06
Updated the generators and tests for new class names.
12 years ago
triton
be0f73f471
Moved Diagnostics class to new core project.
12 years ago