marcos henrich
0416a35e8d
Added CheckIgnoreProperty to AST/Utils.cs. Changed CheckIgnoreField to handle value class fields declared in linked assemblies.
12 years ago
marcos henrich
d63ef03200
Changed Driver.Diagnostics setter to public. Replaced TextDiagnosticPrinter Verbose field by Level.
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
7794e52103
Fixed QualifiedIdentifier when QualifiedName is empty (case of namespaces)
12 years ago
marcos henrich
0300f45c1b
Replaced usage of «IsGenerated with IsDeclared when handling with base classes and value types properties.
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
ab5e7a3a8b
Fixed vtable generation for the Itanium case.
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
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
12 years ago
Elias Holzer
325bca6082
CLI generator didn't respect static properties.
12 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...
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
9166a55202
Fixed generation of properties to behave as expected.
...
Fixed this by changing GenerateProperties to use GetterSetterToPropertyPass instead of GetterSetterToPropertyAdvancedPass.
Fixes issue #215 .
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
triton
d68b7b3b56
Fixed code generation for enum pointers as parameters.
...
Fixes issue #217 .
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
570f13112b
Fixed issue with const pointer.
12 years ago
Elias Holzer
e6cb543c36
Fixed overloading of an indexed properties by removing the hard coded "int index" part.
12 years ago
Elias Holzer
d8b855bfe6
Fixed handling of primitive pointer types.
12 years ago
Elias Holzer
172f8fbf5d
Ignore function types to non-static member functions.
12 years ago
triton
4a98f69df5
Added an explicit option to generate copy constructors.
12 years ago
triton
a6bd803a71
Fixed code generation for Itanium ABI instance/indirect return types methods in C#.
12 years ago
triton
8fbd68549e
Added previously added CS_IGNORE_FILE to CheckMacrosPass documentation.
12 years ago
triton
8fc6a18399
Minor formatting improvements.
12 years ago
triton
9c07283ff0
Fixed CLI getter/setter property generation (with tests).
12 years ago
triton
9b5ddb7e3e
Fixed option validating code to work with the new parser.
12 years ago
triton
2ebce723ae
Use SafeIdentifier when writing parameter names in the C# marshaller.
...
TODO: There are still lots of instances in the marshaller where we do not do this. We should instead clean the parameter/declaration names before entering generation.
12 years ago
triton
5e0cd3112a
Fixed marshaling of wide characters in the C# backend.
12 years ago
triton
fec8b00d8e
Added marshaling of function types to C# backend.
12 years ago
triton
e73fb76613
Added an option for generation of inlines in the C# generator.
12 years ago
triton
440a1f9ac9
Added an helper method to set the parameter usage for functions.
12 years ago
triton
2426c3eedb
Added an option to compile the generated C# code.
12 years ago
triton
3c40442a13
Minor code formatting fixes.
12 years ago
triton
3cdaaaa6e8
Added logging to MoveFunctionToClassPass.
12 years ago
triton
ee6baa38dd
Fixed code generation for global functions (and added a test).
12 years ago
marcos henrich
c57ceb86c1
The name of the class containing static methods generated from C++ functions is no longer based on the option OutputNamespace.
12 years ago
marcos henrich
56f772a8c8
UseHeaderDirectories when true generated files will be outputted to original relative paths, and include will use relative path between headers. When NoGenIncludePrefix is set a string is prepended to the include files that are not generated.
12 years ago
marcos henrich
5484758507
Added DriverOptions to CLITypeReferenceCollector.
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
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
a170d1b09a
Ignore copy constructor if a base class don't has or has a private copy constructor
12 years ago
marcos henrich
f02fa7b2ab
Added a macro expansion processing to ignore a translation unit.
12 years ago
marcos henrich
afde77e968
Refactored multiple similar foreach loops to a simpler version.
12 years ago
marcos henrich
734fe3348d
GenerateClassFields is now always called even when the current class has no fields because fields of a value type base class must generated.
12 years ago
marcos henrich
b28ac8b304
Added delegate CheckGenerate that is called before on generate so the block text generation can be empty when needed.
12 years ago
marcos henrich
3237a7b421
Template method PopBlock now returns the active block.
12 years ago