Dimitar Dobrev
|
a097cdd437
|
Fixed a crash when the body of a templated function contains references to non-functions.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
97e24602c3
|
Fixed a possible crash when instantiating template functions in the parser.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
853e82f095
|
Fixed the generated C# for specialisations only used as type arguments.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
4d3c02e6e5
|
Validated bodies of instantiated template functions.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
faf0fbb656
|
Included template specialisations only used as returned types.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
e53b25346e
|
Prevented C++ generation for invalid specialised functions.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
481bbc0351
|
Updated to LLVM/Clang revisions 318543/318538 respectively.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
450a26a443
|
Revert "Removed an unused field and redundant parameters from the parser."
This reverts commit 51a109d2db .
# Conflicts:
# src/CppParser/CppParser.cpp
# src/CppParser/CppParser.h
# src/CppParser/Parser.cpp
# src/CppParser/Parser.h
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
254cc0d279
|
Simplified the getting of the target info in the parser.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
33bc64ad9a
|
Reused the parsing of headers to get the target info as well.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
28f42bb1c7
|
Deleted useless fields from the parser.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
51a109d2db
|
Removed an unused field and redundant parameters from the parser.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
4945b595de
|
Renamed SetupHeader to Setup in order to generalise it for future extension.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
9c2f62c3eb
|
Fixed a crash when parsing unnamed declarations in name-spaces.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
feb2df8fae
|
Completed just class template specialisations used in functions.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
e96580357e
|
Optimised the parser by skipping the system translation units.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
5bce2fb533
|
Reused parameters between functions and their types (as Clang does).
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
c61c989460
|
Added an option for specifying STD types to bind.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
291da4ece3
|
ed time and memory during generation by skipping methods of most STD classes.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
ada983c40d
|
Improved the check for a layout on a record.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
c3048ae8d8
|
Fixed a crash when trying to get a source location for an implicit declaration.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
405d82fede
|
Fixed a typing error in the name of a function.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
bc4e01b58b
|
Revert "Skipped completion of already complete template specialisations."
This reverts commit 99da13e643 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
99da13e643
|
Skipped completion of already complete template specialisations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
b41b96df77
|
Fixed a regression causing generated types to be incorrectly reordered.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
cd5b57a786
|
Ensured all non-system template specialisations are complete.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Marco Zille
|
5eb077b5d4
|
Fixed a problem when walking the managed AST because friend templated
classes were seen as declared multiple times and resulted into a crash. Solves #975.
|
8 years ago |
Dimitar Dobrev
|
2d8e87188b
|
Simplified the completion of declarations in the parser.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
João Matos
|
4438465cbd
|
Clean up the parser. (#970)
|
8 years ago |
Joao Matos
|
656e4f3773
|
Simplify record redeclarations handling in the parser.
|
8 years ago |
Joao Matos
|
231e164a00
|
Fixed implicit class record walking in the parser.
|
8 years ago |
Marco Zille
|
cb1b3a95f4
|
Improved test on TypeLoc when walking the template argument list on the native AST to prevent crash (#966)
|
8 years ago |
Dimitar Dobrev
|
59d08a64a0
|
Improved the fix for handling non-type params in template specialisation types.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Joao Matos
|
f21d44af77
|
Fixed template parsing issue with processing of type locs.
Fixes https://github.com/mono/CppSharp/issues/964.
|
8 years ago |
Joao Matos
|
dac3753c0c
|
Fixed parser bug when dealing with DependentTemplateSpecializationTypeLoc.
|
8 years ago |
Joao Matos
|
78222577f5
|
Fixed an erroneous usage of LLVM cast with a regular C++ type.
Only found with debug-mode LLVM build.
|
8 years ago |
Joao Matos
|
e1200bc577
|
[parser] Refactor the parser layer.
Removes some useless abstractions and unused code.
Signed-off-by: Joao Matos <joao@tritao.eu>
|
8 years ago |
DevSidious
|
07ea284431
|
[parser] Added LLVM target initialization and supporting libraries for parsing inline assembly.
Fixes #923
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
9294ea0978
|
Ignored defaulted functions when generating C++ for symbols.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Joao Matos
|
54434454c9
|
Fixed a couple minor Clang parser warnings on Clang/OSX.
|
8 years ago |
Kimon Topouzidis
|
02d37706ac
|
Set the name-space of a parameter to its function. (#908)
|
8 years ago |
Dimitar Dobrev
|
e2e4109631
|
Added to a method a list of its overridden methods.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Kimon Topouzidis
|
f1396727db
|
Reused the walking of declarations when getting name-spaces in the parser. (#900)
|
8 years ago |
Mohit Mohta
|
3e8b15c42c
|
Made the C/C++ language switches adjustable in managed code. (#895)
|
8 years ago |
Mohit Mohta
|
5227e517fc
|
Added an option to enable or disable RTTI (#892)
Fixes #819
|
8 years ago |
Mohit Mohta
|
65d6c49e1b
|
Making the code run properly from a different working directory (#891)
|
8 years ago |
Mohit Mohta
|
ed5eab6add
|
Pass the path of clang includes to ResourceDir (#888)
|
8 years ago |
Dimitar Dobrev
|
f946eea70e
|
Fixed the Unix build after upgrading the Unix Clang packages.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
d7daed8273
|
Added support for VS 2017 by updating Clang.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
ktopouzi
|
75b96143d2
|
Used packing when laying marshalling structures out sequentially.
Fixes https://github.com/mono/CppSharp/issues/772.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |