stachu99
9923d79617
CppSharp.AST.Declaration - fix return QualifiedOriginalName, QualifiedLogicalOriginalName ( #1740 )
...
Fixed properties getters of QualifiedOriginalName, QualifiedLogicalOriginalName and methods GetQualifiedName(), GatherNamespaces.
2 years ago
João Matos
02725320fd
Workaround parsing GNU system headers with GCC 11.0 version. ( #1737 )
...
Closes https://github.com/mono/CppSharp/issues/1703 .
Upstream bugs:
https://github.com/llvm/llvm-project/issues/51607
https://github.com/llvm/llvm-project/issues/53152
2 years ago
João Matos
dc743a23ce
Fix module being ignored when it cannot be found based on include dir. ( #1736 )
2 years ago
João Matos
8cf6e3f280
Allow passing a `-target-framework` option to `build.sh` ( #1718 )
...
Closes https://github.com/mono/CppSharp/issues/1717 .
2 years ago
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/.
3 years ago
João Matos
117567d61f
Add initial Emscripten generator. ( #1712 )
3 years ago
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.
3 years ago
João Matos
db7949b263
Misc changes ( #1710 )
...
* Minor code refactoring for re-use.
* Add Class.FindVariable helper method.
* Upgrade to .NET 6.
3 years ago
Fabio Anderegg
7998b24516
write pragma to disable new keyword not required warnings ( #1697 )
3 years ago
Fabio Anderegg
92f774aabf
__CreateInstance: return C# null when native is null ( #1698 )
3 years ago
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
3 years ago
josetr
567a0df8c7
Fix FunctionToInstanceMethod
3 years ago
josetr
c1b3a1e4d4
Fix HasDependentValueFieldInLayout stack overflow
3 years ago
josetr
efdec41f13
Add missing GenerateNativeToManagedFor checks
3 years ago
josetr
e160b3a296
Add generate function template specializations whitelist
3 years ago
josetr
7fb553f79e
Code to generate function template specializations should support methods as well
3 years ago
josetr
51f06fd7cf
Add missing parenthesis when printing a reference to an array
3 years ago
josetr
b92a128ba6
Add missing const specifier when printing C arrays
3 years ago
josetr
6a414f37c3
Fix SymbolCodeGenerator printing typed enums as normal typeless integers
3 years ago
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
3 years ago
Joao Matos
5a202e9be2
Support parsing record fields in WalkDeclaration.
...
This fixes an issue with parsing of class fields being used as a
template argument.
3 years ago
Fabio Anderegg
75feb4ebc6
RenamePass: add option to include/exclude namespaces from renaming ( #1670 )
3 years ago
hxbb00
ef29be59cd
fix:RTTI head loss ( #1675 )
...
Co-authored-by: hujin <hj@mapgis.com>
3 years ago
josetr
ed278fc636
Refactor code
3 years ago
josetr
060afd53fc
Add partial `ref` param support
3 years ago
josetr
565776ef9e
Fix issue where a `ref` parameter would always be overwritten
3 years ago
josetr
0d92eaef16
Use TemplatedDecl.Parameters cuz Class.TemplateParameters may not be available at this point
3 years ago
josetr
06d311dc89
Fix anonymous unions inside template classes
3 years ago
josetr
6bf823e3b9
Fix IsInternalClassNested usage
3 years ago
josetr
37bd7e0155
Add `GenerateNativeToManaged` per-class option
3 years ago
josetr
3414294ab8
Fix FunctionToStaticMethod bug
3 years ago
josetr
27d9adb20c
Remove duplicate IsNativeMethod functions
3 years ago
Joao Matos
314a1f745f
Parse generate function template specializations.
3 years ago
josetr
b024a92570
Use `PushWriteBlock` to improve code readability
3 years ago
josetr
2792600efb
Rename LibrarySymbolInfo to CSharpLibrarySymbolTable and improve it a bit
3 years ago
josetr
69925a56e1
Improve IsPrimitiveTypeConvertibleToRef() performance
3 years ago
josetr
eb5031bf4c
Format files
3 years ago
josetr
fd3f82a7a1
Fix AccessViolationException error when using deduction guides
3 years ago
josetr
7e825c4dd3
Add LanguageVersion.CPP23
3 years ago
Ahmed Elsayed
c281f57b52
Add Experimental Initial Span ( #1651 )
...
* Fix NotImplementedException
* Add Experimental Span
* Fix Some Problems and Comment
3 years ago
Ahmed Elsayed
158a58654a
Fix NotImplementedException ( #1650 )
4 years ago
Joe Hull
1edd5ee5ee
Avoid ArgumentOutOfRangeException in ExpressionHelper.CheckForString ( #1649 )
4 years ago
Joe Hull
81351632d5
Use WeakReference<T> in NativeToManagedMap to allow finalizers to run. ( #1648 )
4 years ago
Dimitar Dobrev
740f30e816
Remove redundant spaces in the generated C++
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
焼き猫
318d145006
Add options.LibraryDirs to module in Generator.cs ( #1646 )
4 years ago
Dimitar Dobrev
b3d32d8c71
Update LLVM to a newer version
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
1acb23813d
Generate valid C# for independent specialisations with nested fields
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
ab04635314
Don't revisit parameters when checking to ignore
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
f1915b3066
Generate valid C# for templates with external specializations only
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
9b90f1c77b
Generate valid C# for nested in external specializations
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago