Dimitar Dobrev
f09f95d7a4
Remove redundant overrides from the generated C++/CLI
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
42fe2b5dfb
Use explicit native type printer kind in CLI headers code.
5 years ago
Build Agent
e31dc22ab1
CreateInstance factory overload to pass flag informing wrapper if it should own the native pointer passed to it.
5 years ago
João Matos
9ba53acc11
Refactor CodeGenerator.GenerateMethodSpecifier to allow explicit specifier kind.
5 years ago
Build Agent
574fbca2c8
Add declaration context as object to function class block
5 years ago
Build Agent
010099021c
Add blocks for ctor, dtor, and finalizer bodies. Add constructor that takes a bool from the caller to indicate if the callee should own the pointer passed to it or not
5 years ago
João Matos
55a31b05bf
CppTypePrinter now takes a BindingContext for further usage in type maps handling.
5 years ago
João Matos
d3935ec45c
Refactor type printing placeholder and name prefix/suffix code.
5 years ago
João Matos
7bad042715
Refactor CLI handling of enums to be based on generic C generator.
5 years ago
João Matos
ae47fd73bc
Re-use common C++ declaration type printing code in CLITypePrinter.
5 years ago
Joao Matos
6dfd16ba9b
Move `CppTypePrinter` to generators and inherit from `TypePrinter`.
6 years ago
Dimitar Dobrev
efa11ab745
Simplified type maps by unlinking them from declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
b7d3d36ff1
Renamed members related to indentation for more clarity.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 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
f33b162f6f
Ignored inlined name-spaces in the C# gen only.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
38f8207c1d
[generator] Fixed C++ inline namespace processing in CLI.
8 years ago
Joao Matos
09e568d0b3
[generator] Improved processing for C++ inline namespaces.
8 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>
8 years ago
Dimitar Dobrev
8479ed3735
Removed unused parameters from the utility functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
11f1956cde
Remove CLITypePrinterContext and its usage in CLITypePrinter.
8 years ago
Victor Peter Rouven Müller
0a61baa4b6
Completely ignore incomplete classes in C++/CLI ( #823 )
...
Signed-off-by: realvictorprm <mueller.vpr@gmail.com>
8 years ago
Joao Matos
44c2be4375
Abstract generated method override check into AST extensions.
8 years ago
Joao Matos
f70d1d0165
Unify class method specifier code generation.
8 years ago
Joao Matos
157da89ed5
Unify class specifier code generation.
8 years ago
Joao Matos
d4b6476569
Unify block kinds between generators.
8 years ago
Joao Matos
f90c019178
Unify enumeration item generation between CLI and C# generators.
8 years ago
Joao Matos
3bfb24228b
Remove "Ordinary" prefix from BCPL and C comment kinds.
8 years ago
Joao Matos
9a4c0bae82
Renamed RawCommentKind to CommentKind.
8 years ago
Joao Matos
663be36a89
Refactored file preamble generation to use multi-line comments.
8 years ago
Joao Matos
cd777c7c85
Refactored CLITypePrinter to use TypePrinter base class.
8 years ago
Joao Matos
558f6192a2
Generate file preamble in CLI generator.
8 years ago
Joao Matos
38d5bc3094
Convert CodeTemplate.FileExtension overrides to expression-bodied members.
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
Joao Matos
098ff73e52
Rename type map database in binding context.
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
Dimitar Dobrev
d2326a3883
Added processing of type aliases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
4e48af9a4c
Remove the Driver dependency from the generators with a BindingContext.
9 years ago
Joao Matos
fc5c09ab75
Rename type printer context variables in type printers.
9 years ago
Joao Matos
857b25db2f
Simplified some code.
9 years ago
Joao Matos
9c56b56b68
Rename CLITextTemplate to CLITemplate.
9 years ago
Joao Matos
573dc623f8
Renamed class names to match file renames.
9 years ago
Joao Matos
f6355ab0f9
Renamed some files.
9 years ago
Dimitar Dobrev
3cd024cccf
Added marshalling of std::string to the C# end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9b51e30643
Fixed the option for output name-spaces to allow eliminating them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
517b1a5ccd
Saved the offsets per base in the layout of a record.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
c4c2ef21ce
Filled in all missing v-table pointers in record layouts.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e2b8f44565
Properly fixed the offsets of fields in all possible cases.
...
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
e4200f4690
Fixed the wrapping of template parameters in the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ef66b38525
Removed a redundant parameter from CppTypePrinter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago