Dimitar Dobrev
0f4ee4c335
Upgrade to Ubuntu 20.04 Focal Fossa for CI
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
09222174c1
Made the original virtual tables static too
...
Virtual tables are the same object per class in C++.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
0da9c46a73
Pass native pointers to bases in the generated C#
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
c214b10e3c
Check type maps when printing C++ for pointers
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
9091fd3e5b
Do not add type alias templates twice to the AST
...
This also fixes a memory leak since the copies were never destroyed.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
2d75735d0f
Fix all leaks of memory in the old expressions
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
a1dc53c03c
Add template functions to their context
...
This also fixes a minor memory leak.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
a25162b6d8
Fix leaking memory by removing a useless assignment
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
e3237780bf
Delete an unused parameter in the parser
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
bcdc2cf667
Fix leaking the memory of an entire Clang AST
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
5d55a576c1
Regenerate the parser bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
d0216f1e7d
Ignore type maps when printing C++ for symbols
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
6a9d829698
Implement more accurate managed type printing in C++ type printer.
5 years ago
João Matos
2a7d7fa469
Use a native type printer context when looking for type maps in CSharpSourcesExtensions.DisableTypeMap.
5 years ago
João Matos
63c42c3252
Use explicit type printer when printing types in C# GenerateMethodSpecifier.
5 years ago
João Matos
9ba53acc11
Refactor CodeGenerator.GenerateMethodSpecifier to allow explicit specifier kind.
5 years ago
João Matos
f49e6c9e64
Do not check declaration access for explicitly generated declarations.
5 years ago
João Matos
568b68bb3f
Fix TranslationUnit.FileRelativeDirectory to be more robust against null include paths.
5 years ago
João Matos
f5d4a5d59c
Fix formatting to of Declaration.GenerationKind to ease debugging.
5 years ago
João Matos
55365c7d30
Ignore implicitly deleted copy constructor methods.
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
Immo Landwerth
a1696055ac
Link Code of Conduct ( #1335 )
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
116ee82212
Fix a regression when renaming classes
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.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
Build Agent
0f0e174ea9
publish the clang lib folder
5 years ago
João Matos
6a007e6d60
Implement basic support for parsing function-like macros.
5 years ago
João Matos
7b77d84d20
Implement TranslationUnit.ToString() to help with debugging.
5 years ago
João Matos
bd783b1cd0
Add debug option and flags to the Premake build and compile scripts.
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
c7de36450c
Update the version of Mono used for builds (CI)
...
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
Dimitar Dobrev
7b6fb6e340
Implement abstract templates to call virtuals
...
This allows for, just as with regular classes, the calling of virtual methods of abstract templates returned by functions.
Fixes https://github.com/mono/CppSharp/issues/1270 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
4e30a41ee8
Correctly align printed information for debugging
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
c23bc89f86
Clean all warnings in the non-generated C#
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
78ed7c72a1
Clean all C++ warnings in the parser
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
5ceedc167a
Set the render kind of inline command comments
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
8dfcd5b717
Fix all memory leaks in tests
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
653f4cc287
Generate by ref parameters of type a pointer to enum
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Ali Alamiri
eb838be70f
Use UnsupportedType description for type name instead of empty string ( #1339 )
...
Use UnsupportedType description for type name instead of empty string
5 years ago
Dimitar Dobrev
ce74674c4e
Document the release of CppSharp 0.10.3
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
7fc681a41d
Ensure complete template specializations in AST
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
2fb1376c4f
Add an option and checking for generation of deprecated declarations.
5 years ago
Dimitar Dobrev
fe5e72bb68
Regenerate the parser bindings for Windows.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
59715984f1
Re-generated parser bindings for MacOS and Linux.
5 years ago
João Matos
c21ddcca1e
Implement parsing and AST processing of C++ deprecated attributes.
5 years ago
João Matos
083bcd845c
Make sure we use a native type printer for symbols code generation.
5 years ago
João Matos
da37afb738
Git ignore new include folders for cross generation.
5 years ago