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 )
6 years ago
Dimitar Dobrev
75bca17907
Update LLVM to obtain working lld ( #1462 )
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
63459534f9
Update the kind of completed specializations ( #1460 )
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 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>
6 years ago
josetr
e6813a2f99
Update Bindings ( #1459 )
6 years ago
Dimitar Dobrev
bd779b2c49
Enable linking groups for the parser on Linux
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
josetr
eff32320a4
Remove call argument to fix broken build ( #1436 )
6 years ago
josetr
6496bf8dae
Basic support for static constexpr variables ( #1435 )
...
Basic support for static constexpr variables
6 years ago
josetr
a92337ba47
Add support for C++ character literals (u, U, L) ( #1434 )
6 years ago
josetr
8f2fe45f1a
Ignore non-const data() method for std types like basic_string [c++17] ( #1427 )
6 years ago
josetr
8034acb22a
Fix crash when trying to read a CXXRecordDecl that doesn't have a definition ( #1426 )
6 years ago
Dimitar Dobrev
cf29d26b8e
Revert "Add information about linkage to the AST"
...
This reverts commit e061edde76 .
We don't need it after all so let's keep the AST as simple as possible.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
b5ca0635be
Check symbols in tests
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
e061edde76
Add information about linkage to the AST
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
17b8e9800f
Find libraries even when given with no extensions
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
07763331e2
Move libraries to a new class for linking options
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
fbbda2020f
Remove the direct usages of the parsing options
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
0e39ab705a
Import native DLL-s (tests and parser) with MSVC
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
fe4a466964
Fix parsing of member pointers with MSVC
...
Fixes https://github.com/mono/CppSharp/issues/1231 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
9d296c10af
Simplify the required headers for macOS bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
6f9a77983b
Regenerate the parser bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
9091fd3e5b
Do not add type alias templates twice to the AST
...
This also fixes a memory leak since the copies were never destroyed.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
2d75735d0f
Fix all leaks of memory in the old expressions
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
a1dc53c03c
Add template functions to their context
...
This also fixes a minor memory leak.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago