triton
5c3ffc0e24
Fixed EnumModifiers to define proper power of two values.
12 years ago
Elias Holzer
b432daab9b
Added missing Visit override to Method class.
12 years ago
Elias Holzer
61a5ceb5c3
Added copy constructors to Class, Parameter and DeclarationContext.
12 years ago
Elias Holzer
c670148493
The FindTypedef method supports full type names now.
12 years ago
Elias Holzer
487189ebad
Fixed the FindOperator method for classes.
...
Added AST test case and fixed line endings (LF).
12 years ago
Elias Holzer
749e5a399e
Added new property Parameter.Index.
...
Also added test which checks whether both parsers assign the AST parameter properties properly.
12 years ago
Elias Holzer
2fac4d47b8
Introduced new property Method.IsExplicit in AST.
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
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
Tom Spilman
f6aaa7400b
Checking for null like FindClass().
12 years ago
Tom Spilman
2027212e85
Fixed FindFunction() to search namespaces.
12 years ago
Elias Holzer
15f1394aaf
The extension method Type.IsPointerTo<T> will take attributed types into account.
...
Fixed generation of attributed delegate types in my case.
12 years ago
Elias Holzer
92568fadbf
Added new extension method Type.GetPointee() which returns the pointee of either a Pointer- or MemberPointerType.
12 years ago
Elias Holzer
d8b855bfe6
Fixed handling of primitive pointer types.
12 years ago
Elias Holzer
1b541ade5f
Helper method DeclarationContext.FindClass supports nested classes now.
12 years ago
marcos henrich
1ad7481136
Added properties FileRelativeDirectory and FileRelativePath to TranslationUnit.
12 years ago
marcos henrich
ec93889b64
Using property ExplicitlyIgnore instead of Ignore, so types that are not referenced can still be referenced.
12 years ago
triton
547ffc440a
Added helper property to represent if a property is an indexer.
12 years ago
Elias Holzer
cff1349d2c
Fixed retrieval of method overloads in case the provided function is an operator.
12 years ago
Elias Holzer
55bbba46dd
Desugar a type to test whether it is primitive or not.
12 years ago
Elias Holzer
fd0cabb8eb
Desugar a type to test whether or not it is a tag declaration.
12 years ago
triton
7c64924f04
Removed redundant constructors.
12 years ago
triton
accc590727
Minor whitespace cleanup.
12 years ago
triton
440632896f
Added support for logical names to the declarations.
...
While at it, I also refactored the logic of Qualified name properties. Now instead of recursion it will gather all the used namespaces and filter them.
12 years ago
triton
ee3fbd8e03
Added support for anonymous C++11 inline namespaces to the AST and parsers.
12 years ago
triton
12b0764b4d
Fixed trailing whitespace.
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
065b8054b2
Add PrimitiveType.UIntPtr in AST and code generators
12 years ago
Øystein Krog
4d62a5be31
Add clone ctor in Field
12 years ago
Øystein Krog
e0812abbd7
Move helper methods in Class out from class and into extension class ClassExtensions
12 years ago
Øystein Krog
fb127211ec
Move helper methods in Property out from class and into extension class PropertyExtensions
12 years ago
Øystein Krog
d3e963ff19
Move helper methods in Type out from class and into extension class TypeExtensions
12 years ago
Dimitar Dobrev
445f460b47
Fixed the reporting of compilation errors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
a5b9c10681
Reverted "Cleared up and fixed the exported symbols of libraries." Extended the symbols with stripped of the initial '_' ones.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
adc16e3877
Cleared up and fixed the exported symbols of libraries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
093ae1548b
Avoided crashes when generating code corresponding to translation units at invalid locations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
99849da1d1
Added preliminary support for char16 to avoid crashes because of null parameter types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
66363787b4
Stubbed support for pack expansions to avoid crashes in certain cases such as variadic templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
11ef53df10
Generated all internals of all (including ignored) classes and all of their fields in order to properly store objects in managed code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
0a102d8fbc
Added better wrapping for static classes.
12 years ago
Øystein Krog
c8b69fd601
Add Expression property in Field, allows a field to have a "value"
12 years ago
Øystein Krog
240d2db53d
Add new IExpressionPrinter interface, with CSharpExpressionPrinter implementation
12 years ago
Dimitar Dobrev
e08f2083f8
Worked around a bug of some incomplete classes having empty complete declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
59e0fb9ede
Generated correct v-tables when using the Itanium ABI.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
3209f1a398
Fixed a possible crash in the finding of classes by name.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d56affd117
Fixed the finding of classes to only return complete declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
cfeed2619a
Extended type maps with the ability to insert custom code instead of a copy ctor invocation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
76cf4e68d8
Simplify declaration ignores by removing IsProcessed and fixing ExplicitlyIgnored to be recursive like the others ignore properties.
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