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
marcos henrich
c061cf5be4
Added property IsEmpty to Block.
12 years ago
triton
e95a2929a8
Fixed handling of property indexers in the CLI generator.
12 years ago
triton
5b15b27312
Fixed CLI marshaling to take typedefs into account when handling pointer to primitive types.
12 years ago
Elias Holzer
7596ea4b0e
Put abstract implementations in the proper namespace.
12 years ago
Elias Holzer
ba03f64f65
Do not write the fixed keyword multiple times for nested array types.
12 years ago
Elias Holzer
a115bd9a51
Overload comparison operators only if their native counterpart return bool.
12 years ago
triton
ccb0d24b6a
Fixed array type printing for incomplete arrays.
12 years ago
triton
21efb8fc83
Fixed a bug by removing this weird looking code from the C# marshaller.
...
The test suite still passes too.
12 years ago
triton
08255907de
Fixed C# and CLI backends to check for null values when marshaling classes.
12 years ago
triton
d0a801172d
Fixed type map matching under some cases by always printing names logically.
12 years ago
triton
d85051a8e9
Added support for printing logical names to CppTypePrinter.
12 years ago
triton
f6ca256a86
Fixed CheckDuplicatedNamesPass to work with functions.
13 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.
13 years ago
Øystein Krog
065b8054b2
Add PrimitiveType.UIntPtr in AST and code generators
13 years ago
Øystein Krog
d3e963ff19
Move helper methods in Type out from class and into extension class TypeExtensions
13 years ago
triton
df58e2774f
Added an Std.Map wrapper to be able to use it in internal declarations.
13 years ago
Dimitar Dobrev
445f460b47
Fixed the reporting of compilation errors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
Øystein Krog
b1642bd47b
Add TargetInfo in Driver.
13 years ago
Dimitar Dobrev
72089a499e
Marshalled C++ char as Mono/.NET char instead of sbyte for a more friendly API.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 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>
13 years ago
Dimitar Dobrev
7477b90023
Moved the tests for copy ctors to separate classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
triton
b761b9b66a
Ignore constructors and destructors for static classes.
13 years ago
triton
8e9d4f9c31
Fixed generation of copy constructors for CLI value types.
13 years ago
Dimitar Dobrev
fee1809ca5
Wrapped copy constructors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
Dimitar Dobrev
24a8db6a32
Fixed the generation of internal implementations of abstract classes to actually work.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
Dimitar Dobrev
2e2f277b30
Ensured the internals of mapped classes are generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
Dimitar Dobrev
8d9ff9515e
Generated dependent fields if they are of a union type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
Dimitar Dobrev
648e47570d
Checked for symbols before calling destructors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 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>
13 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>
13 years ago
Dimitar Dobrev
8439acdef5
Considered renamable name-spaces which are not translation units.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 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>
13 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>
13 years ago