triton
86c651625c
Added a new block policy to only generate a block if the following is not empty.
12 years ago
triton
0f76dc0090
Added experimental destructors/finalizers support.
...
This has exposed some underlying bugs on some pieces of generated code, so I've put it under an option temporarily.
Fixes #148 .
12 years ago
João Matos
6d81e15be7
Merge pull request #152 from mydogisbox/updatebuildinstructions
...
Clarify build instructions and add link for git urls
12 years ago
Michael Ciccotti
eb2390f977
Clarify build instructions and add link for git urls
12 years ago
João Matos
4f084a09bf
Merge pull request #151 from ddobrev/field_props
...
Field properties
12 years ago
Dimitar Dobrev
9686187eb1
Wrapped properties of non-primitive value types as fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
b47fa98c94
Fixed a regression when marshalling arrays. Migrated the C++/CLI back-end to property usage.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
df4391a340
Added a test for unions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
aa5b66a4ab
Wrapped fields of structures with properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
0954ad0c7e
Fixed destructors by keeping track when they are non-trivial.
12 years ago
triton
382896ac91
Only use CppSharp.Parser in the new parser.
12 years ago
triton
22b6a3c11f
Use GenerateInternalFunctionCall when generating class constructors.
...
Fixes #149 .
12 years ago
triton
4cfd5c083e
Remove unnecessary NUnit attributes from the tests.
12 years ago
triton
9390feb330
Added new regex-based testing framework to test patterns against the generated code.
12 years ago
triton
1b7947538a
Move all the testing infrastructure to CppSharp.Generator.Tests.
12 years ago
triton
66ca3a742b
Fixed the VS build.
...
The version of Premake that's on the repository does not seem to like the token patterns.
12 years ago
Joao Matos
b19cd1042e
Updated build scripts with OS X fixes and added some building documentation.
12 years ago
triton
c41d195b88
Improved the exception message for marshaling failures.
12 years ago
triton
299b544893
Fixed C++ headers test fixture to work with new parser.
12 years ago
triton
798d253679
Re-generated the parser bindings.
12 years ago
triton
51bff527e3
Fixed native function mangling scheme.
12 years ago
triton
af3327a43d
Removed unused constructor from BaseClassSpecifier.
12 years ago
triton
bb961ec594
Added new ASTConverter class to interface between the parser bindings and existing AST structures.
...
This is still incomplete and stubbed out, further work to come.
12 years ago
triton
3fd94bf482
Added better support for destructors.
...
Also changed the native identifier mangling scheme to add some shorthand for the type of special method. This makes it simpler to read through the generated binding code.
Hopefully fixes #142 .
12 years ago
triton
b23c1f97f2
Fixed binding problem with string vector in NativeLibrary.
...
Re-generated the bindings.
12 years ago
triton
3a3f405fa9
Fixed wrong property setter type for some declarations.
...
Some operators, like operator[], actually need the getter return type.
12 years ago
triton
72aa09009d
Fixed a C# generation crash with set-only properties.
...
We cannot use the getter return type because it might not exist (setter-only property). Use the setter's first (and only) parameter return type instead.
12 years ago
triton
b58a99ebf3
Some fixes to the codebase to work correctly with the new parser bindings.
12 years ago
triton
8a54d30917
Fixed a bug in ASTRecord that made us infinitely recurse in some code.
...
Basically we should not visit a declaration if we are visiting from a type.
12 years ago
triton
786ea61a7b
Fixed the C++ parser to properly parser libraries.
12 years ago
triton
a40c043d19
Updated the C++ parsers to the latest Clang.
12 years ago
triton
7a7a2ab32a
Regenerated the C++ parser bindings.
12 years ago
triton
14b90d0a88
Fixed the ParserGen build script to use the SetupParser helper function.
12 years ago
triton
5412669fb4
Updated the MSVC build flags to disable some useless warnings in Clang.
12 years ago
triton
4f19f3b566
Fixed the parser build setup code to work with the new options.
12 years ago
triton
7f682e41c8
Added a new option to the build to choose between parsers.
12 years ago
triton
64e75fb0a6
Reworked the C++ parser structures to use some helper macros to ease the bindings.
12 years ago
triton
b05e54b148
Updated the LLVM build paths to the latest version.
12 years ago
João Matos
9c8e87f3f6
Merge pull request #145 from ddobrev/master
...
Improved the marshalling of arrays
12 years ago
Dimitar Dobrev
227e592c1a
Improved the marshalling of arrays.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
João Matos
0dc1e2c02c
Merge pull request #140 from ddobrev/master
...
Use properties in structs as well
12 years ago
Dimitar Dobrev
c853db5d34
Ignored operators which cannot be moved to a class because C# requires operators to be in their containing type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
52cf3702a6
Minor formatting fixes.
12 years ago
triton
df4fdeace8
Fixed access check logic for declarations to allow non-public declarations in C#.
...
Checking for the GenerateAbstractImpls option is flawed since they are not entirely related.
12 years ago
triton
4ccb60a553
Fixed FindOperator code to actually compile.
12 years ago
triton
d7f776cbba
Removed property accessors ignored checking code.
...
The logic here is just wrong... first even if one of the accessors is ignored that does not mean we should ignore the whole property. Additionally, the code logic to check if an accessor is ignored is faulty, we can not rely on the return value of the Visit functions, but check if the declaration itself was ignored.
12 years ago
triton
ec8d33d3cb
Fixed GetFunctionOverloads to work for class operators too.
12 years ago
triton
a4deeab18f
Fixed GetFunctionOverloads to work for all operator kinds.
...
This indirectly fixes the pass for ambiguity to process property indexers correctly.
12 years ago
triton
e5c85179d2
Ignore note diagnostics.
12 years ago
triton
a754b46438
Reworked function template parsing.
...
The previous version did not handle methods properly and lead to duplicate definitions since it did not check for existing templates with the same signature.
12 years ago