Dimitar Dobrev
3d4c7c56f8
Changed the parser for easier transition to a newer Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2403d7d3a3
Replaced the useless internals of templates with the internals of their specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e4200f4690
Fixed the wrapping of template parameters in the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
bc26e77ab2
Extract AST->getTargetInfo() expression into a local variable.
9 years ago
Joao Matos
b53aaae81b
Fixes parsing of K&R-style C functions with no prototypes.
...
Fixes issue #641 .
9 years ago
Joao Matos
93f5161710
Fixed handling of different language versions in the C++ parser.
...
Fixes issue #641 .
9 years ago
Dimitar Dobrev
529b21775b
Added an explicit C++ destructor to avoid a crash on OS X.
9 years ago
Dimitar Dobrev
6821e983a6
Checked if a library exists before trying to parse it.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2ef14d0fcf
Introduced consistent usage of '&' - it is now always stuck to the type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ae8d3feb53
Added reading of exported mach-o (OS X) symbols.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
cf479f4409
Wrapped more information about comments for better generation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e57ad1d3e9
Exposed in our AST the real comment behind a block comment.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0dea8504ba
Regenerated the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
fc84e6bf1e
Added reading of dependencies of Mach-O (OS X) binaries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
João Matos
9c7b666dbc
Fixed parsing of incline command arguments and HTML start tag comment attributes under non-Windows platforms.
9 years ago
Joao Matos
d4e34e44bd
Fixed parsing of block command comment arguments under non-Windows platforms.
10 years ago
Dimitar Dobrev
192fede3f7
Connected the functions in the AST to the template functions they instantiate, if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
a052a494c9
Regenerated the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
a2fd71cc74
Enabled getting of template specialisations when type locations are invalid.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
24e53f4f79
Fixed expression parsing of dependent type default unary expressions.
...
Fixes issue #618 .
10 years ago
Dimitar Dobrev
26864a6cc5
Regenerated the C++/CLI parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
352bb1c502
Regenerated the parser bindings after the introduction of Declaration::IsImplicit.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Abhinav Tripathi
d753c8d637
Moved property IsImplicit to Declaration from Method.
10 years ago
Dimitar Dobrev
7498e3835f
Added an explicit destructor to avoid a crash on Linux.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
b60de160f9
Fixed a crash caused by deleting forward declarations other declarations might depend on.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
998f8446fe
Fixed the debug build.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
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
ef66b38525
Removed a redundant parameter from CppTypePrinter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
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
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
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
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
acbfd21b7a
Freed C++ objects allocated by the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago