josetr
51f06fd7cf
Add missing parenthesis when printing a reference to an array
4 years ago
josetr
b92a128ba6
Add missing const specifier when printing C arrays
4 years ago
josetr
6a414f37c3
Fix SymbolCodeGenerator printing typed enums as normal typeless integers
4 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
4 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.
4 years ago
Fabio Anderegg
75feb4ebc6
RenamePass: add option to include/exclude namespaces from renaming ( #1670 )
4 years ago
hxbb00
ef29be59cd
fix:RTTI head loss ( #1675 )
...
Co-authored-by: hujin <hj@mapgis.com>
4 years ago
josetr
ed278fc636
Refactor code
4 years ago
josetr
060afd53fc
Add partial `ref` param support
4 years ago
josetr
565776ef9e
Fix issue where a `ref` parameter would always be overwritten
4 years ago
josetr
0d92eaef16
Use TemplatedDecl.Parameters cuz Class.TemplateParameters may not be available at this point
4 years ago
josetr
06d311dc89
Fix anonymous unions inside template classes
4 years ago
josetr
6bf823e3b9
Fix IsInternalClassNested usage
4 years ago
josetr
37bd7e0155
Add `GenerateNativeToManaged` per-class option
4 years ago
josetr
3414294ab8
Fix FunctionToStaticMethod bug
4 years ago
josetr
27d9adb20c
Remove duplicate IsNativeMethod functions
4 years ago
Joao Matos
314a1f745f
Parse generate function template specializations.
4 years ago
josetr
b024a92570
Use `PushWriteBlock` to improve code readability
5 years ago
josetr
2792600efb
Rename LibrarySymbolInfo to CSharpLibrarySymbolTable and improve it a bit
5 years ago
josetr
69925a56e1
Improve IsPrimitiveTypeConvertibleToRef() performance
5 years ago
josetr
eb5031bf4c
Format files
5 years ago
josetr
fd3f82a7a1
Fix AccessViolationException error when using deduction guides
5 years ago
josetr
7e825c4dd3
Add LanguageVersion.CPP23
5 years ago
Ahmed Elsayed
c281f57b52
Add Experimental Initial Span ( #1651 )
...
* Fix NotImplementedException
* Add Experimental Span
* Fix Some Problems and Comment
5 years ago
Ahmed Elsayed
158a58654a
Fix NotImplementedException ( #1650 )
5 years ago
Joe Hull
1edd5ee5ee
Avoid ArgumentOutOfRangeException in ExpressionHelper.CheckForString ( #1649 )
5 years ago
Joe Hull
81351632d5
Use WeakReference<T> in NativeToManagedMap to allow finalizers to run. ( #1648 )
5 years ago
Dimitar Dobrev
740f30e816
Remove redundant spaces in the generated C++
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
焼き猫
318d145006
Add options.LibraryDirs to module in Generator.cs ( #1646 )
5 years ago
Dimitar Dobrev
b3d32d8c71
Update LLVM to a newer version
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
1acb23813d
Generate valid C# for independent specialisations with nested fields
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
ab04635314
Don't revisit parameters when checking to ignore
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
f1915b3066
Generate valid C# for templates with external specializations only
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
9b90f1c77b
Generate valid C# for nested in external specializations
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
c84a6c606e
Generate valid C# for independent external specializations
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
3b0eb1800c
Generate valid C# for nested external specializations
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
aab63d0aa3
Generate valid C# for unresolvable base templates
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
69e766be5d
Generate valid C# for classes with dependent fields nested in templates with independent fields
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
f44686bda0
Generate valid C++ for redeclaration of friends
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
a69f6d1d6d
Generate valid C++ for specialisations with void
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
dddd5da0e6
Update LLVM to the latest version
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
5552f2b484
Generate valid C# for pure functions returning or taking dependent pointers
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Ahmed Elsayed
caaf89d34a
Fix a crash when processing templates with variable arguments ( #1641 )
5 years ago
Dimitar Dobrev
0d84877068
Simplify code by not specially handling void**
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
25e983606e
Report errors when linking of generated C++ fails
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
b2cc4ab913
Ensure complete classes in class templates
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
365b8db71c
Print C++ for some kinds of non-type template parameters
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
da251d443b
Always ignore functions returning unsupported specializations
...
In very complex headers with heavily typedef-ed returned specializations of templates with non-type template parameters the functions themselves can be visited before such templates - thus leaving such invalid functions as valid.
Unfortunately, such a complex interaction cannot be reproduced and therefore tested in a reasonable time-frame.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
634c231853
Generate valid C# for unions in templates with non-type args
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
3ae0fd0fd5
Match names of parameters in templates to their specializations
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago