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
João Matos
dabdb43a23
Re-generated parser bindings on MacOS and Linux.
5 years ago
João Matos
b091a0370a
Extract and rework type map finding code from VisitTagType in C++ type printer.
5 years ago
João Matos
c7db119d47
Fix marshaling for wchar_t in C++ generator mode.
5 years ago
João Matos
925783a0ce
Fix includes setup for parser bindings generation in macOS host platform.
5 years ago
João Matos
060432c2d9
Remove some dead code.
5 years ago
João Matos
daef4342c1
Fix generation of field property setters in C++ generator.
5 years ago
João Matos
23fab707b5
Fix FieldToProperty pass to ignore non-public properties in C++ generator.
5 years ago
João Matos
534acc564d
Fix declaration access for generated fields flattened from anonymous types.
5 years ago
João Matos
237b344f67
Change standard type maps to be more specific about its supported generators.
5 years ago
Ali Alamiri
32b83a3015
Generate forward ref header for enum defined inside a class in C++/CLI ( #1322 )
...
Co-authored-by: Build Agent <admin@sage.com>
5 years ago
Ali Alamiri
344656c787
Move the GenerateInclude logic to GetTypeReference ( #1319 )
...
Improve generation of forward references and includes in C++/CLI.
Move the GenerateInclude logic to GetTypeReference so that an include is also generated for visited types of an ASTRecord that are forward declared, and come from typedef of ignored class template.
Co-authored-by: Build Agent <admin@sage.com>
5 years ago
Ali Alamiri
d2f5c26da0
By reference enum param fixes ( #1321 )
...
Fix generated C++/CLI of pointers to enums
Co-authored-by: Build Agent <admin@sage.com>
5 years ago
Build Agent
574fbca2c8
Add declaration context as object to function class block
5 years ago
Build Agent
010099021c
Add blocks for ctor, dtor, and finalizer bodies. Add constructor that takes a bool from the caller to indicate if the callee should own the pointer passed to it or not
5 years ago
João Matos
648b1fdc3c
Add generic type map handling methods for later refactoring of generators.
5 years ago
João Matos
1ad118ceba
Fix type printing of typedef qualifiers in C++ type printer.
5 years ago
João Matos
64a99cce08
Fix C++ parser ambiguity in generation of C++ method identifiers by wrapping them in parens.
5 years ago
João Matos
aa2a7117ac
Fix generation of C++ constructor for abstract classes.
5 years ago
João Matos
38a037e104
Fix generation of native instance constructors in C++ generator.
5 years ago
João Matos
0f23d871de
Fix marshaling of C++ references in C++ marshaler.
5 years ago
João Matos
7acd580914
Minor refactoring to allow better IDE inspection and debugging.
5 years ago
João Matos
285f3f6ee0
Rewrite GenerateEnumFromMacros to search through multiple translation units.
5 years ago
João Matos
a6fc9fa8e4
Fix CppTypePrinter to check for typemaps for tag types and keep track of them.
5 years ago
João Matos
21ec93209e
Implement a few overloads in CppTypePrinter that trigger the type maps checking code.
5 years ago
João Matos
15efafb942
Fix ignore type checking to take type maps into account.
5 years ago
João Matos
6d4e9408a0
Fix ignored declaration checking to properties desugar field types.
5 years ago
João Matos
a4766719cd
Fix GetterSetterToProperty pass heuristic to also detect “to” as a verb.
5 years ago
João Matos
0be50847df
Minor formatting fixes.
5 years ago
João Matos
41a366597e
Reformat long lines in CppTypePrinter.cs.
5 years ago