Dimitar Dobrev
eec05041a3
Fixed the generated C# for templates with > 1 ctor taking a pointer to a class.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
3ca1579d02
Fixed the generated C# for pure virtual functions with default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
4b310875d3
Enabled classes having specializations for secondary bases to call their extensions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
c264690e90
Fixed the generated C# when a constructor has a default parameter with type an external specialisation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
fceb204a98
Fixed the generated C# for members of types nested in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Rokas Kupstys
d7682ef6d4
Add ability for managed module wrapper to reference extra assemblies.
8 years ago
Dimitar Dobrev
fd73bef752
Fixed a crash when there are parsing errors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
3b43a0b168
Cleaned up the additional parser options after parsing headers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
33bc64ad9a
Reused the parsing of headers to get the target info as well.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
5e17200af8
Moved the method for building parser options specific to a file.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
eef53dfce2
Added a new verbose flag to the CLI tool and improved verbose handling.
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
Joao Matos
e1200bc577
[parser] Refactor the parser layer.
...
Removes some useless abstractions and unused code.
Signed-off-by: Joao Matos <joao@tritao.eu>
9 years ago
Joao Matos
a560297ab8
[driver] Compilation platform is now nullable by default and validated to the host platforms.
9 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>
9 years ago
Dimitar Dobrev
27481289d6
Fixed the sorting of modules to also work with manually added dependencies.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
8b9c3ab89f
Fixed a regression when a public virtual is overridden as private.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
cece243a06
Equalised the access of overrides and their base methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Mohit Mohta
5227e517fc
Added an option to enable or disable RTTI ( #892 )
...
Fixes #819
9 years ago
Dimitar Dobrev
f646647159
Ignored system declarations before checking for others to ignore.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1dc5c34662
Removed the useless marking of supported system template specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9c0f80f69d
Bound the supported specialisations with generic syntax in the generated C#. ( #880 )
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Kimon Topouzidis
d7c8a61ecc
Manipulated comments to avoid duplication of summary block. ( #876 )
...
Fixes #759 Works around: https://bugs.llvm.org/show_bug.cgi?id=33333
9 years ago
Dimitar Dobrev
3d9b8df2e3
Merged the pass for ignoring move ctors to the one for ignoring in general.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Mohit Mohta
b4462274c2
Added exporting of std-symbols ( #862 )
9 years ago
Dimitar Dobrev
c740a34dfa
Fixed the binding of a copy ctor when a move ctor exists too.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Kimon Topouzidis
55298e026a
Enabled users to remove any built-in pass. ( #829 )
...
Fixes https://github.com/mono/CppSharp/issues/802
9 years ago
Dimitar Dobrev
38f247b1db
Merged the libraries for inlines and templates into one.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
fe85a33ba1
Restored the renaming of enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
17f768f6c4
Add classes as rename targets for default renaming pass.
9 years ago
Joao Matos
b7b40ecedc
Move type map setup to driver code.
9 years ago
Dimitar Dobrev
450641d669
Simplified the auto-compilation of the generated C# further.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
5d9380911f
Simplified the auto-compilation of the generated C#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
346a18ee3d
Added an event to the pass for inlines to help compile them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ee171eb9fa
Freed up the native parser options when done with.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
fe0ee21392
Remove and sort usings.
9 years ago
Joao Matos
04ee2e5b7d
Rename CodeGenerator.Templates to Outputs.
9 years ago
Joao Matos
90abca7dc2
Remove CheckVTableComponentsPass.
...
It was added 3 years ago as a workaround for Clang MS vtable layouting bugs which have since been solved upstream.
9 years ago
Joao Matos
cb3e9edf44
Remove IgnoreParseWarnings option and replace functionality with Verbose option.
9 years ago
Joao Matos
fbf43067d7
Refactor the diagnostics system.
9 years ago
Joao Matos
1426f21ff8
Rename TextDiagnosticPrinter to ConsoleDiagnostics.
9 years ago
Dimitar Dobrev
4e3cc50073
Revert "Extended the auto-compilation to add module initialisers, if any."
...
This reverts commit ec241510f7 .
9 years ago
Dimitar Dobrev
ef69bf1b95
Made the case-renaming pass non-optional for Mono/.NET generators.
9 years ago
Joao Matos
1371f89957
Convert CheckMacroPass to be a default pass.
9 years ago
Dimitar Dobrev
21233a6622
Hid most internal details of the generated code from users.
9 years ago
Dimitar Dobrev
ec241510f7
Extended the auto-compilation to add module initialisers, if any.
9 years ago
Dimitar Dobrev
853fba5ef9
Fixed the auto-compilation to work with a custom output directory.
9 years ago
Dimitar Dobrev
cd8cfdd01d
Added a pass for stripping unused STD types.
...
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