Dimitar Dobrev
fa47194dae
Generate code from tests where libraries appear
...
This is necessary in order to easily find the compiled symbols as dependencies and target of platform invocation.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
42dda6b12f
Fix generation of SequentialLayout structures ( #1499 )
5 years ago
josetr
ec890a4f55
Remove unused function. ( #1494 )
5 years ago
josetr
bc8fb5caeb
Fix C4273 warnings about inconsistent dll linkage ( #1491 )
5 years ago
josetr
2e80565bb2
Fix warnings about unnecessary using directives. ( #1489 )
5 years ago
josetr
be2bc1be5b
Fix C4251 warnings ( #1487 )
5 years ago
josetr
7791cf6996
Fallback to LayoutKind.Explicit when a custom alignment is specified. ( #1476 )
5 years ago
josetr
0d32121eee
Fix the generation of sequential layouts
5 years ago
josetr
e61e9201ec
Fix ambiguous conversion functions ( #1458 )
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
832e4e9eb0
Fix IntPtr array marshalling bug and move hard to read code to CppSharp.Runtime ( #1446 )
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
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
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
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
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
8034acb22a
Fix crash when trying to read a CXXRecordDecl that doesn't have a definition ( #1426 )
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
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
0e39ab705a
Import native DLL-s (tests and parser) with MSVC
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
7396c95f7c
Implement and export all methods in tests
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 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>
5 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>
5 years ago
Dimitar Dobrev
fe4a466964
Fix parsing of member pointers with MSVC
...
Fixes https://github.com/mono/CppSharp/issues/1231 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 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>
5 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>
5 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>
5 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>
5 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>
5 years ago
Dimitar Dobrev
2b9aedaa0b
Test using _0 as an identifier for nameless fields
...
Fixes https://github.com/mono/CppSharp/issues/1225 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
29c6eb5625
Test overriding from a secondary base for Itanium
...
Fixes https://github.com/mono/CppSharp/issues/1364 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
fd15ab6632
Make a test localization-independent of the IDE
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Ali Alamiri
29adf57f83
Correctly marshal constant arrays in C++/CLI ( #1346 )
...
Co-authored-by: Build Agent <admin@sage.com>
5 years ago
Ali Alamiri
c23ef39bca
Marshal pointer to primitive typedefs in C++/CLI ( #1355 )
...
Co-authored-by: Build Agent <admin@sage.com>
5 years ago
Dimitar Dobrev
54c6159f35
Fix naming conflicts with nested types and members
...
Fixes https://github.com/mono/CppSharp/issues/1353 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
6a007e6d60
Implement basic support for parsing function-like macros.
5 years ago
Dimitar Dobrev
64b1efd1e7
Generate valid C# for parameters typedef-ed to mapped types
...
Fixes https://github.com/mono/CppSharp/issues/1256 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
6fd9078445
Fix the regressed C# marshalling of char*
...
Fixes https://github.com/mono/CppSharp/issues/1258 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Ali Alamiri
e0b8b58836
Handle pointer to pointer param ( #1343 )
...
Generate valid C++/CLI for passed pointers to pointers
Co-authored-by: Build Agent <admin@sage.com>
5 years ago
Ali Alamiri
190cbfa2d3
Handle returned pointers to std::vector in C++/CLI
...
Co-authored-by: Build Agent <admin@sage.com>
5 years ago