Граф коммитов

5435 Коммитов

Автор SHA1 Сообщение Дата
Joao Matos 6c057977d0 Changes 2023-02-04 18:52:04 +00:00
João Matos 4417dd987a
Code cleanups and improvements (#1713)
* Code cleanups.

* Run GetterSetterToPropertyPass for more generators.

* Fixed compile warning when compiling parser bindings.

* Cleanup driver code.

* Remove dead 32-bit code.

* Reduce verbosity when Options.Quiet is set.

* Remove test compile-time warnings.

* Move .NET tests to tests/dotnet.

* Remove unused AST viewer code and premake-qt submodule.

* Move tests2/ contents to tests/.
2023-02-04 15:37:19 +00:00
João Matos 117567d61f
Add initial Emscripten generator. (#1712) 2023-02-03 18:13:39 +00:00
João Matos 9b06e7bc01
Add C++ WebAssembly ABI (#1711)
* Minor code refactorings.

* Fix debug assert issue with vtable methods.

* Add support for WebAssembly C++ ABI to parser and AST converter.
2023-02-03 18:05:14 +00:00
João Matos db7949b263
Misc changes (#1710)
* Minor code refactoring for re-use.

* Add Class.FindVariable helper method.

* Upgrade to .NET 6.
2023-02-02 21:52:24 +00:00
aybe c4a24b0cce
Incorrect build instructions on Windows (#1701)
* Fix incorrect build instructions for Windows

* Add link to Visual Studio installer

* Refine building instructions for VS2019+
2022-11-28 10:28:15 +00:00
Fabio Anderegg 7998b24516
write pragma to disable new keyword not required warnings (#1697) 2022-11-22 17:00:52 +00:00
Fabio Anderegg 92f774aabf
__CreateInstance: return C# null when native is null (#1698) 2022-11-22 14:59:27 +00:00
Fabio Anderegg eab7a0cdde
Fix disabling NativeToManaged map for classes with vtable (#1696)
* dont generate GetInstance on classes with disabled NativeToManaged map

* disable vtable hooking for classes with disabled ManagedToNative

* throw exception when trying to inherit from class with disabled NativeToManaged map
2022-11-18 21:47:54 +00:00
josetr f2e26ec7af Simplify "Upload package to GitHub Packages" step 2022-11-18 15:02:25 +00:00
josetr 567a0df8c7 Fix FunctionToInstanceMethod 2022-11-17 14:44:54 +00:00
josetr fd058db061 Rename tests 2022-11-17 13:22:31 +00:00
josetr c1b3a1e4d4 Fix HasDependentValueFieldInLayout stack overflow 2022-10-07 22:03:41 +01:00
josetr efdec41f13 Add missing GenerateNativeToManagedFor checks 2022-10-07 22:03:41 +01:00
josetr e160b3a296 Add generate function template specializations whitelist 2022-10-07 22:03:40 +01:00
josetr 7fb553f79e Code to generate function template specializations should support methods as well 2022-10-07 22:03:39 +01:00
josetr 51f06fd7cf Add missing parenthesis when printing a reference to an array 2022-10-07 22:03:38 +01:00
josetr b92a128ba6 Add missing const specifier when printing C arrays 2022-10-07 22:03:38 +01:00
josetr 6a414f37c3 Fix SymbolCodeGenerator printing typed enums as normal typeless integers 2022-10-07 22:03:37 +01:00
Fabio Anderegg a642691348
Call destructor on copied arguments when calling C# method from C++ (MS ABIs only) (#1685)
* on MS abi call destructor on copy-by-value arguments after call to c# function

* add tests for destructor call on call by value from c++ to c#

* copy-by-value destructor call using Dispose() instead of Internal.dtor to handle destructors in base class
2022-10-06 00:39:58 +01:00
João Matos ea5c09502f
Update GettingStarted.md 2022-09-27 13:31:16 +01:00
Joao Matos 5a202e9be2 Support parsing record fields in WalkDeclaration.
This fixes an issue with parsing of class fields being used as a
template argument.
2022-09-17 14:07:43 +01:00
Fabio Anderegg 75feb4ebc6
RenamePass: add option to include/exclude namespaces from renaming (#1670) 2022-09-01 15:07:13 +01:00
hxbb00 ef29be59cd
fix:RTTI head loss (#1675)
Co-authored-by: hujin <hj@mapgis.com>
2022-08-23 09:01:59 +01:00
João Matos ce9e63f4ce
Move to macOS 11 on GitHub Actions. (#1671) 2022-07-27 13:13:46 +01:00
josetr ed278fc636 Refactor code 2022-07-06 14:01:01 +01:00
josetr 060afd53fc Add partial `ref` param support 2022-07-05 06:04:48 +01:00
josetr 565776ef9e Fix issue where a `ref` parameter would always be overwritten 2022-07-05 06:04:48 +01:00
josetr 17f69fdf64 Add test for function templates 2022-07-05 06:04:48 +01:00
josetr 0d92eaef16 Use TemplatedDecl.Parameters cuz Class.TemplateParameters may not be available at this point 2022-07-05 06:04:48 +01:00
josetr 06d311dc89 Fix anonymous unions inside template classes 2022-07-04 11:25:09 +01:00
josetr 6bf823e3b9 Fix IsInternalClassNested usage 2022-07-04 11:25:09 +01:00
josetr 37bd7e0155 Add `GenerateNativeToManaged` per-class option 2022-07-04 11:25:09 +01:00
josetr 3414294ab8 Fix FunctionToStaticMethod bug 2022-07-04 11:25:09 +01:00
josetr 27d9adb20c Remove duplicate IsNativeMethod functions 2022-07-04 11:25:09 +01:00
Joao Matos 314a1f745f Parse generate function template specializations. 2022-07-03 04:12:15 +01:00
josetr b024a92570 Use `PushWriteBlock` to improve code readability 2022-03-12 23:15:32 +00:00
josetr 2792600efb Rename LibrarySymbolInfo to CSharpLibrarySymbolTable and improve it a bit 2022-03-12 23:10:06 +00:00
josetr 69925a56e1 Improve IsPrimitiveTypeConvertibleToRef() performance 2022-03-12 22:12:18 +00:00
josetr 552d4114df Use C# 9.0 2022-03-12 22:10:45 +00:00
josetr eb5031bf4c Format files 2022-03-12 21:54:39 +00:00
josetr fd3f82a7a1 Fix AccessViolationException error when using deduction guides 2022-03-12 06:48:32 +00:00
josetr 7e825c4dd3 Add LanguageVersion.CPP23 2022-03-12 04:33:07 +00:00
josetr 739863589c Upload packages to GitHub Packages 2022-03-11 04:07:59 +00:00
josetr 6fc6375bcd Use Nerdbank.GitVersioning 2022-03-11 03:55:21 +00:00
Ahmed Elsayed c281f57b52
Add Experimental Initial Span (#1651)
* Fix NotImplementedException

* Add Experimental Span

* Fix Some Problems and Comment
2022-02-23 13:15:55 -03:00
Ahmed Elsayed 158a58654a
Fix NotImplementedException (#1650) 2022-02-16 12:26:08 -03:00
josetr d5c712643c
Generate nuget package for CppSharp.Runtime (#1574) 2022-01-27 23:10:07 -03:00
Joe Hull 1edd5ee5ee
Avoid ArgumentOutOfRangeException in ExpressionHelper.CheckForString (#1649) 2022-01-21 17:07:24 +00:00
Joe Hull 81351632d5
Use WeakReference<T> in NativeToManagedMap to allow finalizers to run. (#1648) 2022-01-21 10:44:04 +00:00