Dimitar Dobrev
23e7dec1f5
Made the generation of templates optional and off by default.
...
Templates are still experimental and we don't have automatic compilation of C++ symbols so it's risky to always have them enabled.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ff1abf360f
Ensured all fields in class layouts are checked for specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
8bb567c49e
Fixed missing symbols for templates when there are no inlined functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ea90ce745a
Removed publicly unused template specialisations from the generated symbols.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
075b2d5078
Fixed the generated C# for comparison operators in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e078968cf2
Fixed the generated C# for indexers in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
38ed4ab472
Fixed the generated C# when a template is used with different type arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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>
9 years ago
Dimitar Dobrev
225cd5c49b
Simplified the printing of templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2af1af6404
Extracted the native printing in C# to separate methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2f0956249d
Deleted redundant code when printing and marshalling in C#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
47633db649
Moved the handling of indexers to the C# marshaller.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
787798f2bd
Passed the qualified return type when calling internal functions in C#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Kimon Topouzidis
8d518fba22
Set the name-space of constructed parameters to their function. ( #909 )
9 years ago
Dimitar Dobrev
46b40bbe05
Fixed the generated C# for a case of a typedef of a function pointer.
...
Typedefs of function pointers can be written in two ways:
typedef void (*typedefedFuncPtr)();
int f(typedefedFuncPtr fptr);
typedef void (typedefedFuncPtr)();
int f(typedefedFuncPtr* fptr);
Up until now we only supported the former.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Mohit Mohta
db522c0295
Fixed the C# generation for functions with typedefed function pointers as params ( #903 )
9 years ago
Kimon Topouzidis
b4735df891
Included the comments plain text to the remarks block. ( #907 )
9 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>
9 years ago
Kimon Topouzidis
db164c0c0b
Ensured a single element for remarks in the generated XML documentation comments. ( #904 )
9 years ago
Dimitar Dobrev
d2426a7db6
Fixed the renaming of methods in forwarded types from secondary bases in dependencies.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
8b9c3ab89f
Fixed a regression when a public virtual is overridden as private.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e0367c5601
Simplified the getting of base methods from only the primary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0c22c4deb7
Simplified the generation of C# for base calls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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>
9 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>
9 years ago
Dimitar Dobrev
8cb7207df7
Deleted code made redundant by the equalisation of access for overrides.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
cf98ecd36e
Generated internals of external specialisations only if the template has template fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0124c43439
Removed a hack while renaming.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
cece243a06
Equalised the access of overrides and their base methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Mohit Mohta
48c6094f52
Fixed the code generation for indexers returning a void pointer ( #901 )
9 years ago
Dimitar Dobrev
2002377f27
Fixed the generated C# when a protected constructor has a parameter with a protected type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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>
9 years ago
Kimon Topouzidis
3760d4d550
Made Function a DeclarationContext to match the Clang AST. ( #896 )
9 years ago
Kimon Topouzidis
e89f7a344e
Refactored the way comments are printed. ( #893 )
9 years ago
Mohit Mohta
5227e517fc
Added an option to enable or disable RTTI ( #892 )
...
Fixes #819
9 years ago
Dimitar Dobrev
9b0e0ba611
Fixed the generation of inlines to handle types in classes in name-spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Kimon Topouzidis
052b2b3a86
Added support for the Doxygen tag for making bold text. ( #889 )
9 years ago
Dimitar Dobrev
6918d9d769
Made the generated exception for templates more explanatory.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1084dcc1df
Deleted unused code from the C# generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
40e6abbd22
Deleted pointless indexation of overloads.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
351bae6bb6
Removed redundant indexation from internal functions in C#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
f646647159
Ignored system declarations before checking for others to ignore.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
fa9652aa72
Fixed the generation of symbols to include supported specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6a414939e5
Extended the finding of symbols to work for specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Kimon Topouzidis
01677b0cb1
Fixed the generated #includes when renaming output files. ( #887 )
...
Fixes #868
9 years ago
Dimitar Dobrev
898001fecd
Improved the detection of used template specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
a15aa8f921
Fixed the Linux build.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1dc5c34662
Removed the useless marking of supported system template specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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>
9 years ago
Mohit Mohta
49e94460a5
Fixes Stack mismatch when bool param passed from C++ to C#
...
Fixes #834
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago