Dimitar Dobrev
7c2a6f8280
Added generation of 64-bit MSVC C# bindings for the parser.
...
They are not used at the moment but might be employed in an AppVeyor 64-bit build.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
84ab1bf35c
Added a setting to the C++ type printer to resolve typedefs.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
ef66b38525
Removed a redundant parameter from CppTypePrinter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
dd1576b461
Merge pull request #600 from genuinelucifer/defValCall
...
Fix for fn call when def argument is interface.
10 years ago
Abhinav Tripathi
347d0cdbaf
Fix for fn call when def argument is interface.
10 years ago
Dimitar Dobrev
1471e6f2fb
Simplified and tested the reading of line numbers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
05d7088cd0
Improved the reading of line numbers by expanding locations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
b3a5b88433
Removed Method.AccessDecl because it doesn't map to Clang and was buggy.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
f6210f622e
Fixed a regression in the sharing of the method object from v-tables in certain corner cases.
...
QPaintDevice::initPainter appeared twice in the wrapper for QtGui but I could not isolate it in a test.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
c7357aa400
Removed the creation of forward declarations if their complete counterparts have been parsed.
...
These object leaked memory too.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
a95511600f
Fixed the destruction of comments another way because this one crashes the OS X build.
...
See https://github.com/mono/CppSharp/issues/599 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
c05dce7443
Fixed the destruction of expressions another way because this one crashes the OS X build.
...
See https://github.com/mono/CppSharp/issues/598 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
f7aee273a7
Ensured comments are properly destroyed thus fixing a memory leak.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
1340113332
Ensured expressions are properly destroyed thus fixing a memory leak.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
68e9bb3756
Fixed a regression when a default value uses a constructor with a temporary expression.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
6db0676b5a
Made entries in v-tables use the same method objects as regular methods.
...
Besides being obviously correct, this fixes a memory leak.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
9645fa24a5
Fixed a possible memory leak with default arguments assigned by a constructor.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
7b12f899bb
Removed memory leaks caused by specifiers for bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
c0767bcd47
Eliminated memory leaks with forward declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
3402952388
Called the most derived destructor when it's not virtual.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
f75b3e1a35
Updated the LLVM packaging scripts to use tar.xz for non-Windows builds.
10 years ago
Dimitar Dobrev
40479b31a0
Removed a redundant C++ object which on top caused a memory leak.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
48fece6aa1
Revert "Threw an exception when there are parsing errors, and handled it in the test clients."
...
This reverts commit 01e872b30d
.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
01e872b30d
Threw an exception when there are parsing errors, and handled it in the test clients.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
b2020d462c
Stopped C++# when the parser has encountered errors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
100158a3ea
Fixed minor memory leaks.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
1c206a8478
Merge branch 'master' of https://github.com/mono/CppSharp
10 years ago
Joao Matos
9dc44ebac1
Run the Travis build as one large command.
...
Travis doesn't stop running script commands after the first one fails
10 years ago
Joao Matos
dec7cbb2ab
Updated the LLVM build script to work with Vagrant.
10 years ago
Joao Matos
c417c73afd
Updated the LLVM build script to work with Vagrant.
10 years ago
Dimitar Dobrev
0b93c17b39
Removed code made redundant by the simplified parsing of libraries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
be54b0c0c1
Added an SSL-enabled Premake build for 64-bits Linux.
10 years ago
Dimitar Dobrev
fd866d5cdb
Simplified the parsing of libraries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
088530dacf
Fixed the memory leaks when parsing enumerations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
6e5a8e835d
Fixed a crash when wrapping more than one header.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
João Matos
7742841d77
Merge pull request #597 from genuinelucifer/missed_namespace
...
Fixed missing namespace problem.
10 years ago
Abhinav Tripathi
e9152a79b5
Fixed missing namespace problem.
10 years ago
Dimitar Dobrev
7d7b75a155
Changed PreprocessedEntity to a non-declaration because it isn't in Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
acbfd21b7a
Freed C++ objects allocated by the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
54cb17f313
Removed the exception when disposing of objects not originating from managed code.
...
This way we can destroy C++ objects the user is responsible for.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
cb0cc4f9a3
Reverted a disposal because it breaks the Unix build.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
bba8d389fb
Revert "Fixed more minor memory leaks."
...
It breaks the build, the memory management needs more changes before these fixes.
This reverts commit 41fbe1e9dd
.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
41fbe1e9dd
Fixed more minor memory leaks.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
4db8aa4af7
Remove extra MSVC warning C4141 from Clang build.
10 years ago
Dimitar Dobrev
ffa8d93948
Fixed another C++ memory leak in the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
e82cc87356
Fixed a minor memory leak in the C++ part of the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
36c55fc656
Applied SuppressUnmanagedCodeSecurity to P/Invokes with WinApi calling conventions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
640f957e69
Removed the hard-coded (always public) visibility of generated enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
c8397166ed
Optimised code generation when the option for auto-compilation is used.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
057e025ee3
Fixed a memory leak by removing from static members typedefs used for delegates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago