Dimitar Dobrev
0499556bfe
Added support for default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
1802470013
Kill the old parser (good riddance :).
12 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
12 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>
12 years ago
Dimitar Dobrev
ca2b3a312e
Moved IsSynthetized from Method to Function.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/AST/Method.cs
12 years ago
Dimitar Dobrev
8438f112e5
Fixed some bugs caused by conflicts.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
4857c8fee3
Improved the pass for generating properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/Generator/Passes/GetterSetterToPropertyAdvancedPass.cs
12 years ago
Dimitar Dobrev
f88c20aa94
Some refactoring in preparation for the default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
27fa2ca03d
Renamed Location to MacroLocation in PreprocessedEntity.
...
We'll use the name Location to represent source locations in declarations.
12 years ago
Tomi Valkeinen
7289a06b9e
Rename PrimitiveType Int32 and UInt32 to Int and UInt
...
As enum PrimitiveType is supposed to represent C++ types, having Int32
and UInt32 there is not correct.
This patch renames those values to Int and UInt.
This doesn't change the behavior, but makes it clearer that the types
for 'int' and 'unsigned int' are not necessarily 32 bits.
12 years ago
Elias Holzer
c8f266ef85
Check for constness first in CheckAmbiguousFunctionPass before doing the check for default parameters.
...
Fixes test case from previous commit.
12 years ago
Elias Holzer
1cab6e5f02
Do not generate ToString override for value types - not handled properly in generated code yet.
12 years ago
Elias Holzer
06218ec48a
Extended the ObjectOverridesPass to generate ToString methods if the insertion operator (<<) is overloaded.
12 years ago
Elias Holzer
b1c5cb3bf3
Fixed crash when file path of a unit was invalid.
12 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>
12 years ago
marcos henrich
de764599fa
Separated IsTagDecl into TryGetClass and TryGetEnum, added IsClass() and IsEnum().
12 years ago
Elias Holzer
d1a3141f5b
The unique name set by the CleanInvalidDeclNames pass will now truly be unique across translation units.
12 years ago
Elias Holzer
755861492a
Fixed the getter/setter to property passes to not include synthesized methods.
12 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.
12 years ago
triton
8eece168db
Added some better logging for macro ignored declarations.
12 years ago
Elias Holzer
f88d59d9cf
Fixed the duplicated names pass check for conversion operators.
12 years ago
Elias Holzer
a0ee284d00
Removed the const restriction in the constructor to conversion operator pass.
12 years ago
Elias Holzer
fe6ac28c60
Constructor to conversion operator pass makes use of newly introduced Method.IsExplicit property.
12 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
12 years ago
marcos henrich
7125109e3f
Deprecated ExplicityIgnored use ExplicitlyIgnore(). Getting ExplicityIgnored and setting ExplicityIgnored to false don't make much sense anymore.
...
Conflicts:
src/Generator/Passes/CheckOperatorsOverloads.cs
12 years ago
marcos henrich
df7319d8bc
External declarations are now only marked as such when being generated.
12 years ago
marcos henrich
951ba999b4
Added to macro pass CS_CONSTRAINT which can be use to constraint generic arguments.
12 years ago
marcos henrich
9af08fd551
Changed property fields generation kind to internal.
12 years ago
marcos henrich
2b3d907ce8
Changed CS_IGNORE_GEN to set generation kind to internal.
12 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
12 years ago
João Matos
8781cc0854
Fixed the resource stream loading to work with Mono resources.
12 years ago
triton
96479e7bdd
Do a null check for the verbs resource since non-VS Premake does not know how to embed it yet.
12 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 .
12 years ago
triton
d36bc5aad0
Changed GetterSetterToPropertyAdvancedPass visibility to public.
...
This way it can be added to the passes by external users.
12 years ago
Elias Holzer
f091c6662a
CLI generator will use the pointee type for indexed properties which have a setter.
12 years ago
Elias Holzer
e6cb543c36
Fixed overloading of an indexed properties by removing the hard coded "int index" part.
12 years ago
triton
4a98f69df5
Added an explicit option to generate copy constructors.
12 years ago
triton
8fbd68549e
Added previously added CS_IGNORE_FILE to CheckMacrosPass documentation.
12 years ago
triton
3cdaaaa6e8
Added logging to MoveFunctionToClassPass.
12 years ago
marcos henrich
4574b898de
Added to binder option NoGenIncludeDirs that contains a list of non generated include dirs.
12 years ago
marcos henrich
ad171a72f1
Avoid creation of properties from constructors.
12 years ago
marcos henrich
f02fa7b2ab
Added a macro expansion processing to ignore a translation unit.
12 years ago
triton
e95a2929a8
Fixed handling of property indexers in the CLI generator.
12 years ago
Elias Holzer
7596ea4b0e
Put abstract implementations in the proper namespace.
12 years ago
Elias Holzer
a115bd9a51
Overload comparison operators only if their native counterpart return bool.
12 years ago
triton
f6ca256a86
Fixed CheckDuplicatedNamesPass to work with functions.
12 years ago
triton
7faa50d945
Fixed native symbol naming.
...
We now properly name the internal ctor declarations by constructor type.
We also now keep an index for each function that is used to unique their native name.
12 years ago
Øystein Krog
d3e963ff19
Move helper methods in Type out from class and into extension class TypeExtensions
12 years ago
Dimitar Dobrev
556e91554f
Ignored protected members of value types. Used a constant for the instance identifier to improve performance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
7477b90023
Moved the tests for copy ctors to separate classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago