Dimitar Dobrev
2da9e49fe8
Instantiate specialized classes nested in templates
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
3aab30f572
Add built-in compilation of extra symbols
...
Fixes https://github.com/mono/CppSharp/issues/1456 and https://github.com/mono/CppSharp/issues/1253 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
f97ad43ce4
Generate valid C# for base types with public fields of const char*
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
851ec5e44c
Fix instantiation of specializations not to crash
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
fe68d33cb4
Generate C++ deconflicted with system functions ( #1626 )
...
If a type shares a name with a system function, such as, well, "system()", declaring the type by name alone is taken as the function. So we need to prefix the type with "class" or "struct" as appropriate.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
c6768bcac5
Fix C4099 (class as struct) in generated C++/CLI
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
8d8c67d3a4
Bind the tag kind (struct, class, enum) of a type
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
81493b5936
Regenerate the parser bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
99a1457487
Don't evaluate dependent variables
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
34b08efec6
Update LLVM to the latest version
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
strentler
f3fa7eb9ef
Fix for "vector subscript out of range" exception ( #1621 )
...
- The Visual Studio C++ compiler does not allow to access Headers[i+1]
when i+1 points past the last element.
Doing so raises an exception when in
debug mode
Co-authored-by: Christian Kolek <Christian.Kolek@teamviewer.com>
5 years ago
Dimitar Dobrev
36c9e5f60a
Fix regressed marshalling of lists in C++/CLI
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
0ff9e14226
Update LLVM to the latest version
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
eed362841c
Introduce a scope kind stack for type printers.
...
Just like we already have for other context data.
5 years ago
Dimitar Dobrev
4f495181e5
Regenerate the parser bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
6d3f676db9
Regenerate the parser bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
f5a46b8e62
Better detect invalid specialized functions
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
9f7098b8ff
Simplify the marking of invalid functions
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
62e9119c63
Create a single nuget package that supports windows / linux / macos
5 years ago
josetr
7446ed2927
Change `GenerateSequentialLayout` default value to `true`
5 years ago
josetr
1926e69435
Only use premake for native projects and improve c# projects.
5 years ago
Dimitar Dobrev
6f784b7172
Fix the expression-generator after changed paths
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
3d750e3539
Fix a regressive crash when generating parser bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
bdf055fe6c
Take advantage of .NET Core transitive dependencies
5 years ago
josetr
dbbcb6dbdf
Upgrade to .NET Core 3.1 and improve build system
5 years ago
josetr
65eaa3fe44
Remove whitespaces
...
Remove whitespaces
5 years ago
josetr
9e8086501a
Avoid using "action:vs* filter because there are better ones that are more specific ( #1523 )
5 years ago
Joao Matos
ea05350e54
Update CanCheckCodeGenInfo to check function types as well.
5 years ago
Joao Matos
5ccac5b522
Check for a dependent expression before walking variable initializer.
5 years ago
Dimitar Dobrev
7bc0db7ae6
Don't wrap trivial constructors and destructors
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
b632051f3e
Add initial C base generator.
5 years ago
Joao Matos
7f0dc8aed4
Minor formatting fixes.
5 years ago
Dimitar Dobrev
c7fb59769f
Fix all of our warnings in the parser
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
a99c2497d0
CI: Skip building CppSharp.Parser.CLI because its slow to do so and its not needed ( #1502 )
5 years ago
josetr
3e4b43c760
Use correct C# parser bindings for windows x64 ( #1501 )
5 years ago
josetr
42dda6b12f
Fix generation of SequentialLayout structures ( #1499 )
5 years ago
josetr
4cf8299564
Update parser bindings. ( #1497 )
5 years ago
josetr
f9af20f19f
Always ignore warnings about missing PDB files
5 years ago
Dimitar Dobrev
257b347fbd
Regenerate the parser bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
60474c922c
Call the destructor instead of deleting the object in the generated symbols
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
06cdad54db
Regenerate the parser bindings with sequential layouts ( #1479 )
5 years ago
josetr
7791cf6996
Fallback to LayoutKind.Explicit when a custom alignment is specified. ( #1476 )
5 years ago
josetr
6063a3cd84
Update bindings ( #1477 )
5 years ago
josetr
3e742c3219
Fix `String.CSharpSignatureType` returning incorrect type when the given type is a pointer or a reference. ( #1473 )
5 years ago
Dimitar Dobrev
d3135664ca
Expose if a variable is a constant expression
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
eac78c6caf
Improve generation of C# ( #1466 )
5 years ago
Dimitar Dobrev
75bca17907
Update LLVM to obtain working lld ( #1462 )
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
63459534f9
Update the kind of completed specializations ( #1460 )
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
c0d5867ffe
Enable linking groups for the parser on Linux
...
The previous fix didn't work at all because premake's syntax is extremely strange at best and without any sense whatsoever it completely failed before I moved the linking groups just a few lines up.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
e6813a2f99
Update Bindings ( #1459 )
5 years ago