Kimon Topouzidis
8d518fba22
Set the name-space of constructed parameters to their function. ( #909 )
8 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>
8 years ago
Mohit Mohta
db522c0295
Fixed the C# generation for functions with typedefed function pointers as params ( #903 )
8 years ago
Kimon Topouzidis
b4735df891
Included the comments plain text to the remarks block. ( #907 )
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
Kimon Topouzidis
db164c0c0b
Ensured a single element for remarks in the generated XML documentation comments. ( #904 )
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
cece243a06
Equalised the access of overrides and their base methods.
...
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
e89f7a344e
Refactored the way comments are printed. ( #893 )
8 years ago
Kimon Topouzidis
052b2b3a86
Added support for the Doxygen tag for making bold text. ( #889 )
8 years ago
Dimitar Dobrev
6918d9d769
Made the generated exception for templates more explanatory.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
1084dcc1df
Deleted unused code from the C# generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
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
Kimon Topouzidis
01677b0cb1
Fixed the generated #includes when renaming output files. ( #887 )
...
Fixes #868
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
Mohit Mohta
49e94460a5
Fixes Stack mismatch when bool param passed from C++ to C#
...
Fixes #834
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
54f3af1459
Revert "Simplified the C# marshalling of Boolean fields."
...
This reverts commit dc270ef2a8
.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
dc270ef2a8
Simplified the C# marshalling of Boolean fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Kimon Topouzidis
d7c8a61ecc
Manipulated comments to avoid duplication of summary block. ( #876 )
...
Fixes #759 Works around: https://bugs.llvm.org/show_bug.cgi?id=33333
8 years ago
Mohit Mohta
65d5037a72
Fixed the generation of C# for Virtual function with std::string params ( #878 )
...
Fixes #877
8 years ago
Dimitar Dobrev
e04afb8bd5
Generated C# marshalling structures for classes nested in specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
ktopouzi
75b96143d2
Used packing when laying marshalling structures out sequentially.
...
Fixes https://github.com/mono/CppSharp/issues/772 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
37adb3efc9
Fixed the binding of indexer overloads when there's more than one class key.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
c3f5b596ce
Simplified and shortened the names of internal functions in many cases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
c740a34dfa
Fixed the binding of a copy ctor when a move ctor exists too.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
762d3803d7
Changed the C#-printing of template specialisation types to use their arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
1f61f51b4e
Added C#-printing of float128.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Kimon Topouzidis
24e452a183
Added int128 and uint128 to the marshalling structures in the C# generator. ( #858 )
...
fixed #771
8 years ago
Dimitar Dobrev
b83d2a504a
Fixed the C#-printing of injected classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
3794047cd6
Deleted an unused method.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Kimon Topouzidis
551d208044
Added half to the marshalling structures in the C# generator. ( #854 )
8 years ago
Dimitar Dobrev
1895ae3b94
Removed unused kinds of function synthesis.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Mohit Mohta
6bd00372c0
Fixed the generated C# for const ref parameter of Indexer ( #851 )
...
Fixes #628
8 years ago
Dimitar Dobrev
51fe04b666
Made all fields of C# marshalling structures internal.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
8479ed3735
Removed unused parameters from the utility functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Mohit Mohta
78c9a3e791
Added check for native pointer for null before calling a destructor and set it to null after ( #843 )
...
Fixes #808
8 years ago
Dimitar Dobrev
f6df3267d0
Fully qualified calls to constructors in the generated C#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Kimon Topouzidis
797cacadb8
Added long doubles to the marshalling structures in the C# generator. ( #842 )
8 years ago
Mohit Mohta
efbc8fe90e
Fixed the generated C# when setting a field which is an array of complex objects ( #841 )
...
Fixes #717
8 years ago
Kimon Topouzidis
def7d44195
Moved the printing of fields from the C# generator to the C# printer. ( #840 )
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
f549b63711
Removed the useless and problematic mapping of typedef-ed classes to empty ones.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
2670d47eb1
Added IAstVisited implementation to code generator.
8 years ago
Joao Matos
9b277c15b4
Added generator name parameter to file preamble generation.
8 years ago
Joao Matos
73374065f6
Renamed MarshalContext.SupportBefore to Before.
8 years ago
Joao Matos
a8027694ac
Re-use VisitParameter overload in type printer base class.
8 years ago
Dimitar Dobrev
3969e21586
Simplified some code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
3ac96ac8f2
Extract default common visit code into base TypePrinter class.
8 years ago
Joao Matos
11f1956cde
Remove CLITypePrinterContext and its usage in CLITypePrinter.
8 years ago