Joao Matos
73e11e7c32
Added a new field acessor synth kind.
8 years ago
Joao Matos
d0e1fe5810
Improved IsSynthetized check to handle property setters.
8 years ago
Joao Matos
f9e0ec52de
Remove extra new line.
8 years ago
Joao Matos
39749ee0b7
Improve get base method and property methods to work with generalized declarations.
8 years ago
Joao Matos
fbd67eb6f8
Added AssociatedDeclaration to Declaration copy constructor.
8 years ago
Joao Matos
426572bc8a
Generalized method fields to declaration associations.
8 years ago
Joao Matos
ecbe317b09
Improved debugging display for declarations.
8 years ago
Joao Matos
f334e447be
Added optional visiting of property accessors.
8 years ago
Dimitar Dobrev
5ca93458a2
Fixed the generation of internals for template specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
b5c17d98bd
Verified that unused STD types are removed.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
5dc239a9ef
Improve debugging display for Type type.
8 years ago
Dimitar Dobrev
54ad95bb5c
Simplified the sorting of declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
ce71a3b8a8
Added C# marshalling of parameters of type array of primitives.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
d4d6354621
Removed unused internals from the generated C#.
...
Fixes https://github.com/mono/CppSharp/issues/936 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
a158577241
[ast] QualifiedType in ITypedDecl is now a setter.
8 years ago
Dimitar Dobrev
d1461fd101
Fixed the code style of the C++ printer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
046c428852
Fixed the binding of multiple identical function pointers with a calling convention.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
16aa74a20b
Changed an event to a context with a read-only list of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Mohit Mohta
8a2e813445
Merged Delegate Pass and pass for Anonymous Delegates and added the following improvements alongwith.
...
1. Got rid of Anonymous Names.
2. Merged the common code for Delegate Generation.
3. The delegate pass also works for C++/CLI now.
4. Fixed the calling conventions of delegates for both, C++/CLI and C#.
5. Ensures that if a delegate is used for a virtual as well as something else, it finally ends up as public.
6. Fixed the code generation when the return type of a method is a function pointer that has been used somewhere else as well.
7. Added Access and Calling convention to the delegate definition.
The only thing left is to get rid of the hack used, i.e move the code in VisitFunctionDecl to VisitParametersDecl. Somehow, it's not working right now.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
9c26b7e648
Fixed the setting of name-spaces of parameters to actually work.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
649df6e5e7
Made all lists of parameters read-only.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
f33b162f6f
Ignored inlined name-spaces in the C# gen only.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
09e568d0b3
[generator] Improved processing for C++ inline namespaces.
8 years ago
Joao Matos
e775e8991e
Revert "Removed an unused field, literally. :)"
...
This reverts commit 3b863cc6ff
.
8 years ago
Dimitar Dobrev
3b863cc6ff
Removed an unused field, literally. :)
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
b955068ad1
Fixed the type of a function to be its original return type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
e0816d9dc6
Fixed the generated C# for increment and decrement operators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
9294ea0978
Ignored defaulted functions when generating C++ for symbols.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
cd548059e9
Added support for class templates which do not specialise types external to them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Kimon Topouzidis
8d518fba22
Set the name-space of constructed parameters to their function. ( #909 )
8 years ago
Dimitar Dobrev
b71a37d154
Simplified and stabilised the getting of the base of a method.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
4a0167e10c
Made whether a method is an override adjustable.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
f9a8798b8f
Fixed the generated C# for setters with a reference to a primitive type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
2f2f13f352
Deleted an unused method.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
d3e8cc51d5
Further simplified the getting of base methods from only the primary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
e0367c5601
Simplified the getting of base methods from only the primary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
0c22c4deb7
Simplified the generation of C# for base calls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
0ecb7fc156
Changed the getting of a root base method to use the list of overrides.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
845bf5b7f1
Based if a method is an override exclusively on if it has any overridden methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
e2e4109631
Added to a method a list of its overridden methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
e62651a954
Fixed the getting of base methods to include ignored ones.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
081b111dc7
Fixed the generated C# when an external specialisation with a dependent field is used as a field.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Kimon Topouzidis
3760d4d550
Made Function a DeclarationContext to match the Clang AST. ( #896 )
8 years ago
Dimitar Dobrev
40e6abbd22
Deleted pointless indexation of overloads.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
351bae6bb6
Removed redundant indexation from internal functions in C#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
9c0f80f69d
Bound the supported specialisations with generic syntax in the generated C#. ( #880 )
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
5caa12375c
Add Decimal primitive types to the AST type model.
8 years ago
Joao Matos
86a2a171cc
Improved Class.GetOverloads method to work with functions as generalized declarations.
8 years ago
Kimon Topouzidis
1298634804
Extended declarations to store their packing. ( #871 )
8 years ago
Dimitar Dobrev
a6b25c1941
Fixed the visiting of class template specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago