triton
24e898bdcf
Fixed infinite loop in CheckDuplicatedNamesPass.
10 years ago
triton
ce7d6b2dc4
Improve robustness when handling unexpected FunctionProto type locs.
...
Fixes an error when parsing Boost code (tuple_basic.hpp).
```
// Swallows any assignment (by Doug Gregor)
namespace detail {
struct swallow_assign;
typedef void (detail::swallow_assign::*ignore_t)();
struct swallow_assign {
swallow_assign(ignore_t(*)(ignore_t)) {}
template<typename T>
swallow_assign const& operator=(const T&) const {
return *this;
}
};
} // namespace detail
template<>
struct make_tuple_traits<detail::ignore_t(detail::ignore_t)> {
typedef detail::swallow_assign type;
};
```
10 years ago
triton
d6b5fcfe2b
Fixed parser crash with dependent-sized bitfields.
10 years ago
triton
24bdec82b2
Fixed wrong dependent checking for some types causing mangler crash.
...
Consider the following sample code:
template <typename T>
class MyClass
{
int i;
};
Even though `i` is not a dependent type itself it needs to be considered as dependent for name mangling purposes.
Fixes a boost parser crasher.
10 years ago
triton
5f9b484371
Added support for ARMv7k CPU used in Apple WatchOS.
10 years ago
triton
9449e915b3
Use our own version of Clang's TargetInfo when looking up target info.
10 years ago
triton
dade7ceff4
Added Clang's Targets.cpp.
10 years ago
triton
d07b158a98
Revert "Support overriding the alignment of Clang's target info."
...
This reverts commit 0e1e9c971b
.
10 years ago
triton
0e1e9c971b
Support overriding the alignment of Clang's target info.
10 years ago
triton
15db2c04ad
Added a ParserTargetInfo option to the parser options.
...
We'll this to be able to override target details on Clang.
10 years ago
triton
9c2237ae01
Added a constructor to ParserTargetInfo and initialize everything to zero.
10 years ago
triton
08d58f555e
Fixed minor formatting issues in Parser.cpp.
10 years ago
Dimitar Dobrev
beabb8224d
Regenerated the parser bindings with all fixes for v-tables and dtors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
5dca339ff2
Forbid the disposal of unowned objects and simplified the generated code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
1d8f480ef0
Restored a test crashing on Windows on other platforms.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
d769a81ade
Called virtual destructors through the virtual table.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
cc97558bbe
Replaced the redundant references for v-tables with the native-managed map.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
235c556374
Simplified the generated code for v-tables.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
72f062c56f
Reused the virtual call for calls to abstract impls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
289720d31b
Only hooked the v-tables of wrapped C++ pointers when they have virtual dtors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
7f8fa9100c
Removed references for v-tables upon destruction of the object.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
f33ae8b801
Revert "Factor the saving of original vtables pointers to its method."
...
This reverts commit 03f610f528
.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
89cdf8b997
Reworked per-Abi vtable code to correctly handle all platforms.
10 years ago
triton
03f610f528
Factor the saving of original vtables pointers to its method.
10 years ago
triton
a0e6fb874e
Fix the virtual table tests compilation under GCC.
...
Technically we should also be defining the copy constructors but they're not used by the bindings.
Error caught by Travis:
1) Test Error : VTablesTests.TestVirtualFuntionRetVal
System.EntryPointNotFoundException : _ZN19DerivedClassVirtualC2Ev
10 years ago
triton
e2b74a7697
Implemented virtual function call handling.
...
Closes issues #402 , #496 .
Thanks to Abhinav for his pull which I based this work on.
10 years ago
triton
bc3ace2205
Rework __OriginalVTables to be unique per instance.
...
We need to take into account that the original vtables might differ per object instance.
10 years ago
triton
d4cd37ec11
Rename the VTable field names in the generated code to be more specific.
10 years ago
triton
24eb7cf825
Fixed VTables.GetVTableIndex to work with base/derived overrides.
10 years ago
triton
7ec100c47e
Document the purpose of Class.OriginalClass.
10 years ago
Dimitar Dobrev
007fb4b57c
Removed parameters wrapped in v-table delegate hooks from the native to managed map.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
0108a5a23e
Invert the if condition to reduce nesting.
10 years ago
Dimitar Dobrev
c4a5cdb893
Fixed the v-table hooks for functions with indirect return params.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
c28b8db3e5
Removed the TODO-s about marshalling char and bool because those are not bugs.
...
See https://msdn.microsoft.com/en-us/library/ef4c3t39.aspx and https://msdn.microsoft.com/en-us/library/75dwhxf7.aspx .
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
91b3a5aef1
Worked around an MS .NET bug which prevents marshalling bools in certain cases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
cdd6e0eaa8
Restored a deleted piece that helps generate simpler code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
89483ec17a
Fixed a regression when having an array with dependent elements.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
170e0a5934
Removed char from internal fields because marshalling is broken.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
e9fcc76918
Restored the code formatting of the tests after an accident.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
908988e70e
Fixed some warnings about missing default values of params in overrides.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
f7838cf894
Pass the -nologo option to NUnit so we get less verbose output.
10 years ago
triton
5ef899366c
Renamed the test suite projects.
10 years ago
triton
18bc6729ac
Removed useless ignored TestChar16 test.
10 years ago
triton
5e3706c879
Fixed marshaling of regular UTF16 strings.
10 years ago
triton
144d26749f
Fixed wide string marshaling on UTF-32 platforms.
10 years ago
João Matos
464476b200
Clean up previous fix by using Environment.Is64BitProcess instead of invoking Mono --version.
...
Thanks to Dimitar for the idea.
10 years ago
João Matos
5ff8efa085
Fixed some tests under OS X by auto detecting the Mono bitness.
10 years ago
triton
53ebfa4fd2
Switch to the nightly Mono development package on Travis.
10 years ago
triton
d265a0f345
Remove unnecessary workarounds in test suite for P/Invoke fixed arrays bug.
10 years ago
triton
6623161200
Workaround Mono crasher bug when handling P/Invokes with fixed arrays.
...
https://bugzilla.xamarin.com/show_bug.cgi?id=33571
10 years ago