Dimitar Dobrev
f7707629ef
Fixed the getting of values mapped to enums, from pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
d14ad944fc
Fixed the type map for an enum to also handle pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6dadab3796
Fixed the generated code when a default argument uses a constant.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0a7b396842
Fixed the generated code when the C++ parameters are named "arg1", "arg2", etc.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
27c612ecd0
Ignored abstract operators because they cannot be wrapped in Mono/.NET.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2624c91e75
Fixed the comparison involving typedefs to use their real types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
bbb8aeb4af
Fixed the fully qualified names to include "global::" in the C# end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
8d2c5f49b5
Prevented changes in the casing of functions bearing the same name as their name-space.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0798c5428c
Fixed a case of default arguments which use nullptr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
cdc51afc0e
Extended the parser and AST to handle template template parameters.
...
For more details see the Clang documentation ( http://clang.llvm.org/doxygen/classclang_1_1TemplateTemplateParmDecl.html ).
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
546c32d4a7
Generated internals for template specialisations from dependent libraries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
22ba637aec
Changed the tests for dependencies to use one combined AST.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e50e9416d9
Handled internals of nested template specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
eb748db73b
Handled nested template specialisations with fields of the place-holder type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
3718d36854
Removed the internals of partial template specialisations - not supported yet.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
a10f034c9b
Fixed the C#-printing of template specilisations with bool.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
69bd424c75
Temporarily suspended the completion of types because it causes problems while not useful yet.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b41dc261ed
Added support for directly wrapping entire sets of interdependent libraries.
...
It's realised by using modules. Users now have to define one module for each library they want wrapped while setting the driver up.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0d5c4539a2
Generated internals of types nested in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
5f679576e0
Fixed the generated code when a template has a base type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
f29e3a2240
Fixed an assert when parsing nested types which use template instantiations of void.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
50a5d328db
Fixed an assert when parsing template instantiations of void.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2403d7d3a3
Replaced the useless internals of templates with the internals of their specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
b53aaae81b
Fixes parsing of K&R-style C functions with no prototypes.
...
Fixes issue #641 .
9 years ago
Dimitar Dobrev
0e344b4b8a
Tested generation of C# comments at run-time.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1d3e821093
Fixed #453 - incorrect comment generation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
38f1707474
Fixed #638 - incompilable generated C# code when a function takes a protected enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
fc84e6bf1e
Added reading of dependencies of Mach-O (OS X) binaries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Abhinav Tripathi
9a7927613e
Fix generation of functions with union params
9 years ago
João Matos
4d89bfa001
Fixed code generation for constant arrays of function pointers.
...
Fixes https://github.com/mono/CppSharp/issues/632 and SDL sample.
9 years ago
Joao Matos
62d5f00c77
Fixed code generation of subscript operator for types with non-default parameter usage.
9 years ago
Joao Matos
f8bd69790e
Fixed marshaling of typedef'd const char strings.
9 years ago
Joao Matos
fb1b522902
Disable Empty test project to fix the build.
9 years ago
Joao Matos
9133c389ca
Fixed a crasher in delegates pass when processing libraries with no declarations.
...
This is admittedly a pretty unusual case but still a valid one.
Also adds a new test to make sure we do not regress.
9 years ago
Dimitar Dobrev
a2fd71cc74
Enabled getting of template specialisations when type locations are invalid.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
24e53f4f79
Fixed expression parsing of dependent type default unary expressions.
...
Fixes issue #618 .
9 years ago
Dimitar Dobrev
9ab71aeac7
Fixed the parsing of subclasses of dynamic template instantiations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
da56988266
Fixed marshaling of null UTF-32 wide strings.
...
Closes issue #606 . Thanks to magnet31 for reporting the issue.
10 years ago
Abhinav Tripathi
d753c8d637
Moved property IsImplicit to Declaration from Method.
10 years ago
Dimitar Dobrev
b60de160f9
Fixed a crash caused by deleting forward declarations other declarations might depend on.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Abhinav Tripathi
347d0cdbaf
Fix for fn call when def argument is interface.
10 years ago
Dimitar Dobrev
1471e6f2fb
Simplified and tested the reading of line numbers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
68e9bb3756
Fixed a regression when a default value uses a constructor with a temporary expression.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
3402952388
Called the most derived destructor when it's not virtual.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
48fece6aa1
Revert "Threw an exception when there are parsing errors, and handled it in the test clients."
...
This reverts commit 01e872b30d
.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
01e872b30d
Threw an exception when there are parsing errors, and handled it in the test clients.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Abhinav Tripathi
e9152a79b5
Fixed missing namespace problem.
10 years ago
Dimitar Dobrev
54cb17f313
Removed the exception when disposing of objects not originating from managed code.
...
This way we can destroy C++ objects the user is responsible for.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
d328b7ce34
Properly handled nulls passed to C++ refs by throwing an exception.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
f7b4d6ce83
Fixed the wrapping of operators for non-equality to handle null.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago