Dimitar Dobrev
1209f1af42
Test C++11 in-class member initializers
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
ba2310830a
Remove needless generation of using-s in tests
...
Fixes https://github.com/mono/CppSharp/issues/1490 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Matt Key
3fee9dd5b9
Adding test for new pass
4 years ago
ElonH
333ce5b137
Add test
4 years ago
Dimitar Dobrev
4181f7c534
Ignore the still unsupported dependent type names
...
They're difficult to resolve and this would only make sense if we support types nested in templates which we don't yet.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
88fc5b9c36
Rewrite GenerateEnumFromMacros helper to also look into enum items.
5 years ago
Dimitar Dobrev
c38556a93b
Make auto-compiling of C# work with .NET Core
...
CodeDom doesn't work in .NET Core (https://github.com/dotnet/runtime/issues/18768 ) and Roslyn turns out to be too low level (just a compiler and not a building framework) so the best approach is to invoke msbuild as a process.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
8451cefc98
Change XML comments to be tested at run-time
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
85b6a92861
Generate valid C++ for protected constructors
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
d741ced55a
Generate valid C++ for protected destructors
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
1020e18bdc
Only implement abstract classes in C++ for ctors/dtors
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
c18d047daf
Ensure a tested specialization is really generated
...
The only function to use the specialization in question is actually ignored because the types of two of its parameters aren't supported. This was hidden by an otherwise redundant definition of a C++ symbol which is now removed.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
3a50a54fa4
Place all output of tests in their own directories
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
6a1db77cbf
Update driver to only generate system modules for C# generators.
5 years ago
josetr
4ade453647
Manage package versions centrally
5 years ago
josetr
a792f2cd95
Simplify code that regenerates test bindings
5 years ago
Dimitar Dobrev
4405525f3a
Make unit tests independent of the generator
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
47b98a2265
Simplify code that regenerates test bindings
5 years ago
josetr
1926e69435
Only use premake for native projects and improve c# projects.
5 years ago
josetr
0b270df006
Rename files
5 years ago
josetr
f474a7327b
Fix typo and move alignment offsets to cpp file
5 years ago
Dimitar Dobrev
cd7b3576db
Export or implement accessible functions in tests
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
ed51c802b9
Fix importing/exporting redeclaration in symbols
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
25b9082c4c
Disable the msvc warning about unexported template specializations
...
The warning is essentially a bug in msvc because it's harmless and requires exporting all accessible template specializations. See also http://www.unknownroad.com/rtfm/VisualStudio/warningC4251.html .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
6acaf248f7
Test using a specialization from a dependent module
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
dbbcb6dbdf
Upgrade to .NET Core 3.1 and improve build system
5 years ago
josetr
65eaa3fe44
Remove whitespaces
...
Remove whitespaces
5 years ago
josetr
f3830b0b2a
Ignore testing the incorrect marshalling of parameters typed const& to primitives
...
See https://github.com/mono/CppSharp/issues/1518 for details. .NET Core exposes this bug which seems to have worked on .NET Framework by pure chance.
5 years ago
Dimitar Dobrev
e637b18b98
Export some neglected classes in the tests
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
80a83ceada
Be more strict when constructing a regex for parsing macros.
5 years ago
Dimitar Dobrev
7d2d8f291e
Revert "Generate code from tests where libraries appear"
...
This reverts commit fa47194dae
.
# Conflicts:
# build/Tests.lua
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
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