Dimitar Dobrev
bc4e01b58b
Revert "Skipped completion of already complete template specialisations."
...
This reverts commit 99da13e643 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
99da13e643
Skipped completion of already complete template specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b41b96df77
Fixed a regression causing generated types to be incorrectly reordered.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
cd5b57a786
Ensured all non-system template specialisations are complete.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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 .
9 years ago
Dimitar Dobrev
2d8e87188b
Simplified the completion of declarations in the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
João Matos
4438465cbd
Clean up the parser. ( #970 )
9 years ago
Joao Matos
656e4f3773
Simplify record redeclarations handling in the parser.
9 years ago
Joao Matos
231e164a00
Fixed implicit class record walking in the parser.
9 years ago
Marco Zille
cb1b3a95f4
Improved test on TypeLoc when walking the template argument list on the native AST to prevent crash ( #966 )
9 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>
9 years ago
Joao Matos
f21d44af77
Fixed template parsing issue with processing of type locs.
...
Fixes https://github.com/mono/CppSharp/issues/964 .
9 years ago
Joao Matos
dac3753c0c
Fixed parser bug when dealing with DependentTemplateSpecializationTypeLoc.
9 years ago
Joao Matos
78222577f5
Fixed an erroneous usage of LLVM cast with a regular C++ type.
...
Only found with debug-mode LLVM build.
9 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>
9 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>
9 years ago
Dimitar Dobrev
9294ea0978
Ignored defaulted functions when generating C++ for symbols.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
54434454c9
Fixed a couple minor Clang parser warnings on Clang/OSX.
9 years ago
Kimon Topouzidis
02d37706ac
Set the name-space of a parameter to its function. ( #908 )
9 years ago
Dimitar Dobrev
e2e4109631
Added to a method a list of its overridden methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Kimon Topouzidis
f1396727db
Reused the walking of declarations when getting name-spaces in the parser. ( #900 )
9 years ago
Mohit Mohta
3e8b15c42c
Made the C/C++ language switches adjustable in managed code. ( #895 )
9 years ago
Mohit Mohta
5227e517fc
Added an option to enable or disable RTTI ( #892 )
...
Fixes #819
9 years ago
Mohit Mohta
65d6c49e1b
Making the code run properly from a different working directory ( #891 )
9 years ago
Mohit Mohta
ed5eab6add
Pass the path of clang includes to ResourceDir ( #888 )
9 years ago
Dimitar Dobrev
f946eea70e
Fixed the Unix build after upgrading the Unix Clang packages.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
d7daed8273
Added support for VS 2017 by updating Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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>
9 years ago
Kimon Topouzidis
1298634804
Extended declarations to store their packing. ( #871 )
9 years ago
Mohit Mohta
3699574983
Removed the macros in C++ AST for std::string because we can marshal it ( #866 )
9 years ago
Kimon Topouzidis
e8e03f7aae
Added float128 to the marshalling structures in the C# generator. ( #857 )
9 years ago
Dimitar Dobrev
b77de1a36c
Improved the collection of type template parameters when parsing dependent name types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9dbcc3cc2c
Completed the support for dependent type names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
974f8fab20
Replaced the useless desugared dependent name type with its qualifier.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
realvictorprm
936d2231a7
Fixed wrong recording of declaration order ( #816 )
...
This is a bugfix for critical bug. With the fix the generation of the parser bindings should be nearly correct.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6d63508d3f
Sent a missed changed about reading the function type in the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
realvictorprm
10c86a2a10
Fixed the generated C# when an incomplete class is forwarded more than once.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
realvictorprm
9d89764965
Wrapped injected classes in order to ease binding lists of redeclarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
10ac0a4865
Fixed the getting of the template a specialised function is instantiated from.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
fed72f5910
Ensured the C# gen correctly imports a native library with no target triple.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
e32ebc8200
Added resolution of C++ "auto" types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
3070cdd955
Stubbed BuiltinTemplate and ClassScopeFunctionSpecialization decl types in parser.
10 years ago
Joao Matos
70257ab6df
Stubbed out clang AutoType in the parser to get rid of warnings.
10 years ago
Dimitar Dobrev
2531d631c6
Ensured template arguments of specialised functions are read.
10 years ago
Dimitar Dobrev
f4ace8fccc
Checked all redeclarations when parsing function bodies which is back on.
10 years ago
Dimitar Dobrev
32f315d206
Improved the recognition of inlined functions by checking their redeclarations.
...
The parsing of function bodies is no longer needed and it slows parsing down significantly so it is now turned off.
10 years ago
Dimitar Dobrev
b8f54de73e
Parsed function bodies.
10 years ago
Dimitar Dobrev
329d350f9d
Added the specialisation info, if any, along with its arguments, to functions.
10 years ago
Dimitar Dobrev
8d322ad53e
Properly handled signed chars in the AST.
10 years ago
Dimitar Dobrev
cef847825a
Exposed constant expressions, friendships and exception specifications of functions in our AST.
10 years ago