Dimitar Dobrev
3d72c2fca4
Added renaming of variables.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
c7253b456b
Fixed the assigment of structs with private fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
19f3400cff
Extended the generation of implicit ctors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Pyry Kontio
9e318355fa
A test for floating point default arg
11 years ago
triton
0e574bdd5b
Fixed wrong code generation for constant-size arrays of non-primitive types.
...
References #380 .
11 years ago
Pyry Kontio
99f643d13f
Test that demonstrate the "new 0" and show some other erroneus behaviour too.
...
Implemented CastExpression. ImplicitCast and ExplicitCast statement classes.
Fixed implicit constructor string generation.
Implemented CtorExpr.
All test cases pass.
Fixed indentations, streamlined the code.
Fixed regressions.
Fixed regressions.
Adding a test case not covered before.
Fixed, refactored and simplified things.
Still more fixes (0 to null ptr conversion, enum check). The additional test passes now too.
11 years ago
Dimitar Dobrev
191821b1d4
Fixed the generated code for default value of 0 to a class mapped to an enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
26df3e0c77
Improved the handling of numeric default values.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
88293d5c84
Fixed invalid names of static field (variables).
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
b9042d72b5
Fixed a regression causing ignored types with bases without empty ctors to fail.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f1c0d7a82a
Fixed the ambiguity in the C++/CLI branch when a native ctor takes anything mapped to IntPtr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
261473cef8
Extended the support for fixed arrays to the C++/CLI back-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
c4b48cf185
Fixed some problems with arrays of void after mapping void* to IntPtr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
30cb2cbe85
Fixed an ambiguity between an internal ctor and a potential wrapped one.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
880e109a2d
Fixed incompilable code caused by VS failing to run all pre-build events.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
2894999696
Fixed the generation of constructor overloads synthetised because of default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
1dbc76f134
Fixed a bug when a char parameter is assigned a default value of 0.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
d2e01b1eda
Fixed the generation of copy ctors when mutiple inheritance is involved.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
de4c551fda
Worked around a specific default argument construct used in Qt.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
95547dbec8
Fixed default arguments with enums directly declared in headers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
d481cf8078
Fixed the renaming of overloads generated because of default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
88a88599e7
Fixed the wrapping of bit masks in default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs
11 years ago
Dimitar Dobrev
2bc06983f3
Fixed the generation of default argument when a reference is assigned a value.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
17fa53ac06
Fixed the advanced pass for properties to skip ignored methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
db30cde06d
Handled indirect return params in type maps.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
a5b59f67f8
Fixed bugs with abstract properties in abstract impls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f16a5ff6e0
Ensured default values, if any, of parameters of overrides, are generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/Generator/Driver.cs
tests/Basic/Basic.cpp
tests/Basic/Basic.h
11 years ago
Dimitar Dobrev
ef4be0b959
Fixed the generation of code in a single file.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
0499556bfe
Added support for default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
9e480dd364
Fixed the renaming pass to account for overloads of functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/AST/Class.cs
src/Generator.Tests/Passes/TestPasses.cs
src/Generator/Generators/CSharp/CSharpTypePrinter.cs
11 years ago
Dimitar Dobrev
cbf4afae1f
Prepended 'get' and 'on' to methods and events respectively when there's a conflict with a newly generated property.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
7f927db6c8
Renamed ASTContext parameters.
11 years ago
Tomi Valkeinen
f6679213b2
fix CSharpTemp.TestDestructors
...
TestDestructors test cannot be run twice as a static variable holds data from
the first run.
Add an init function to set the static variable to a known state.
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
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
triton
cf9df7330e
Fixed more declarations to define their members at global scope.
11 years ago
triton
341140b929
Factor DLL API macros into its own shared header for tests.
11 years ago
triton
df188d92f8
Fixed the tests by adding another option for the advanced property pass.
...
Long-term, I'd like to see both passes merged...
11 years ago
triton
a070912c1a
Enable copy constructors for some tests since they rely on their existence.
11 years ago
triton
fe0c6ebfa8
Fixed test case by using CppSharp.AST.Extensions.
11 years ago
Dimitar Dobrev
7477b90023
Moved the tests for copy ctors to separate classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
fee1809ca5
Wrapped copy constructors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
ebd692e6aa
Fixed the renaming pass to consider forward declarations and function type defs.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
4c5d933cd2
Added support for marshalling arrays of pointers to primitives.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
4cfd5c083e
Remove unnecessary NUnit attributes from the tests.
12 years ago
triton
1b7947538a
Move all the testing infrastructure to CppSharp.Generator.Tests.
12 years ago
triton
3fd94bf482
Added better support for destructors.
...
Also changed the native identifier mangling scheme to add some shorthand for the type of special method. This makes it simpler to read through the generated binding code.
Hopefully fixes #142 .
12 years ago
triton
52cf3702a6
Minor formatting fixes.
12 years ago
triton
0c12ef9bd5
Cleaned up some unused usings.
12 years ago
Dimitar Dobrev
6dcb8fa593
Added the option to have attributes generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago