Dimitar Dobrev
66363787b4
Stubbed support for pack expansions to avoid crashes in certain cases such as variadic templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
11ef53df10
Generated all internals of all (including ignored) classes and all of their fields in order to properly store objects in managed code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
0a102d8fbc
Added better wrapping for static classes.
12 years ago
Øystein Krog
c8b69fd601
Add Expression property in Field, allows a field to have a "value"
12 years ago
Øystein Krog
240d2db53d
Add new IExpressionPrinter interface, with CSharpExpressionPrinter implementation
12 years ago
Dimitar Dobrev
e08f2083f8
Worked around a bug of some incomplete classes having empty complete declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
59e0fb9ede
Generated correct v-tables when using the Itanium ABI.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
3209f1a398
Fixed a possible crash in the finding of classes by name.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d56affd117
Fixed the finding of classes to only return complete declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
cfeed2619a
Extended type maps with the ability to insert custom code instead of a copy ctor invocation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
76cf4e68d8
Simplify declaration ignores by removing IsProcessed and fixing ExplicitlyIgnored to be recursive like the others ignore properties.
12 years ago
Dimitar Dobrev
e1a12027ec
Wrapped value typed fields with properties in order to have changes reflected to the native pointer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
819df6a2a2
Fixed CLI generation with references to pointers types (added a test).
12 years ago
Joao Matos
3c27e0fad6
Improved generation of enumerations from macros.
...
We now keep track if a certain macro has already been generated in an enum and skip it in future calls to GenerateEnumFromMacros.
12 years ago
Joao Matos
19376cc2c3
Added support for keeping track of extern "C" contexts in classes/structs.
12 years ago
triton
7ceea91333
Fixed members initialization in TranslationUnit constructors.
12 years ago
triton
79816a375e
Remove useless constructor.
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
triton
0954ad0c7e
Fixed destructors by keeping track when they are non-trivial.
12 years ago
Joao Matos
b19cd1042e
Updated build scripts with OS X fixes and added some building documentation.
12 years ago
triton
af3327a43d
Removed unused constructor from BaseClassSpecifier.
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
4ccb60a553
Fixed FindOperator code to actually compile.
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
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
triton
61dc4960f8
Added explicit constraint support to the experimental function templates generation.
12 years ago
triton
2372b49e73
Fixed template names by getting the name from the underlying templated declaration.
12 years ago
triton
f2e831ebe2
Minor formatting fixes.
12 years ago
triton
a5362af730
Improved visited checking in the ASTVisitor.
...
Since this is a pretty common pattern, this factors the visited checking of declarations inside the
VisitDeclaration overload. Because of this, we need to make sure we call VisitDeclaration is called (only once) instead of AlreadyVisited.
12 years ago
triton
c979342ea6
Moved the TranslationUnit property from DeclarationContext to Declaration.
12 years ago
triton
7b951c1506
Remove unused constructors.
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
0c7a463740
Extended the searching for classes to check nested classes as well.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
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
3cf6c7b3f1
Added a test for the pass that moves functions to a class.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
1473488289
Added a pass to move functions to an appropriate existing class if possible.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
71d9da0733
Used LINQ to simplify the searching.
...
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
4e9000d591
Changed AST visitor behavior to not visit the regular class of class template declarations.
12 years ago
triton
9fb7dc57be
Removed unused constructor.
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
4d91312e87
Reworked type parsing with dependent information.
12 years ago
triton
05877ddcb5
Converted enum items to be declarations in the AST.
12 years ago
triton
f1755f6d46
Reworked template parsing with support for specializations and partial specializations.
...
Fixes #121 .
12 years ago
triton
42cca516b3
Added better parsing of 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
c586529398
Added a property to the event to contain the declaration it wraps.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago