Dimitar Dobrev
648e47570d
Checked for symbols before calling destructors.
...
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
8439acdef5
Considered renamable name-spaces which are not translation units.
...
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
Dimitar Dobrev
85e56de487
Applied Helpers.SafeIdentifier in the name-cleaning pass in order to get correct names in type maps.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d92bc31a71
Replaced a call to == with ReferenceEquals when checking for null to avoid cycles in == operators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
fe6378a88a
Added an additional property to type maps indicating if they actually provide marshalling (useful if only copy constructors are replaced).
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Øystein Krog
663c91e443
Add support for fields with expressions (values) in CSharpTextTemplate
12 years ago
Øystein Krog
df7c1371a6
Pass in an CSharpExpressionPrinter instance to CSharpTextTemplate
12 years ago
Øystein Krog
240d2db53d
Add new IExpressionPrinter interface, with CSharpExpressionPrinter implementation
12 years ago
Dimitar Dobrev
be34899fc5
Added tests for v-tables checking calls to virtuals from within C++ and passing parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
aff6b2033a
Changed the option for bitness to be writable and 64-bit by default for 64-bit builds.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ebd692e6aa
Fixed the renaming pass to consider forward declarations and function type defs.
...
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
gpetrou
1ec9686111
Added default option to avoid generating ICppMarshal interface in the output files.
12 years ago
Dimitar Dobrev
20c6e04cd0
Fixed the ignoring of methods.
...
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
Dimitar Dobrev
4c5d933cd2
Added support for marshalling arrays of pointers to primitives.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
478d475661
Wrapped pointers to primitives as such.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
74007bedd1
Fixed wrong indenting in output by using the block API for fields.
12 years ago
triton
c464635428
Fixed invalid declaration name cleaning to maintain proper ordering in events and function types.
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
triton
44e354d680
Remove useless default constructor from SortDeclarationsPass.
12 years ago
triton
45b110e739
Added arguments options support to pass custom Clang options to the parser.
12 years ago
triton
51f5e395ff
Fixed ObjectOverridesPass to use an updated instance identifier.
12 years ago
triton
1ceabd676c
Fixed declaration checking to have into account processing/generation ignore flags.
12 years ago
triton
1dec71e8f3
Added support for the CS_IGNORE_GEN macro to CheckMacrosPass.
...
This is used for classes that we want to ignore only for generation but still want to process when they appear in type maps.
12 years ago
triton
38009ce337
Fixed processing of classes in CheckMacrosPass.
...
We had previously added an early out for declaration contexts but this is not correct for classes since they need to have their preprocessed entities processed by the rest of the pass.
12 years ago
triton
1d0bfbcf70
Fixed processing of forward declarations in CheckMacrosPass.
12 years ago
triton
3849c0e0c0
Fixed type maps processing bugs.
12 years ago
Øystein Krog
c191d0b337
Add new option (DependentNameSpaces) that allows for specifying custom using statements/namespaces in generated units
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
triton
80938b7937
Attempt to fix the tests by using a less broad fix for the unique names problem.
12 years ago
triton
c842d73243
Fixed invalid declaration name cleaning.
...
It could happen that by visiting the types of declarations, we'd wrongly reset the unique names counter. In this specific case, this was happening while visiting an event and its parameters.
12 years ago
triton
37bccb446d
Removed type map matching from VisitDeclaration.
...
We should only try to find type maps for types, else we can match type maps wrongly if the declaration name happens to have the same name as the one the type map tries to match on.
12 years ago
triton
819df6a2a2
Fixed CLI generation with references to pointers types (added a test).
12 years ago
Joao Matos
5016b485fe
Fixed FieldToPropertyPass to always visit complete class declaration.
12 years ago
Joao Matos
03f5998256
Fixed CopyClassFields helper to prefer complete declarations.
12 years ago
Joao Matos
db8c2cc99e
Fixed CheckMacroPass pass to work correctly for declaration contexts.
...
This has been broken since we started parsing preprocessed entities for all declarations. In the specific cases of declaration contexts (translation units and namespaces) we would be processing child declaration preprocessed entities and ignoring the whole contexts by mistake.
12 years ago
Joao Matos
3c27e0fad6
Improved generation of enumerations from macros.
...
We now keep track if a certain macro has already been generated in an enum and skip it in future calls to GenerateEnumFromMacros.
12 years ago
triton
8c0adad5f1
Fixed parsing bug and subsequent failing test in GenerateEnumFromMacros.
...
It now uses preprocessed entities instead of the soon-to-be-removed macros.
12 years ago
triton
3c7709e5cd
Fixed the C# generator to wrap void* as IntPtr.
12 years ago
triton
a58bf5b81b
Changed the visibility of native constructor to public (to match the CLI backend).
12 years ago
triton
d49a1eedb1
Use the existing instance identifier constant in the CLI backend to match the C# generator.
12 years ago
triton
6edfe6599e
Fixed generation regression leading to unnecessary access specifiers in some cases.
...
This was introduced in PR151 (Field properties).
12 years ago
triton
86c651625c
Added a new block policy to only generate a block if the following is not empty.
12 years ago
triton
0f76dc0090
Added experimental destructors/finalizers support.
...
This has exposed some underlying bugs on some pieces of generated code, so I've put it under an option temporarily.
Fixes #148 .
12 years ago