triton
5a27285f65
Fixed CLI marshaling of in/out parameters under some cases.
...
Closes pull #269 .
11 years ago
Dimitar Dobrev
f77d394eb1
Generated methods and variables of base classes of value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Tom Spilman
ab4440fb14
Fixed in/out for CLI.
11 years ago
Tomi Valkeinen
1cd9f0a16c
Remove PrimitiveTypes Int8 and UInt8
...
As enum PrimitiveType is supposed to represent C++ types, having Int8
and UInt8 there is not correct.
This patch removes those values. As Int8 and UInt8 were set to be
equivalent to Char and UChar, we can just change all references to Int8
and UInt8 to Char and UChar.
This doesn't change the behavior, but makes it clearer that the types
for 'char' and 'unsigned char' are not necessarily 8 bits.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
4e185973e5
Normalize all the line endings
...
Normalized all the line endings with:
git rm --cached -r .
git reset --hard
git add .
git commit -m "Normalize all the line endings"
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Elias Holzer
0c260bd223
Improved support for indexed properties.
...
More types and types with different qualifiers are supported now - in both backends. See test cases for details.
11 years ago
Elias Holzer
6145bf600b
Do not generate the destructor/finalizer pair if the destructor of the native class is protected.
...
Had to fix line endings (LF) in the CLI* files.
11 years ago
Elias Holzer
474f82b513
Added support for explicit conversion operators and added new pass which will create implicit and explicit conversion operators out of single argument constructors.
...
Conflicts:
src/Generator/Passes/CheckAmbiguousFunctions.cs
src/Generator/Passes/CheckOperatorsOverloads.cs
11 years ago
marcos henrich
0300f45c1b
Replaced usage of «IsGenerated with IsDeclared when handling with base classes and value types properties.
11 years ago
marcos henrich
3f96bdbfe3
Replaced declaration IgnoreFlags by GenerationKind. Added methods IsInternal and IsDeclared to declaration. Replaced IsGenerated = true by GeneratioKind = GeneratioKind.Internal. Deprecated Ignore, replace Ignore set by ExplicityIgnored, replace Ignore get by IsGenerated, IsInternal or IsDeclared.
...
Conflicts:
src/Generator/Passes/CheckOperatorsOverloads.cs
11 years ago
Elias Holzer
3144976349
Removed unnecessary Desugar() calls when testing whether or not a type is primitive.
...
The extension method IsPrimitiveType does the desugaring - see 55bbba46dd
.
11 years ago
Elias Holzer
e6cb543c36
Fixed overloading of an indexed properties by removing the hard coded "int index" part.
11 years ago
triton
4a98f69df5
Added an explicit option to generate copy constructors.
11 years ago
triton
9c07283ff0
Fixed CLI getter/setter property generation (with tests).
11 years ago
marcos henrich
c57ceb86c1
The name of the class containing static methods generated from C++ functions is no longer based on the option OutputNamespace.
11 years ago
marcos henrich
5484758507
Added DriverOptions to CLITypeReferenceCollector.
11 years ago
marcos henrich
ec93889b64
Using property ExplicitlyIgnore instead of Ignore, so types that are not referenced can still be referenced.
11 years ago
marcos henrich
afde77e968
Refactored multiple similar foreach loops to a simpler version.
11 years ago
triton
e95a2929a8
Fixed handling of property indexers in the CLI generator.
11 years ago
Øystein Krog
d3e963ff19
Move helper methods in Type out from class and into extension class TypeExtensions
11 years ago
Dimitar Dobrev
72089a499e
Marshalled C++ char as Mono/.NET char instead of sbyte for a more friendly API.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
8e9d4f9c31
Fixed generation of copy constructors for CLI value types.
12 years ago
triton
0a102d8fbc
Added better wrapping for static classes.
12 years ago
Dimitar Dobrev
85e56de487
Applied Helpers.SafeIdentifier in the name-cleaning pass in order to get correct names in type maps.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
3849c0e0c0
Fixed type maps processing bugs.
12 years ago
Øystein Krog
c191d0b337
Add new option (DependentNameSpaces) that allows for specifying custom using statements/namespaces in generated units
12 years ago
Dimitar Dobrev
e1a12027ec
Wrapped value typed fields with properties in order to have changes reflected to the native pointer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
d49a1eedb1
Use the existing instance identifier constant in the CLI backend to match the C# generator.
12 years ago
triton
0f76dc0090
Added experimental destructors/finalizers support.
...
This has exposed some underlying bugs on some pieces of generated code, so I've put it under an option temporarily.
Fixes #148 .
12 years ago
Dimitar Dobrev
9686187eb1
Wrapped properties of non-primitive value types as fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
b47fa98c94
Fixed a regression when marshalling arrays. Migrated the C++/CLI back-end to property usage.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
c41d195b88
Improved the exception message for marshaling failures.
12 years ago
triton
61dc4960f8
Added explicit constraint support to the experimental function templates generation.
12 years ago
triton
872cd1c812
Add the method to the marshaling context when handling value type ctors.
...
This fixes a marshaling regression with extra erroneous "&" which was caused by the fix done a couple days ago.
12 years ago
triton
fed9031775
Fixed support for C++ conversion operators.
12 years ago
Stephen Kennedy
0c7a72c400
Hack for CLI version
12 years ago
triton
c0c212928d
Reworked CLI type references to only filter namespaces only filter (effective) namespaces when generating forward references and not includes.
12 years ago
triton
79d8528625
Fixed generation of nested declarations in classes (part 2).
12 years ago
triton
bed92373ec
Fixed out reference parameters in CLI backend (with test).
12 years ago
triton
66ef3c55ff
Reworked support for out parameters in both backends and added a test.
12 years ago
triton
17a8a4cbdc
Fixed generation of native object instantiation to use the original names.
12 years ago
triton
279c9c83cf
Fixed wrapping of null pointers to actually return null CLR references.
12 years ago
triton
0fcb5c0226
Optimized/fixed marshaling for fields as there is no need to create a copied instance of the native object.
12 years ago
triton
02559ed193
Added better support for unary operators.
12 years ago
triton
cf8eaa3a35
Optimized/fixed marshaling for fields as there is no need to create a copied instance of the native object.
12 years ago
triton
a4f1606956
Added better support for unary operators.
12 years ago
triton
8c0c76ca59
Reworked operator overloading support.
12 years ago
Dimitar Dobrev
a9d8e8bf03
Removed the hard-coded "__" from the CLI back-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
bf2dfd375c
Fixed the "ret" conflict in the CLI back-end as well.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
47ba76a966
Remove extra newline.
12 years ago