Joao Matos
3ac96ac8f2
Extract default common visit code into base TypePrinter class.
8 years ago
Gilad Levi
35adf99165
added test for asci-macro-enum feature
8 years ago
Joao Matos
11f1956cde
Remove CLITypePrinterContext and its usage in CLITypePrinter.
8 years ago
Joao Matos
38cb8e1dbe
Overhaul type printer and marshal contexts design and implementation.
...
The goal is to simplify the design and get rid of useless type printer contexts inside type printers.
8 years ago
Dimitar Dobrev
9dbcc3cc2c
Completed the support for dependent type names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Gilad Levi
5302f5870c
Use fixed c# statement when accessing fixed struct members
8 years ago
Victor Peter Rouven Müller
0a61baa4b6
Completely ignore incomplete classes in C++/CLI ( #823 )
...
Signed-off-by: realvictorprm <mueller.vpr@gmail.com>
8 years ago
Dimitar Dobrev
71c14cdb2b
Fixed the C++ printing of qualified specializations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
6a43e82047
Fixed the C++ printing of classes nested in specializations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
0f0f6172f0
Fixed the finding of functions to work in name-spaces too.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
realvictorprm
10c86a2a10
Fixed the generated C# when an incomplete class is forwarded more than once.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
9dc880dd6a
Fixed build files to run mono64 in 64-bit non-VS builds.
8 years ago
realvictorprm
938ccf686b
Incomplete classes and structs are now generated for C#. ( #797 )
...
This feature is NOT coming for C++/CLI !
8 years ago
Abhinav Tripathi
91fcfd0b5c
Fix CheckStaticClass pass and add test. ( #795 )
8 years ago
realvictorprm
4307fb3303
Fixed ArgumentException due to nullptr arguments in Marshaling native function pointers. ( #794 )
8 years ago
Dimitar Dobrev
e2a2e8df4b
Fixed the generated C# for an array of const char*.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
358c03e261
Fixed a regression when a method called "dispose" is wrapped.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
dd82358a04
Always upper-cased the first character of a function.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
ea9c12842a
Changed the renaming not to lose separation in new names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
fe85a33ba1
Restored the renaming of enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
c4edb58881
Re-order declarations in CSharp test generator.
8 years ago
Dimitar Dobrev
8b230bdf07
Fixed a corner case of a default parameter with a type mapped to an enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
fed72f5910
Ensured the C# gen correctly imports a native library with no target triple.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
66fdc64828
Removed a missed piece of obsolete code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
d49453bd67
Properly configured the dependencies in our test for them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
c7040fc242
Fixed a crash when generating C# for empty enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
8646d3e077
Obsoleted the direct settings for wrapped libraries in the options.
...
Modules should be used instead.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
f45c8c8ddf
Removed a test project which actually contained no tests at all.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e7f9b2975c
Updated NUnit to the latest version (3.6) to fix a test failing at AppVeyor.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2352681f5b
Fixed a regression causing objects to be missing at virtual calls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
3629eead5d
Rename CSharpMarshalKind to MarshalKind and move it to Marshal.cs.
9 years ago
Joao Matos
5d19f22d4c
Unify CSharpTypePrinterContextKind with TypePrinterContextKind.
9 years ago
Dimitar Dobrev
1f6a285f61
Ignored a test on Linux because incorrectly patched v-tables cause its failure.
...
See https://github.com/mono/CppSharp/issues/755 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
34ace7c966
Fix indentation for some test cases.
9 years ago
Joao Matos
04ee2e5b7d
Rename CodeGenerator.Templates to Outputs.
9 years ago
Dimitar Dobrev
2531d631c6
Ensured template arguments of specialised functions are read.
9 years ago
Dimitar Dobrev
5899f0e0c4
Handled base "setters" overridden in derived types with a getter.
9 years ago
Joao Matos
8e3cd164c2
Clean up friend template warnings from tests.
...
../../../tests/Common/Common.h:798:12: warning: class ‘FriendTemplate<T>’ is implicitly friends with itself [enabled by default]
friend FriendTemplate;
^
../../../tests/Common/Common.h:799:18: warning: class ‘FriendTemplate<T>’ is implicitly friends with itself [enabled by default]
friend class FriendTemplate;
9 years ago
Dimitar Dobrev
cef847825a
Exposed constant expressions, friendships and exception specifications of functions in our AST.
9 years ago
Dimitar Dobrev
ef69bf1b95
Made the case-renaming pass non-optional for Mono/.NET generators.
9 years ago
Joao Matos
1371f89957
Convert CheckMacroPass to be a default pass.
9 years ago
Dimitar Dobrev
aa079c3222
Added setters to non-const static fields (variables) in the C# end.
...
Fixes https://github.com/mono/CppSharp/issues/545 .
9 years ago
Dimitar Dobrev
f12597fc3f
Minor improvements to InternalsVisibleTo in the C# end.
9 years ago
Dimitar Dobrev
21233a6622
Hid most internal details of the generated code from users.
9 years ago
Dimitar Dobrev
a8815b84e2
Fixed the generated C# when a parameter is s typedef of a primitive pointer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
54f6d2c306
Fixed the wrapping for default values of non-const pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
5f0840d117
Fixed the mapping of std::string not to destroy values when a reference (&) is returned.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
3fa5e86894
Revert "Fixed mistaken test asserts when comparing objects overloaded equal operator."
...
This reverts commit aa45f27f23
.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
2be56cbf0d
Clean up a bunch of build warnings.
9 years ago
Joao Matos
aa45f27f23
Fixed mistaken test asserts when comparing objects overloaded equal operator.
9 years ago