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.
11 years ago
triton
9449e915b3
Use our own version of Clang's TargetInfo when looking up target info.
11 years ago
triton
dade7ceff4
Added Clang's Targets.cpp.
11 years ago
triton
d07b158a98
Revert "Support overriding the alignment of Clang's target info."
...
This reverts commit 0e1e9c971b .
11 years ago
triton
0e1e9c971b
Support overriding the alignment of Clang's target info.
11 years ago
triton
15db2c04ad
Added a ParserTargetInfo option to the parser options.
...
We'll this to be able to override target details on Clang.
11 years ago
triton
9c2237ae01
Added a constructor to ParserTargetInfo and initialize everything to zero.
11 years ago
triton
08d58f555e
Fixed minor formatting issues in Parser.cpp.
11 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>
11 years ago
Dimitar Dobrev
89483ec17a
Fixed a regression when having an array with dependent elements.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
2593f4727f
Added support for getting the array element size to the AST.
11 years ago
João Matos
aa5b1377ca
Fixed GCC build by removing extra qualification on ELFDumper.
11 years ago
Dimitar Dobrev
d1dabba983
Fixed a warning about an ambiguous (dangling) "else".
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 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
11 years ago
Dimitar Dobrev
6432d910fa
Removed the memory leak in the AST converter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 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>
11 years ago
Dimitar Dobrev
a2b8614f54
Improved the support for constructor expressions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 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>
11 years ago
triton
51464010fd
Fixed compilation of comment blocks by using static_cast for casting instead of LLVM casts.
11 years ago
Dimitar Dobrev
cd3e729d38
Restored support for full comments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
9bd26ca0fe
Fixed support for C language parsing flags.
11 years ago
triton
b1054770ba
Fixed the MSVC build when looking for Clang builtin headers in the wrong location.
11 years ago
triton
2d4a2c9aa6
Revert "Use the absolute target directory when copying Clang headers."
...
This reverts commit 535536d1c1 .
11 years ago
triton
535536d1c1
Use the absolute target directory when copying Clang headers.
11 years ago
João Matos
2e433afb10
Added support for Clang's driver toolchain include management for Linux.
11 years ago
João Matos
0d7c7efd43
Better detection of Clang builtin headers location.
11 years ago
João Matos
d078e4aeae
Copy the Clang builtin headers as part of the build if they are available.
11 years ago
Dimitar Dobrev
ce597a399c
Fixed the build on VS 2015.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f9b795bcc5
Regenerated the parser bindings for Linux as well.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
82446e4983
Regenerated the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
5395761809
Fixed a bug that could cause a method to be added twice to its class.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
27e537c59b
Extract platform detection logic into its own file.
11 years ago
triton
17d4342433
Whitespace fixes.
11 years ago
João Matos
f00575eb4a
Added beginnings of a parser bootstrap code generator.
...
This is going to be extended by @afesteves in his Google Summer of Code work.
11 years ago
João Matos
6d60f6a2ac
Re-generated the parser bindings.
...
Fixes https://github.com/mono/CppSharp/issues/494 .
11 years ago
João Matos
be7980906d
Re-generated the parser bindings.
11 years ago
João Matos
ee8d1b5367
Enable copy constructor generation on parser bindings.
11 years ago
João Matos
54c772b6ac
Use the same path to Linux parser generation headers as on OSX.
11 years ago
Dimitar Dobrev
c512a558c7
Fixed a bug when a default arg is a binary operator expression.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
a293984424
Fixed the signatures of const functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f0d237d9c2
Added a new property for the line number of the end of a declaration.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
993cb82bb7
Revert "Fixed parsing of function signatures with const-qualified return types."
...
This reverts commit 7d5e53e1df .
Conflicts:
tests/Native/AST.h
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
99c124eb53
Fixed the location of a friendly declaration.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
7d5e53e1df
Fixed parsing of function signatures with const-qualified return types.
11 years ago