triton
e9b4b9bc4c
Extract ABI-common vtable entry allocation code and fix indexing of ignored entries.
11 years ago
Dimitar Dobrev
6d7c1de491
Fixed a bug in the Equals generation for CLI and regenerated the bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
e6223a1c4c
Fixed 4 bugs related to custom comparison operators.
...
1. Missing Equals to complement operator ==;
2. Endless recursion when having a == and comparing to null;
3. Crash when having a == and comparing a null pointer to sth else;
4. Incompilable code with a type derived from a struct with operators.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
ebifrier
604bbf9626
Fixed handling of the argument for indexers.
11 years ago
ebifrier
08994b0408
Fixed the include path problem #321 . (the test case for C++ may be necessary.)
11 years ago
triton
0e574bdd5b
Fixed wrong code generation for constant-size arrays of non-primitive types.
...
References #380 .
11 years ago
triton
1c50cc58d0
Fixed build on Linux(Ubuntu).
...
Contributed by @shahid-pk .
Closes pull request #360 .
11 years ago
triton
257165d368
Generated up-to-date parser bindings for non-Windows platforms.
11 years ago
Pyry Kontio
99f643d13f
Test that demonstrate the "new 0" and show some other erroneus behaviour too.
...
Implemented CastExpression. ImplicitCast and ExplicitCast statement classes.
Fixed implicit constructor string generation.
Implemented CtorExpr.
All test cases pass.
Fixed indentations, streamlined the code.
Fixed regressions.
Fixed regressions.
Adding a test case not covered before.
Fixed, refactored and simplified things.
Still more fixes (0 to null ptr conversion, enum check). The additional test passes now too.
11 years ago
Dimitar Dobrev
191821b1d4
Fixed the generated code for default value of 0 to a class mapped to an enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
562fe35ac0
Updated to LLVM/Clang revision 222533/222534.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
bc140e13be
Changed the native ctors by value to also be wrapped by static methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
2600493dd6
Generated static methods for creating instance by an IntPtr in the C++/CLI branch.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
26df3e0c77
Improved the handling of numeric default values.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
88293d5c84
Fixed invalid names of static field (variables).
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
b9042d72b5
Fixed a regression causing ignored types with bases without empty ctors to fail.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f1c0d7a82a
Fixed the ambiguity in the C++/CLI branch when a native ctor takes anything mapped to IntPtr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
112e4d564e
Fixed the ostream type map which failed with pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
261473cef8
Extended the support for fixed arrays to the C++/CLI back-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
5f54d0b555
Fixed incompilable code generated by the C++/CLI back-end when wrapping certain unions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
011cdf2ae6
Fixed invalid code generated for typedef pointer params by the C++/CLI back-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
6bd26ac443
Improved wide char handling in the C# and CLI.
...
References #320 .
11 years ago
triton
ec4ee6ba3c
Fixed handling of static fields in the parser.
...
References #320 .
11 years ago
Dimitar Dobrev
17a8fc732f
Removed redundant "new" key-words in generated C# code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
100d43c2b0
Fixes classes wrongly being assigned as static classes.
...
Closes #348 .
11 years ago
triton
fe56198ceb
Fixed ToolSetToUse to work with the latest Clang expectations.
11 years ago
triton
b8d4999e98
Fixed code generation for structors with HasThisReturn set to true.
11 years ago
triton
3ab4d570a3
Removes the remaining SetClassAsValueType from ParserGen.
...
Fixes diagnostics not showing up. These cannot be value types else diagnostics won't be copied in CLI copy constructors.
11 years ago
triton
cbb4451284
Small code cleanup. Non-functional change.
11 years ago
triton
4dc6e84cc3
Use a cast instead of an 'as' check.
11 years ago
triton
3b7cf2171d
Take advantage of 'this' return information to adjust the return type of structors.
11 years ago
triton
8c962c2cb7
Fixed the IsItaniumLikeAbi check.
11 years ago
triton
740a284323
Added support for iOS and iOS 64-bits ABIs.
11 years ago
triton
406fabd949
Improved support for Itanium-like ABIs.
11 years ago
triton
67a4821a8e
Improved ABI kind handling in the parser.
11 years ago
triton
169a3fa610
Added support for keeping ABI-specific function 'this' return information.
11 years ago
triton
cd85f8b6a5
Improved GetSourceDirectory to be a little more robust.
11 years ago
Dimitar Dobrev
f7099fe552
Simplified and precised the pass for inlines.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
0ee5b23728
Restored ParserOptions as a ref type because it is inherited.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
29ef01699f
Renamed the flag indicating whether to HGlobal-free an instance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
d15d3f615b
Fixed warnings about hidden methods in generated code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
d49be57467
Fixed generation bug for ARM ABI.
...
Closes #351 .
11 years ago
Dimitar Dobrev
c4b48cf185
Fixed some problems with arrays of void after mapping void* to IntPtr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
dd5c324d01
Entirely removed the Internal struct from implementations of abstract classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
30cb2cbe85
Fixed an ambiguity between an internal ctor and a potential wrapped one.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
b231b00de1
Wrapped void* as IntPtr because unlike int*, char*, etc., void* is just ugly and not useful.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f00fb2189f
Fixed a crash with GCC libs caused by calling FreeHGlobal on non-AllocHGlobal memory.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
4385ecac76
Fixed the finding of classes to also check name-spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
2894999696
Fixed the generation of constructor overloads synthetised because of default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
1dbc76f134
Fixed a bug when a char parameter is assigned a default value of 0.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago