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
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
c0767bcd47
Eliminated memory leaks with forward declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
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
0b93c17b39
Removed code made redundant by the simplified parsing of libraries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
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
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
1ba4493bf6
Updated to LLVM/Clang 253162/253161 respectively.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
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
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
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
9449e915b3
Use our own version of Clang's TargetInfo when looking up target info.
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
08d58f555e
Fixed minor formatting issues in Parser.cpp.
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
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
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
9bd26ca0fe
Fixed support for C language parsing flags.
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
Dimitar Dobrev
ce597a399c
Fixed the build on VS 2015.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 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>
10 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>
10 years ago
Dimitar Dobrev
a293984424
Fixed the signatures of const functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 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>
10 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>
10 years ago
Dimitar Dobrev
99c124eb53
Fixed the location of a friendly declaration.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
7d5e53e1df
Fixed parsing of function signatures with const-qualified return types.
10 years ago
triton
c61f422a28
Slightly refactor signature range code to make it easier to read.
10 years ago
Dimitar Dobrev
8505f82ff0
Fixed signatures to include the 'const', if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Stephan Sundermann
a314b8ede6
Fix build error on osx
11 years ago
Dimitar Dobrev
3b4fce6f33
Added a property for the line at which a declaration is located in its header.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
0c277cff5a
Updated to latest LLVM and Clang revisions.
11 years ago