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>
12 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
triton
fed9031775
Fixed support for C++ conversion operators.
12 years ago
Dimitar Dobrev
79883199f5
Prevented the renaming of constructors if there is duplication of names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
84fba50cf6
Extended the searching for type maps to try both qualified and unqualified names and both full template declarations and just templated types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
511957882a
Fixed the C++-printing of templated types not to append an additional "::".
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
9d1687dbc4
Improved the property generation by matching with an "is" prefix for read-write properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ae1351d2b5
Improved the property generation by matching with an "is" prefix for read-write properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
8a502835f7
Added a check for 'null' before getting the native pointer of a wrapped object.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
7ecafc9858
Prevented renaming of methods when a base class has a property of the same name. Made the delegates used in abstract implementations prefixed with an underscore and internal.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
47f03ae68c
Added tests about the dereference and prefix/postfix operators. Fixed multiple inheritance not to include operators in interfaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
9deaa403bc
Fixed a crash when setting up v-tables.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
961316f96d
Fixed the new tests for properties to work around the existing unrelated bug of incorrect field values.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
501f123277
Removed a check for const-ness because of a parser bug. Added tests for properties of complex types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
07c5f7339f
Simplify the tests Main method.
12 years ago
triton
d114ac0f0e
Renamed LanguageGeneratorKind to GeneratorKind.
12 years ago
Dimitar Dobrev
19bae92f9b
Added a fake option so that the build stays healthy since the C++/CLI-back-end does not properly support properties yet.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
fcb1ab67ca
Added tests for properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
acbdf7d82a
Added a test for fixed arrays which showed that setting actually worked incorrectly.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
159a65d6bb
Fixed a bug with multiple inheritance and an indirect return type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
444a6e639f
Fixed the generation of fields of a type def type by correctly desugaring.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
5b6beaaf33
Added a test about operators in nested classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
2091d71242
Added a test about the type def - to a function pointer - incorrectly resolved to void*.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
88d5192684
Wrapped conversion (cast) operators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
07beb47048
Converted return types to their complementary interfaces, if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
3a9eef1e80
Added a new pass converting all parameter types to their respective interfaces, if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d7a91d1719
Added a fake option for multiple inheritance so that the build stays healthy.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
f07ddf79fc
Replaced the vague checks for explicit interface impls with a specific property.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago