Dimitar Dobrev
184feac23e
Fixed null arrays in C# to be passed as such to C/C++.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
140a624f43
Added C# marshalling of parameters of type array of objects.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
ce71a3b8a8
Added C# marshalling of parameters of type array of primitives.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
3d9cc3ab70
Added marshalling of parameters of type array of pointers.
...
Fixes https://github.com/mono/CppSharp/issues/932 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
4b374c9084
Fixed the generated C# for two anonymous types nested in another anonymous type.
...
Fixes https://github.com/mono/CppSharp/issues/931 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
4accfbc6ab
Regenerated the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
d4d6354621
Removed unused internals from the generated C#.
...
Fixes https://github.com/mono/CppSharp/issues/936 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
b93674f261
Simplified and optimised the MSVC tool-chain.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
f992cd8280
Removed the out parameter when looking for a version of Visual Studio.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
3cf7c6aa0c
Moved the searching for a VS SDK to a separate method.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
59b4b0de6b
[build] Update Premake binary for Linux.
8 years ago
Joao Matos
460e98bd93
[build] Update to a Vagrant box that actually works.
8 years ago
Joao Matos
6443e811c3
[build] Update provision scripts deprecated Premake code.
8 years ago
Joao Matos
21a12ff01e
[examples] Added an example for the parser APIs.
...
Signed-off-by: Joao Matos <joao@tritao.eu>
8 years ago
João Matos
77ca17929c
Merge pull request #937 from realvictorprm/patch-1
...
Add C++17 to the parser options
8 years ago
Victor Peter Rouven Müller
9edd7819c2
Add C++17 to the parser options
...
Just to complete the list @tritao 😄
8 years ago
João Matos
4a21598d12
Merge pull request #934 from tritao/parser_refactor
...
[parser] Refactor some code in the parser layer.
8 years ago
Joao Matos
e1200bc577
[parser] Refactor the parser layer.
...
Removes some useless abstractions and unused code.
Signed-off-by: Joao Matos <joao@tritao.eu>
8 years ago
Joao Matos
e1b9cde0e1
[build] Compile.sh script now has improved error handling.
...
Signed-off-by: Joao Matos <joao@tritao.eu>
8 years ago
João Matos
57fb9d2813
Merge pull request #935 from atsushieno/fix-linux-toolchain
...
Linux toolchain can be supplied in the same spirit in path probing on Mac.
8 years ago
Atsushi Eno
8631baab59
Linux toolchain can be supplied in the same spirit in path probing on Mac.
...
i.e. just assume "/usr" here.
8 years ago
Dimitar Dobrev
358650a155
Enabling empty arrays of non-primitives only when not using MSVC.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
ec66216345
[generator] Ignore zero-sized constant C array types.
8 years ago
Joao Matos
8d94a07034
[csharp] Simplify some more type printing code.
8 years ago
Joao Matos
a158577241
[ast] QualifiedType in ITypedDecl is now a setter.
8 years ago
Joao Matos
0d5b39de75
[generator] Small refactoring of the CheckIgnoredDecls pass invalid type processing.
8 years ago
Joao Matos
0f0c85de24
[csharp] Refactor array type printing code to use interpolation strings.
8 years ago
João Matos
2df1c9bdb9
Fixed typo in developers manual.
8 years ago
Joao Matos
a560297ab8
[driver] Compilation platform is now nullable by default and validated to the host platforms.
8 years ago
DevSidious
07ea284431
[parser] Added LLVM target initialization and supporting libraries for parsing inline assembly.
...
Fixes #923
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
João Matos
10aa7a7e60
Merge pull request #925 from tritao/dev-docs
...
Some improvements to the dev and user's manual.
8 years ago
Joao Matos
4508fe65dc
Some improvements to the dev and user's manual.
8 years ago
João Matos
6a94f47f77
Update BuildingLLVM.md
8 years ago
Joao Matos
b7d5b2568f
[build] Update some deprecated Premake build code.
8 years ago
João Matos
d5263ab8a8
Merge pull request #924 from tritao/docs
...
[docs] Update the getting started guide and LLVM compilation guide.
8 years ago
Joao Matos
bbd9ab8e69
[docs] Update the getting started guide and LLVM compilation guide.
8 years ago
Dimitar Dobrev
6fa9778859
Cleaned up MSVCToolchain.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
5aaa0a0351
Fixed a crash when trying to use a VS version missing from the system.
...
Fixes https://github.com/mono/CppSharp/issues/922 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
e89c9f98de
Deleted useless code from the pass for delegates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
d1461fd101
Fixed the code style of the C++ printer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
046c428852
Fixed the binding of multiple identical function pointers with a calling convention.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
16aa74a20b
Changed an event to a context with a read-only list of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Mohit Mohta
8a2e813445
Merged Delegate Pass and pass for Anonymous Delegates and added the following improvements alongwith.
...
1. Got rid of Anonymous Names.
2. Merged the common code for Delegate Generation.
3. The delegate pass also works for C++/CLI now.
4. Fixed the calling conventions of delegates for both, C++/CLI and C#.
5. Ensures that if a delegate is used for a virtual as well as something else, it finally ends up as public.
6. Fixed the code generation when the return type of a method is a function pointer that has been used somewhere else as well.
7. Added Access and Calling convention to the delegate definition.
The only thing left is to get rid of the hack used, i.e move the code in VisitFunctionDecl to VisitParametersDecl. Somehow, it's not working right now.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
9c26b7e648
Fixed the setting of name-spaces of parameters to actually work.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
649df6e5e7
Made all lists of parameters read-only.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
João Matos
7db6104f13
Update UsersManual.md
8 years ago
Dimitar Dobrev
2f271207fd
Enabled a test previously failing on Linux because of old Mono.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
973fdafdfe
Generated properties from setters returning Booleans.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
f17441f371
Completed the handling of separate return types when generating functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
faa9512a84
Simplified the generation of C# for property setters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago