josetr
|
8c4465bb11
|
Fix PInvokeStackImbalance when calling C++ methods (#1453)
* Fix PInvokeStackImbalance when calling C++ methods
|
6 years ago |
josetr
|
69a501b91c
|
Load symbols at startup to avoid very expensive ResolveSymbol calls everywhere (#1447)
* Load symbols at startup to avoid very expensive ResolveSymbol calls everywhere
|
6 years ago |
josetr
|
832e4e9eb0
|
Fix IntPtr array marshalling bug and move hard to read code to CppSharp.Runtime (#1446)
|
6 years ago |
josetr
|
0cfc060018
|
Fix string marshalling bug and move hard to read code to CppSharp.Runtime (#1445)
|
6 years ago |
Dimitar Dobrev
|
be227c2c18
|
Revert "Simplify the code for encodings when marshalling"
This reverts commit 3a93f8f575.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
3a93f8f575
|
Simplify the code for encodings when marshalling
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
josetr
|
37c0164072
|
Add support for const char32_t* and fix const wchar_t* in linux / osx (#1444)
* Add support for const char32_t* and fix const wchar_t* in linux / osx
|
6 years ago |
josetr
|
133a1882df
|
Copy arrays of primitive values using System.Buffers.MemoryCopy (#1440)
|
6 years ago |
josetr
|
41f0e9f72b
|
Fix marshalling for bool arrays (#1439)
* Fix marshalling for bool arrays
|
6 years ago |
josetr
|
c3ca3c241b
|
Fix wrong [MarshalAs(UnmanagedType)] for strings (#1438)
|
6 years ago |
josetr
|
6496bf8dae
|
Basic support for static constexpr variables (#1435)
Basic support for static constexpr variables
|
6 years ago |
josetr
|
df98fc460a
|
Use C# 'default literal' to avoid using a type's name that may be renamed (#1432)
* Use C# 'default literal' to avoid using a type's name that may be renamed
|
6 years ago |
josetr
|
3ffa42aa2f
|
Fix generated constructor cant use `placement new` when class overloads `operator new` (#1431)
|
6 years ago |
josetr
|
397811dc3c
|
Fix wrong marshalling for static member arrays (#1428)
* Fix wrong marshalling for static member arrays
|
6 years ago |
josetr
|
9a39493cac
|
Fix wrong generated destructor
|
6 years ago |
Franco Sinisi
|
495eb3a907
|
RemovePass is now generic.
|
6 years ago |
Franco Sinisi
|
096cf3d9b8
|
Added the ability to remove a built-in pass.
|
6 years ago |
josetr
|
73670debbc
|
Fix anonymous member name colliding with enclosing type name (#1425)
* Fix anonymous member name colliding with enclosing type name
|
6 years ago |
Franco Sinisi
|
669596fc51
|
Allow the users to overwrite CppSharp type maps.
|
6 years ago |
Dimitar Dobrev
|
9f3fc25889
|
Improve the name of a generating method
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
b5ca0635be
|
Check symbols in tests
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
07763331e2
|
Move libraries to a new class for linking options
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
1d9a07b693
|
Fix memory leaks when using the driver
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
926fca6087
|
Simplify ClangParser by making it static
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
fbbda2020f
|
Remove the direct usages of the parsing options
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
b4726fd48e
|
Don't add ABI-specific parameters when wrapping C
Fixes https://github.com/mono/CppSharp/issues/1008.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
28a5c5d76c
|
Prioritize public non-field properties when resolving naming conflicts
Fixes https://github.com/mono/CppSharp/issues/1175.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
4d8ab83328
|
Fix patching of virtual tables for MSVC with RTTI
Fixes https://github.com/mono/CppSharp/issues/1151.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
076318be29
|
Free the memory of the patched v-tables
Fixes https://github.com/mono/CppSharp/issues/586.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
b7fa720ee1
|
Generate valid C# for constructors taking const&
Fixes https://github.com/mono/CppSharp/issues/1119.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
6dcb2ac31a
|
Generate valid C# for returned function pointers
Fixes https://github.com/mono/CppSharp/issues/1226.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
a1ddbd82d7
|
Expose returned values of non-void setters
Now we generate them as methods too.
Fixes https://github.com/mono/CppSharp/issues/960.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
dcd11e9433
|
Ensure enumerations lack conflicts when renamed
Fixes https://github.com/mono/CppSharp/issues/965.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
2acbf32a96
|
Fix generation for fields of type const reference
Fixes https://github.com/mono/CppSharp/issues/1323.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Ali Alamiri
|
fe33488829
|
Option to allow caller to specify it does not want unchanged output files to be modified. This supports incremental build in VS. (#1373)
Check if generated code is different to existing files and only overwrite if so
Co-authored-by: Build Agent <admin@sage.com>
|
6 years ago |
Build Agent
|
e31dc22ab1
|
CreateInstance factory overload to pass flag informing wrapper if it should own the native pointer passed to it.
|
6 years ago |
Dimitar Dobrev
|
081ac688f4
|
Simplify the mapping of virtual tables in C#
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
09222174c1
|
Made the original virtual tables static too
Virtual tables are the same object per class in C++.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
0da9c46a73
|
Pass native pointers to bases in the generated C#
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
c214b10e3c
|
Check type maps when printing C++ for pointers
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
bcdc2cf667
|
Fix leaking the memory of an entire Clang AST
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
d0216f1e7d
|
Ignore type maps when printing C++ for symbols
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
João Matos
|
6a9d829698
|
Implement more accurate managed type printing in C++ type printer.
|
6 years ago |
João Matos
|
2a7d7fa469
|
Use a native type printer context when looking for type maps in CSharpSourcesExtensions.DisableTypeMap.
|
6 years ago |
João Matos
|
63c42c3252
|
Use explicit type printer when printing types in C# GenerateMethodSpecifier.
|
6 years ago |
João Matos
|
9ba53acc11
|
Refactor CodeGenerator.GenerateMethodSpecifier to allow explicit specifier kind.
|
6 years ago |
João Matos
|
f49e6c9e64
|
Do not check declaration access for explicitly generated declarations.
|
6 years ago |
João Matos
|
55365c7d30
|
Ignore implicitly deleted copy constructor methods.
|
6 years ago |
Ali Alamiri
|
29adf57f83
|
Correctly marshal constant arrays in C++/CLI (#1346)
Co-authored-by: Build Agent <admin@sage.com>
|
7 years ago |
Ali Alamiri
|
c23ef39bca
|
Marshal pointer to primitive typedefs in C++/CLI (#1355)
Co-authored-by: Build Agent <admin@sage.com>
|
7 years ago |