Vladimir Timofeev
8d9f581a33
Consolidate LLVM linking
11 years ago
Elias Holzer
f88d59d9cf
Fixed the duplicated names pass check for conversion operators.
11 years ago
Vladimir Timofeev
cfc0eef43a
Add libLLVMProfileData.a to list of libs for linking. This fix compilation for me with fresh checkout of llvm and clang.
11 years ago
Elias Holzer
cc3cc40fc4
When generating delegates attributed types need to be taken into account or proper calling convention won't get picked up.
11 years ago
Elias Holzer
2736088957
CSharp and CLI backend use same function to convert the calling convention.
11 years ago
Elias Holzer
dcbf34b8e2
Add special marshaling attribute to delegate declaration if calling convention differs.
11 years ago
triton
f5e66ba439
Added IsExplicit support to ASTConverter.
11 years ago
triton
baa08c8e8c
Re-generated the parser bindings with IsExplicit.
11 years ago
Elias Holzer
a0ee284d00
Removed the const restriction in the constructor to conversion operator pass.
11 years ago
Elias Holzer
fe6ac28c60
Constructor to conversion operator pass makes use of newly introduced Method.IsExplicit property.
11 years ago
Elias Holzer
2fac4d47b8
Introduced new property Method.IsExplicit in AST.
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
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
11 years ago
marcos henrich
df7319d8bc
External declarations are now only marked as such when being generated.
11 years ago
marcos henrich
2a162489c2
TypeIgnoreChecker now ignores declarations when GenerationKind == GenerationKind.None.
11 years ago
marcos henrich
94eda74596
Removed non generated headers from includes collected.
11 years ago
marcos henrich
0416a35e8d
Added CheckIgnoreProperty to AST/Utils.cs. Changed CheckIgnoreField to handle value class fields declared in linked assemblies.
11 years ago
marcos henrich
d63ef03200
Changed Driver.Diagnostics setter to public. Replaced TextDiagnosticPrinter Verbose field by Level.
11 years ago
marcos henrich
951ba999b4
Added to macro pass CS_CONSTRAINT which can be use to constraint generic arguments.
11 years ago
marcos henrich
9af08fd551
Changed property fields generation kind to internal.
11 years ago
marcos henrich
7794e52103
Fixed QualifiedIdentifier when QualifiedName is empty (case of namespaces)
11 years ago
marcos henrich
0300f45c1b
Replaced usage of «IsGenerated with IsDeclared when handling with base classes and value types properties.
11 years ago
marcos henrich
2b3d907ce8
Changed CS_IGNORE_GEN to set generation kind to internal.
11 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
11 years ago
Tom Spilman
f6aaa7400b
Checking for null like FindClass().
11 years ago
Tom Spilman
2027212e85
Fixed FindFunction() to search namespaces.
11 years ago
triton
b6cf05e140
Explicitly initialize Enumeration class members.
...
Trying to fix intermittent failing test `TestPasses.TestCheckFlagEnumsPass`.
11 years ago
triton
b14d527106
Fixed CppParser build guard so it works in VS/Windows.
11 years ago
João Matos
ab5e7a3a8b
Fixed vtable generation for the Itanium case.
11 years ago
João Matos
8781cc0854
Fixed the resource stream loading to work with Mono resources.
11 years ago
João Matos
3b097d8379
Improved the build scripts on OSX.
...
We now ignore CLI and native projects when running the VS action under non-Windows platforms (so that Xamarin Studio can load them).
Also fixed the build to actually add the correct parser bindings sources.
11 years ago
triton
96479e7bdd
Do a null check for the verbs resource since non-VS Premake does not know how to embed it yet.
11 years ago
triton
c7dba1b5bd
Fixed type map matching regression introduced in d68b7b3
.
...
Thanks to Elias Holzer for reporting the issue.
Conflicts:
src/Generator/Generators/CLI/CLITypePrinter.cs
11 years ago
Elias Holzer
325bca6082
CLI generator didn't respect static properties.
11 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.
11 years ago
Elias Holzer
92568fadbf
Added new extension method Type.GetPointee() which returns the pointee of either a Pointer- or MemberPointerType.
11 years ago
triton
257edf878f
Restrict path replacing in the parser to Windows platforms.
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
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
.
11 years ago
triton
9166a55202
Fixed generation of properties to behave as expected.
...
Fixed this by changing GenerateProperties to use GetterSetterToPropertyPass instead of GetterSetterToPropertyAdvancedPass.
Fixes issue #215 .
11 years ago
triton
d36bc5aad0
Changed GetterSetterToPropertyAdvancedPass visibility to public.
...
This way it can be added to the passes by external users.
11 years ago
triton
d68b7b3b56
Fixed code generation for enum pointers as parameters.
...
Fixes issue #217 .
11 years ago
triton
ea171cde97
Added copy constructors to Enumeration::Item and Declaration.
11 years ago
triton
aa3e8dd5bd
Explicitly define some copy constructors to work around missing symbols.
...
We should not need to do this, but Clang ignores the GCC flag "-fkeep-inline-functions" which we need to actually get these to be properly exported in a library...
11 years ago
Elias Holzer
f091c6662a
CLI generator will use the pointee type for indexed properties which have a setter.
11 years ago
Elias Holzer
570f13112b
Fixed issue with const pointer.
11 years ago
Elias Holzer
e6cb543c36
Fixed overloading of an indexed properties by removing the hard coded "int index" part.
11 years ago
Elias Holzer
d8b855bfe6
Fixed handling of primitive pointer types.
11 years ago
triton
69163d5c38
Re-generated the OSX Darwin parser bindings without copy constructors.
11 years ago
Elias Holzer
172f8fbf5d
Ignore function types to non-static member functions.
11 years ago