josetr
1a3e53af68
Add option to control whether CppSharp should be allowed to rename symbols
3 years ago
Ahmed Elsayed
c281f57b52
Add Experimental Initial Span ( #1651 )
...
* Fix NotImplementedException
* Add Experimental Span
* Fix Some Problems and Comment
3 years ago
Joe Hull
81351632d5
Use WeakReference<T> in NativeToManagedMap to allow finalizers to run. ( #1648 )
4 years ago
Joe Hull
748b7b5d03
Add a mechanism to selectively initialize allocated unmanaged memory in the default constructor.
...
* feature: Add a mechanism to selectively initialize unmanaged memory in the default constructor. (C# Only at this point).
* Use the global:: prefix when calling InitBlock
4 years ago
Joao Matos
f0becc879c
Add experimental GenerateExternalDataFields option and supporting code.
5 years ago
josetr
7446ed2927
Change `GenerateSequentialLayout` default value to `true`
5 years ago
Joao Matos
27cd76ebc9
Document recently added GenerationOutputMode option.
5 years ago
Joao Matos
11d9f3ba50
Rework Generator interface and add GenerationOutputMode option.
5 years ago
João Matos
2fb1376c4f
Add an option and checking for generation of deprecated declarations.
5 years ago
João Matos
cfba72ce1b
Initial C++ generator backend.
5 years ago
Dimitar Dobrev
b12acfcce7
Upgrade ANSI marshalling to UTF-8 marshalling
...
UTF-8 is backwards-compatible with i.e. a strict superset of, ANSI, so we can safely marshal any ANSI as UTF-8 and thus we gain UTF-8 support for free.
Also fixed leaking memory when passing strings to native code as nobody ever freed the previously used Marshal.StringToPtr.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 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
804f69498c
Add `UsePropertyDetectionHeuristics` option to `DriverOptions`.
8 years ago
Dimitar Dobrev
e8e100be7b
Fixed the generated C# when a constructor takes a specialisation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
9e921ed1cd
Clarified that C# support for templates is still experimental.
...
It's difficult to entirely remove them now because there already are tests.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
20fcb19436
Restored the option for generating one C# file per unit.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
23e7dec1f5
Made the generation of templates optional and off by default.
...
Templates are still experimental and we don't have automatic compilation of C++ symbols so it's risky to always have them enabled.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Mohit Mohta
185cbfdcf6
Deleted Obsolete Options and replaced them with Modules ( #828 )
...
Fixes #766
8 years ago
Joao Matos
adac942b38
Initialize compilation options.
8 years ago
Joao Matos
ac1c25a848
Remove Embeddinator-specific options from CppSharp.
8 years ago
Joao Matos
5857c2d17c
Split compilation options into Compilation.cs.
8 years ago
Dimitar Dobrev
38f247b1db
Merged the libraries for inlines and templates into one.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
8646d3e077
Obsoleted the direct settings for wrapped libraries in the options.
...
Modules should be used instead.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
77f809bce2
Unify common CLI and C# comments and documentation generation.
9 years ago
Dimitar Dobrev
ab32637e14
Fixed the generation of sequential layouts to handle unions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Alin Gherman
6e42ef36a6
Add the GenerateSequentialLayout option
...
Signed-off-by: Alin Gherman <Alin Gherman>
9 years ago
Joao Matos
ac6be2eccf
Added generator-specific options from Embeddinator.
9 years ago
Joao Matos
73e458cb81
Added general-purpose compilation options from Embeddinator.
9 years ago
Joao Matos
71f60c46fd
Added C# regions to organize and group options by categories.
9 years ago
Joao Matos
0602cf403b
Group all module options.
9 years ago
Joao Matos
c8f8d016b0
Document and organize a few more options.
9 years ago
Joao Matos
c42bd6eeaa
Rename the OutputDebug option to GenerateDebugOutput and document it.
9 years ago
Joao Matos
cb3e9edf44
Remove IgnoreParseWarnings option and replace functionality with Verbose option.
9 years ago
Dimitar Dobrev
21233a6622
Hid most internal details of the generated code from users.
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
Dimitar Dobrev
458f7ff25b
Deleted the non-working marshalling interface and the option for it.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b648471866
Removed 4 useless options.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
c0184ff018
Removed an option not used anywhere.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9cb7155679
Enforced the option for generating partial C# classes by removing it.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ad5505f113
Enabled multiple inheritance, and removed its option, in the C# generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
a77bc2a91f
Separate parser options from driver options.
...
This will break API compatibility, you will have to update your options setup code.
9 years ago
Dimitar Dobrev
b77d2ccdde
Ensured the system module only contains units from the current run.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
f197aada99
Made the C# end always generate one file per module.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
af81834b38
Added a special system module to contain all system units.
...
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
c1ee47d755
Changed the matching of explicitly patched virtual functions to use qualified names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
dc84c9b765
Added an option to parse all headers at once - much faster.
...
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
Joao Matos
ff94c1752a
Fixed typo in Options.cs added in 6855901ca6
.
...
Closes https://github.com/mono/CppSharp/issues/649 .
9 years ago