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
Dimitar Dobrev
1b68ecf239
Fixed the generated C# when a constructor uses an unsupported expression in a default arg.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b2a872f431
Merged the passes for properties and made the result non-optional.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
bc9016cf19
Made the generation of conversion operators for constructors non-optional.
...
We are better off always having them because we map to C++ better this way.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
055f4c627e
Fixed the generated C++/CLI when a header and a contained name-space bear the same name.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1b41897172
Fixed the generated C# when a header and a contained name-space bear the same name.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
77f45dee38
Fixed the adjustment of the instance in cases of multiple inheritance.
...
Fixes https://github.com/mono/CppSharp/issues/707 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
05c4213c28
Revert "Fixed the adjustment of the instance in cases of multiple inheritance."
...
This reverts commit e43dd1c18f
.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e43dd1c18f
Fixed the adjustment of the instance in cases of multiple inheritance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ad5505f113
Enabled multiple inheritance, and removed its option, in the C# generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
924ceaf85a
Fixed the selection of a virtual table to call virtual methods through in the C# generator.
...
Fixes https://github.com/mono/CppSharp/issues/703 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
baee5fd5a8
A test for the crash when using multiple inheritance and calling a virtual function from a secondary base.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
9 years ago
Joao Matos
7a26c11382
Rename VisitLibrary method to VisitASTContext.
9 years ago
Dimitar Dobrev
d22e084c7c
Fixed the walking of pointer types to use the correct qualifiers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9cbb13053a
Fixed the generated code when an override has its access increased.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
7c9c91acc3
Fixed the generated C# when a method with a default arg is named the same as another, non-default, of its parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
a04c752b33
Fixed the generated C# when an abstract function has no default args but its overrides do.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago