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
Joao Matos
e9992894cf
Type ignore checker will now check for ignored array elements and unsupported types.
9 years ago
Joao Matos
7b1abc79bc
Improved diagnostic output in CheckIgnoredDecls.
9 years ago
Joao Matos
76ce6c7836
Added an unsupported type node to the AST.
9 years ago
Joao Matos
e90ffcc5bd
Added Objective-C parameter printing to type printer.
9 years ago
Joao Matos
4c53c7d088
Added more generator languages kinds to C++#.
9 years ago
Dimitar Dobrev
d2326a3883
Added processing of type aliases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6ed05c2b5d
Fixed the generated C# with properties constructed from a returned value and a taken reference.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
3ee6165053
Fixed the generated C# when a virtual function returns a primitive pointer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
7da5acda65
Fixed the handling of covariant returned types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9fe2d307dc
Fixed the generated C# when marshalling a field of type const wchar_t*.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1932798d45
Aligned pointers to classes when passing them converted to their secondary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b16bb0a979
Moved the change of order when visiting properties to just the renaming pass.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
34c75d28f6
Avoided ambiguous local variables when marshalling arrays.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
be32825bed
Added support for wrapping variable arrays.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
829422cc86
Fixed invalid generated C# code when having a field renamed the same as a method.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9da51c1e16
Changed the renaming not to remove the underscores from all-capital names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1aa85ab9f7
Fixed a bug causing some functions with pointer parameters to be marked as ambiguous when they aren't.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
bcd6b226fa
Fixed the marshalling of arrays.
...
Fixes https://github.com/mono/CppSharp/issues/680 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
63612a875a
Removed the renaming of fields because they are no longer exposed.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
730fe0d407
Changed partial template specialisations with all arguments pointers not to be trimmed away.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1bcf5c514e
Wrapped units with ignored classes because of their internals.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
979057d263
Fixed the generated C# code when wrapping fixed arrays of enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
7b510bec42
Simplified the name of the internal structure.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b2a90a5d80
Prefixed the internal structure for the C# end to avoid naming conflicts.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
70f0851635
Ignored extern templates because they just forward to real specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0531573875
Restored the sorting of modules by dependencies which had regressed.
...
It had stopped working since the introduction of the system module.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e6c4bb9cc5
Fixed a crash when overrides change the sugaring of involved types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
5d8ecf32d7
Extended the AST with the GCC vector type ("__attribute__").
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
00e7225a31
Fixed a crash caused by class template specialisations parsed just as classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0a5c73dc48
Added explicit GNU versions to the language options of the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
8d765cec6b
Fixed an exhausted stack when parsing deep headers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
749c2b17ec
Renamed ParserOptions to CppParserOptions and ParserOptions2 to ParserOptions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
50ee414799
Fixed the C++ type printer to handle const value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ab95f67aa2
Added "unordered_map" as a standard header in the C++ source file for system templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9611e718a8
Removed a redundant statement which also caused a crash in Qt#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
d32a9886b7
Added property to set diagnostics level.
9 years ago
Joao Matos
e62448638a
Be more specific when applying C++ language build options.
9 years ago
Joao Matos
32efe89731
Use Premake workspace token instead of builddir to fix builds for dependent projects.
9 years ago
Joao Matos
19fb6ca7d6
Fold toolchain parser setup to parser options.
9 years ago
Joao Matos
f8f4c2ecc5
Fixed Windows build.
9 years ago
Joao Matos
e2e7079866
Factor .NET framework build version setup code to fix a bug for dependent projects.
9 years ago
Joao Matos
5f0d207fa5
Fixed CheckDuplicatedNamesPass to check for null before using CurrentOutputNamespace.
9 years ago
Joao Matos
65fc10680a
Move SourceLocation to CppSharp.AST.
9 years ago
Joao Matos
e8064e3f4e
Minor build fixes.
9 years ago