Dimitar Dobrev
e1bd4fe92f
Update the kind of completed specializations
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
c0d5867ffe
Enable linking groups for the parser on Linux
...
The previous fix didn't work at all because premake's syntax is extremely strange at best and without any sense whatsoever it completely failed before I moved the linking groups just a few lines up.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
e6813a2f99
Update Bindings ( #1459 )
5 years ago
josetr
e61e9201ec
Fix ambiguous conversion functions ( #1458 )
5 years ago
Dimitar Dobrev
bd779b2c49
Enable linking groups for the parser on Linux
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
c32ac59988
Prevent string destructor from being called twice when its passed by value ( #1455 )
5 years ago
josetr
a6e0595428
Remove unsupported calling convention usage ( #1454 )
...
* Remove unsupported calling convention usage
* Remove empty #define
* Move method implementation to source file
5 years ago
josetr
8c4465bb11
Fix PInvokeStackImbalance when calling C++ methods ( #1453 )
...
* Fix PInvokeStackImbalance when calling C++ methods
5 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
5 years ago
josetr
832e4e9eb0
Fix IntPtr array marshalling bug and move hard to read code to CppSharp.Runtime ( #1446 )
5 years ago
josetr
0cfc060018
Fix string marshalling bug and move hard to read code to CppSharp.Runtime ( #1445 )
5 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>
5 years ago
Dimitar Dobrev
3a93f8f575
Simplify the code for encodings when marshalling
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 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
5 years ago
josetr
133a1882df
Copy arrays of primitive values using System.Buffers.MemoryCopy ( #1440 )
5 years ago
josetr
a3e7282a85
Fix CI build by temporarily disabling a test ( #1442 )
5 years ago
josetr
41f0e9f72b
Fix marshalling for bool arrays ( #1439 )
...
* Fix marshalling for bool arrays
5 years ago
josetr
c3ca3c241b
Fix wrong [MarshalAs(UnmanagedType)] for strings ( #1438 )
5 years ago
josetr
64bc6380c8
Allow AppVeyor to trigger builds on any branch
5 years ago
josetr
eff32320a4
Remove call argument to fix broken build ( #1436 )
5 years ago
josetr
6496bf8dae
Basic support for static constexpr variables ( #1435 )
...
Basic support for static constexpr variables
5 years ago
josetr
a92337ba47
Add support for C++ character literals (u, U, L) ( #1434 )
5 years ago
Dimitar Dobrev
bc410cf619
Upgrade premake in preparation for .NET Core ( #1298 )
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 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
5 years ago
josetr
0f498a1090
Add missing `Variable.Type` null check. ( #1430 )
...
Work around an unhandled case of the type of a variable
5 years ago
josetr
3ffa42aa2f
Fix generated constructor cant use `placement new` when class overloads `operator new` ( #1431 )
5 years ago
Joao Matos
97adce334b
Fix generation of VS projects under non-Windows platforms.
5 years ago
josetr
397811dc3c
Fix wrong marshalling for static member arrays ( #1428 )
...
* Fix wrong marshalling for static member arrays
5 years ago
josetr
9a39493cac
Fix wrong generated destructor
5 years ago
josetr
8f2fe45f1a
Ignore non-const data() method for std types like basic_string [c++17] ( #1427 )
5 years ago
josetr
8034acb22a
Fix crash when trying to read a CXXRecordDecl that doesn't have a definition ( #1426 )
5 years ago
Franco Sinisi
495eb3a907
RemovePass is now generic.
5 years ago
Franco Sinisi
096cf3d9b8
Added the ability to remove a built-in pass.
5 years ago
josetr
73670debbc
Fix anonymous member name colliding with enclosing type name ( #1425 )
...
* Fix anonymous member name colliding with enclosing type name
5 years ago
Franco Sinisi
669596fc51
Allow the users to overwrite CppSharp type maps.
5 years ago
Franco Sinisi
7c47093279
Documented use of __declspec(dllexport).
5 years ago
Dimitar Dobrev
9f3fc25889
Improve the name of a generating method
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
cf29d26b8e
Revert "Add information about linkage to the AST"
...
This reverts commit e061edde76
.
We don't need it after all so let's keep the AST as simple as possible.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
b5ca0635be
Check symbols in tests
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
e061edde76
Add information about linkage to the AST
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
17b8e9800f
Find libraries even when given with no extensions
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
0a15871751
Add an option for building with Visual Studio 2019
...
Fixes https://github.com/mono/CppSharp/issues/1390 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
3dd467626c
Update the Mono used in the CI for Linux
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
af01c86f7b
Fix GCC path detection for Ubuntu 20.
...
The path scheme changed in recent Ubuntu versions.
Previously, C++ includes would be found under `/usr/include/c++/9.0`,
but now they are found in `/usr/include/c++/9`.
Change our path detection logic to look for this.
Fixes https://github.com/mono/CppSharp/issues/1392 .
5 years ago
Dimitar Dobrev
07763331e2
Move libraries to a new class for linking options
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
3cfd8d3227
Simplify the test for reading native symbols
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
1d9a07b693
Fix memory leaks when using the driver
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
926fca6087
Simplify ClangParser by making it static
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
fbbda2020f
Remove the direct usages of the parsing options
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
5ef13ac6e5
Pack the lld headers as well
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago