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
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
1ba4493bf6
Updated to LLVM/Clang 253162/253161 respectively.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
424e9df424
Remove deprecated Premake flags from build scripts.
10 years ago
Joao Matos
779ed9db71
Fourth round at build and packaging scripts.
10 years ago
Dimitar Dobrev
01a087117e
Improved the support for default args by ignoring a temporary expression.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
d0ad681a61
Extended the AST and the parser to support call expressions in default args.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
7aab75f44d
Regenerated the parser bindings to reflect all updates from the last two months.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
CppSharp CI
9c24b3f84e
CI: Re-generated the parser bindings
10 years ago
Dimitar Dobrev
b9e3efbf0c
Removed the option for copy ctors and prevented usage of ignored ones.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
ab0aace7b8
Fixed GetSourceDirectory in the parser generator to start from the current working directory.
10 years ago
triton
15ff04a79e
Workaround MSVC linker warning 4099 on AppVeyor.
10 years ago
triton
4f1e619a62
Moved MSVC options setup from parser to MSVC toolchain code.
10 years ago
triton
54267b88a4
Implemented support for parsing C++11 atomic types.
10 years ago
triton
b908881517
Simplified Parser::GetDeclMangledName.
10 years ago
triton
462bb5bc68
Fixed warning by removing #pragma once from source file.
10 years ago
triton
aa7f02460e
Fixes dependent bitfield testcase introduced in d6b5fcfe2b
.
...
I extracted a test case based from the Boost crasher but it seems that it was stronger than the original problem.
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
89483ec17a
Fixed a regression when having an array with dependent elements.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
2593f4727f
Added support for getting the array element size to the AST.
10 years ago
João Matos
aa5b1377ca
Fixed GCC build by removing extra qualification on ELFDumper.
10 years ago
Dimitar Dobrev
d1dabba983
Fixed a warning about an ambiguous (dangling) "else".
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
0e3b5f81a5
Updated C++# to the latest LLVM/Clang.
...
LLVM r245554 / 9a4e2cb3295f286dafc41b7e18619bc150880611, Clang r245562 / 41edf4ec7304ddfdf9225d225586804f394a5cf4.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
docs/GettingStarted.md
10 years ago
Dimitar Dobrev
6432d910fa
Removed the memory leak in the AST converter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
5c66aa2730
Implemented IDisposable.Dispose in the C++/CLI front end.
...
Fixes https://github.com/mono/CppSharp/issues/538
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
a2b8614f54
Improved the support for constructor expressions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
56b02cfcf9
Converted to 0 default expressions calling an empty ctor of a type mapped to an enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
51464010fd
Fixed compilation of comment blocks by using static_cast for casting instead of LLVM casts.
10 years ago
Dimitar Dobrev
cd3e729d38
Restored support for full comments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
9bd26ca0fe
Fixed support for C language parsing flags.
10 years ago
triton
b1054770ba
Fixed the MSVC build when looking for Clang builtin headers in the wrong location.
10 years ago
triton
2d4a2c9aa6
Revert "Use the absolute target directory when copying Clang headers."
...
This reverts commit 535536d1c1
.
10 years ago
triton
535536d1c1
Use the absolute target directory when copying Clang headers.
10 years ago
João Matos
2e433afb10
Added support for Clang's driver toolchain include management for Linux.
10 years ago
João Matos
0d7c7efd43
Better detection of Clang builtin headers location.
10 years ago
João Matos
d078e4aeae
Copy the Clang builtin headers as part of the build if they are available.
10 years ago
Dimitar Dobrev
ce597a399c
Fixed the build on VS 2015.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago