Dimitar Dobrev
1b68ecf239
Fixed the generated C# when a constructor uses an unsupported expression in a default arg.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
5b6a19a0c4
Handled more possible names for type maps when generating the mapped class itself.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
4cb5412915
Fixed a regression when an abstract implementation has a function from a secondary base.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
c16a0287f4
Fixed a regression when wrapping functions which implement secondary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b2a872f431
Merged the passes for properties and made the result non-optional.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
bc9016cf19
Made the generation of conversion operators for constructors non-optional.
...
We are better off always having them because we map to C++ better this way.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
458f7ff25b
Deleted the non-working marshalling interface and the option for it.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b648471866
Removed 4 useless options.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2a369a341d
Simplified the code for generating virtual C# calls.
...
Fixes https://github.com/mono/CppSharp/issues/706 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
055f4c627e
Fixed the generated C++/CLI when a header and a contained name-space bear the same name.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1b41897172
Fixed the generated C# when a header and a contained name-space bear the same name.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
77f45dee38
Fixed the adjustment of the instance in cases of multiple inheritance.
...
Fixes https://github.com/mono/CppSharp/issues/707 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
05c4213c28
Revert "Fixed the adjustment of the instance in cases of multiple inheritance."
...
This reverts commit e43dd1c18f .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e43dd1c18f
Fixed the adjustment of the instance in cases of multiple inheritance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
c0184ff018
Removed an option not used anywhere.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9cb7155679
Enforced the option for generating partial C# classes by removing it.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ad5505f113
Enabled multiple inheritance, and removed its option, in the C# generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
924ceaf85a
Fixed the selection of a virtual table to call virtual methods through in the C# generator.
...
Fixes https://github.com/mono/CppSharp/issues/703 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
1346957a66
Wrap some really long lines.
9 years ago
Joao Matos
54b586d0d0
Simplify CheckForDuplicates, decl is never a PreprocessedEntity.
9 years ago
Joao Matos
8076e5f1c6
Rename TypeDatabase to TypeMaps.
9 years ago
Joao Matos
7a26c11382
Rename VisitLibrary method to VisitASTContext.
9 years ago
Joao Matos
b117410729
Moved typedef declarations to their own file.
9 years ago
Joao Matos
23b17c4df4
Use the qualified pointee type when printing/visiting pointer types.
9 years ago
Joao Matos
4d277afa69
Fixed C/C++ type printing of const pointers with const types.
9 years ago
Joao Matos
6eae58007c
Make TestCompletionOfClassTemplates more robust.
9 years ago
Dimitar Dobrev
d22e084c7c
Fixed the walking of pointer types to use the correct qualifiers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
56c1fab63b
Fixed a bug causing a class layout to have the class as its own base.
...
Fixes https://github.com/mono/CppSharp/issues/702 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
f32375be4f
Refactored and renamed ASTContext.FindOrCreateModule.
9 years ago
Joao Matos
098ff73e52
Rename type map database in binding context.
9 years ago
Joao Matos
6e0a079f7a
Extracted Windows kits toolchain code into its own method.
9 years ago
Joao Matos
cc773d1848
Refactored code to get VS SDK toolchain version in its own method.
9 years ago
Joao Matos
c55a8fa79c
Make it easier to map between the enum-based and integer-based VS versions.
9 years ago
Dimitar Dobrev
db942dc06c
Wrapped the reference qualifier of functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
186312a92b
Fixed missing primitive types in CLI type printer.
...
Partial fix for https://github.com/mono/CppSharp/issues/695 .
9 years ago
Joao Matos
d349134180
Reworked parser bindings build scripts to be more easily re-usable.
9 years ago
Joao Matos
4cb6da31ce
Fixed FindMonoPath to return Mono base path and not binary path.
9 years ago
Dimitar Dobrev
9cbb13053a
Fixed the generated code when an override has its access increased.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
7263c74b8f
Whitespace fix.
9 years ago
Joao Matos
e1b35398eb
Renamed UppercaseFirst string helper to Capitalize.
9 years ago
Joao Matos
71c6e72959
Added convenience ctor to TypedefType.
9 years ago
Dimitar Dobrev
6cbd047392
Fixed the auto-compilation not to use an old and buggy CS compiler on Windows.
...
Fixes https://github.com/mono/CppSharp/issues/688 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
e7f9178ff4
Added Mono toolchain finding support code.
9 years ago
Joao Matos
e1fae44c64
Refactored CppTypePrinter to be more easily extensible.
9 years ago
Dimitar Dobrev
7c9c91acc3
Fixed the generated C# when a method with a default arg is named the same as another, non-default, of its parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
a04c752b33
Fixed the generated C# when an abstract function has no default args but its overrides do.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6245f9e105
Fixed the generated C# when an abstract function in a secondary base has a non-primitive default argument.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e68f9bc041
Revert "Improved diagnostic output in CheckIgnoredDecls."
...
This reverts commit 7b1abc79bc .
It breaks the build and it's not trivial to fix it, so given that it's just logging, we'd better disable it for now.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
21dd5d71a8
Fixed ASTVisitor.VisitUnsupportedType to be virtual.
9 years ago
Joao Matos
284ee9eba3
Added support for printing variable arrays as pointers in C type printer.
9 years ago