triton
9ffe62f2ef
Do not try to get parameter comment indexes for invalid params.
12 years ago
triton
352cb8b099
Cleaned up the ObjectOverridesPass pass.
12 years ago
triton
c490d25e74
Reworked property handling to check if each property getter/setter can be generated.
...
Fixes a bug where we tried to generate a setter for a const field.
12 years ago
triton
c4aaa2162a
Write new lines between method blocks.
12 years ago
triton
ba3e84a12c
Fixed handling of overriden methods.
12 years ago
triton
362fff872d
Reworked type map finding to take typedefs in account by desugaring the type one layer at a time and searching for that typemap.
12 years ago
João Matos
46ceff91a4
Merge pull request #33 from ddobrev/master
...
Stripped "lib" from the beginning of a library name for compatibility with the .NET (that is, on Windows) way of importing DLL-s.
12 years ago
Dimitar Dobrev
652c6e1011
Stripped "lib" from the beginning of a library name for compatibility with the .NET (that is, on Windows) way of importing DLL-s.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
João Matos
0463afe559
Merge pull request #28 from ddobrev/union
...
Support wrapping unions
12 years ago
triton
014e141bc4
Added missing vtable generation support code.
12 years ago
Dimitar Dobrev
58b2529df3
A simple prototype for supporting unions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
58013498a9
Remove unused files.
12 years ago
triton
8427252374
Updated the readme.
12 years ago
triton
c2f2cf5757
Move the getting started section to the beginning.
12 years ago
triton
e650d7decf
Desugar pointer types when checking for primitive types while marshaling.
12 years ago
triton
cc5a8656b8
Added marshaling of parameter declarations in native to managed marshaling of C# backend.
12 years ago
triton
ae0b136c73
Added helper properties to functions AST node to check the usage of the function.
12 years ago
triton
5c34245276
Throw NotImplementedException instead of silently returning false when not able to handle type printing of primitive types in C# backend.
12 years ago
triton
d59e46bbc3
Removed useless code.
12 years ago
triton
6130c896fc
Extracted internal parameter gathering in its own method.
12 years ago
triton
eb909c6fba
Added an "argument prefix" generator to the C# context so typemaps can add prefixes before arguments are generated.
12 years ago
triton
beead40dec
Fixed handling of field properties in C# backend.
12 years ago
triton
d4b4ec6793
Minor code cleanups.
12 years ago
triton
d9a23baaf4
Fixed type printing of hidden structure parameters in C#.
12 years ago
triton
e5ba3ac401
Reworked C# type printing and marshaling to keep the root full type in the respective contexts.
...
This allows us to access the root type in the type maps to do proper handling of pointers. It's a bit of an hacky approach and it will be improved once there is a better more general type matching framework.
12 years ago
triton
ee3641338c
Rework class fields generation in the C# backend to be simpler and behave correctly under more situations.
12 years ago
triton
6bc1215ef3
Cleaned up using declarations.
12 years ago
triton
cf040d9c2a
Use a different generic type variable name that does not conflict with the parent one.
12 years ago
triton
3e505737d7
Rework the handling for functions that need hidden structure parameters.
...
The main changes are:
- The original return type is now kept as the type of the generated parameter
- The return type of the function is set to void to represent what is actually happening.
This also fixes a bunch of bugs related due to using the wrong return type in some places.
12 years ago
triton
e0e507b938
Implemented type printing support for PrimitiveType.IntPtr.
12 years ago
triton
e05ede4b35
Added a stub for std::vector creation.
12 years ago
triton
5c982b5a8f
Better stubs (that actually compile) for std::wstring in C# backend.
12 years ago
triton
0c51ea6862
When generating tests glue, wrap the declaration in a namespace with the library name, this makes sure there are no conflicts between native and managed types.
12 years ago
triton
081ca5e6c1
Return the result of VisitDeclaration in TypeIgnoreChecker.VisitClassDecl.
12 years ago
triton
ebde1312c2
Run the CheckAbiParameters pass after CheckOperatorsOverloadsPass since the latter can change the signature of the methods which can affect the correctness of the first pass.
12 years ago
triton
608d4c19f4
Added config variable to the the build.
12 years ago
triton
354f19f46e
Fixed VS lookup to use the first valid VS version found. This makes sure we use the oldest VS version since Clang will not yet work fully with newer (2013+) MSVC headers.
12 years ago
triton
6814684072
Added virtual function overriding support to the C# backend.
12 years ago
triton
e0903d8fac
Added virtual table tests.
12 years ago
triton
d9eb2f5b3e
Renamed Hello tests to Basic.
12 years ago
triton
ef69a28bed
Improved VS paths lookup checking.
...
This fixes a bug that happened when you had multiple versions of VS installed and your highest version did not provide the native development SDK.
12 years ago
João Matos
b80252139f
Merge pull request #25 from ddobrev/qtcore_hacks
...
Qtcore hacks
12 years ago
João Matos
0eb23a5f16
Merge pull request #27 from ddobrev/master
...
Fixed finding MinGW symbols; checked the desugared type when visiting pointer types.
12 years ago
Dimitar Dobrev
ef1828d710
Checked the desugared type when visiting pointer types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
90db6eb95d
Added an option for the used ABI to the C++ Parser class.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
31fe7760ad
Added 3 hacks so that QtCore reaches the end of code generation:
...
1. If an expression of an enum item is null, count it as non-hex;
2. Do not throw a NotSupported exception when a fixed array of an non-primitive type is encountered;
3. Provide some seemingly correct implementation for CppTypePrinter.VisitTemplateParameterSubstitutionType.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
João Matos
ae719c822b
Merge pull request #24 from ddobrev/master
...
Generation of function pointers
12 years ago
Dimitar Dobrev
7f8494ca94
Added generation of function pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d526dda895
Replaced a range-based for to ensure VS C++ 2010 compliance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d213c8c3fc
Changed the target .NET to 4.0 because the code does not make use of 4.5 features and this way it can be compiled with VS 2010.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago