triton
523e8d7989
Fixed issue with signed enum constants with tests.
13 years ago
Dimitar Dobrev
2063aa2216
Fixed the filling of missing operators to account for operator overloads.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 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.
13 years ago
Dimitar Dobrev
58b2529df3
A simple prototype for supporting unions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
triton
ae0b136c73
Added helper properties to functions AST node to check the usage of the function.
13 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.
13 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>
13 years ago
Dimitar Dobrev
7f8494ca94
Added generation of function pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
triton
2b3a8f79e4
Fixed the documentation comments support in the generators to use the new comment APIs.
13 years ago
triton
751e0da4e3
Keep the original pointer that originated the AST declaration node and check if we have already processed the method in WalkMethodCXX (if so, just return the already existing declaration).
...
We depend on this to get the right method instance when walking through the vtable methods.
13 years ago
triton
752cfa4869
Added IsDynamic and IsPolymorphic data to classes.
13 years ago
triton
8ee674697d
Add dummy GetHashCode implementations.
13 years ago
marcos henrich
9ba1707616
Added Equality operator to AST Types. This was needed because GetterSetterToPropertyPass has to match a getter return type with a setter parameter type.
13 years ago
marcos henrich
c02b7bf3a8
Added Field to Property Declaration so now we can generate the property from a field instead of get or set methods.
13 years ago
marcos henrich
fcb93169a2
Added OriginalNamespace to Declaration and now QualifiedOriginalName uses it.
13 years ago
triton
d9a52a030d
Added missing source location type.
13 years ago
triton
dbd9fbc9d5
Added v[f]table parsing support.
13 years ago
triton
341aa85a5c
Added qualified type constructor.
13 years ago
João Matos
9a4b1d4034
Added virtual keyword to VisitDecayedType for consistency.
13 years ago
triton
b2cabe2551
Remove unused field.
13 years ago
triton
cd08295499
Use a map to keep track of anonymous declarations else we cannot refer to them later when needed.
...
This could lead to self-referencing problems when parsing (and stack overflows!).
13 years ago
triton
a6fa8af39d
Added full support for C++ documentation comments to the AST and parser.
13 years ago
marcos henrich
8e34a026b9
Changed property Declaration.Name to virtual. Now ClassTemplate shares Name with its TemplatedClass.
13 years ago
marcos henrich
2ea69f1a67
Added return null to method FindClass when parameter class name is null or empty
13 years ago
triton
acac3fc00d
Re-work handling of enum constants fixing signedness and formatting issues.
13 years ago
triton
83b7bd1954
Add two new properties IsOverride and IsProxy to methods.
...
These can be useful to provide "fake" declarations in the AST whose implementation is written by the user later with a MethodBody block. Since this is so useful for custom bindings a simplified abstraction for this will be added in the future.
13 years ago
triton
68ddfbdd6f
Move the AST project to the CppSharp.AST namespace.
13 years ago
triton
3f664784c9
Added support for CIL types to the type system.
13 years ago
triton
c488dcbfde
Prefix all the libraries and project names with CppSharp.
13 years ago