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
dddd165001
Fixed the generation of a null check before returning a value.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
01bc87bde9
Added a check for ignored ctors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
65cac93259
Included ignored fields in the wrappers for better marshalling.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
d6d0d681c9
Fixed a compilation error when wrapping abstract destructors.
...
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
a7d0ef13f9
Removed a needless renaming of parameters.
...
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
Tom Spilman
27a2016f8a
Added reference test case.
11 years ago
Tom Spilman
7e8f743228
Fixed const char string CS_IN_OUT case.
11 years ago
Tom Spilman
4bddc0798b
Added StringOutRef test.
...
Moved const char string in/out into its own test function.
11 years ago
Tom Spilman
d4e4aaffad
Fixed CLI and CSharp support for out parameter const char strings.
...
Added test for out parameter const char strings.
11 years ago
Dimitar Dobrev
798e086ef9
Added reading of dependencies of ELF libraries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Tom Spilman
997de0e836
Added test for static protected methods/properties.
11 years ago
Tom Spilman
5e7c70bb1e
Changed generator to use CheckMacroPass.
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
Tom Spilman
9159e531f4
Added EnumInOut tests.
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
triton
c91899ddf3
Whitespace change.
11 years ago
Dimitar Dobrev
e4b860c053
Fixed wrong code generated for indexers in value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
7f927db6c8
Renamed ASTContext parameters.
11 years ago
Tom Spilman
ba8c29c1ac
Fixed simple mistake in the EnumOut tests.
11 years ago
Tom Spilman
5e63406de0
Added tests for out enums.
11 years ago
Tom Spilman
d39ec43431
Whitespace fix.
11 years ago
Tom Spilman
51fa468cfa
Added unit test for in/out for primitive parameters.
11 years ago
Tomi Valkeinen
13dc201053
Basic: fix compile warning
...
'operator|' : recursive on all control paths, function will cause runtime stack overflow
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
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
Elias Holzer
79f0d41d5c
Added failing test for the CheckAmbiguousFunctionsPass.
...
Test shows that all methods get ignored instead of just the two const overloads.
11 years ago
Elias Holzer
06218ec48a
Extended the ObjectOverridesPass to generate ToString methods if the insertion operator (<<) is overloaded.
11 years ago
Elias Holzer
933df5e65a
Improved support in parser for template classes and functions.
...
* Use clangIndex to identify declarations across translation units.
* Added new Find*ByUSR methods and removed unused Find*(IntPtr) methods.
* Added Depth/Index and IsParameterPack fields to TemplateParameterType.
* Fixed member initialization issues in C++ Method class.
* Added AST tests for function and class templates.
* All tests pass with new and old parser.
11 years ago
triton
7594df6d11
Skip dependent types when handling CLI type references.
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
triton
af06f32fd5
Reworked static class support in CLI and C#.
11 years ago
triton
8c75289033
Check for defines before defining to get rid of some warnings.
11 years ago
triton
eb2bbba883
Added better support for nullptr_t types.
11 years ago
triton
6edcb8dd44
Added support for decltype types.
11 years ago
Elias Holzer
bd0ec409e9
Fixed adding of enum items in ASTConverter.
11 years ago
Elias Holzer
d1a3141f5b
The unique name set by the CleanInvalidDeclNames pass will now truly be unique across translation units.
11 years ago
Elias Holzer
6fa7077dbd
Moved unnamed enums test to generator tests.
11 years ago
Elias Holzer
502b9e1637
Added test case for unnamed enums - should pass with old parser, but fail with new one.
11 years ago
Elias Holzer
b83b5029b0
Added extension method SetPropertyAsReadOnly to ASTContext.
...
The Property.HasGetter and HasSetter method will take the GenerationKind flag of the field/method pair into account.
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
7478c5329e
Cleaned up tests regarding indexed properties.
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
c670148493
The FindTypedef method supports full type names now.
11 years ago
Elias Holzer
487189ebad
Fixed the FindOperator method for classes.
...
Added AST test case and fixed line endings (LF).
11 years ago