Dimitar Dobrev
c36145b29d
Bind default constructors with dependent pointers
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Dimitar Dobrev
7ead6b4574
Don't print tags for nameless and typedef classes
...
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
Joao Matos
4deb35e272
Maintain DeclarationsList integrity by clearing item offsets.
5 years ago
Joao Matos
5004d9eada
Rework core implementation of QuickJS generator.
...
This adds more accurate overloading, default arguments handling and
events.
5 years ago
Joao Matos
1e8db6020e
Add convenience constructor to ArrayType.
5 years ago
Joao Matos
50451ac897
Code cleanup.
5 years ago
Joao Matos
88fc5b9c36
Rewrite GenerateEnumFromMacros helper to also look into enum items.
5 years ago
Joao Matos
bcc6fd887d
Improve visiting options implementation in CodeGenerator.
5 years ago
Joao Matos
d6dd93d2f8
Minor code cleanups.
5 years ago
josetr
62e9119c63
Create a single nuget package that supports windows / linux / macos
5 years ago
Joao Matos
5cb683a199
Normalize visiting overloads to be virtual.
5 years ago
Joao Matos
a3a70ad0f5
Simplify TU.FileRelativeDirectory by using Path.GetDirectoryName.
5 years ago
Joao Matos
db08034d4b
Clean up some properties in TranslationUnit.cs with null coalescing operators.
5 years ago
Joao Matos
f18022b57e
Fix TU.FileRelativeDirectory to be more robust against some paths.
5 years ago
Joao Matos
bc22e1808e
Update Class.HasNonIgnoredBase to use the actual base class.
5 years ago
josetr
1926e69435
Only use premake for native projects and improve c# projects.
5 years ago
josetr
dbbcb6dbdf
Upgrade to .NET Core 3.1 and improve build system
5 years ago
Dimitar Dobrev
0e38947e07
Convert the visiting options to an enum
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
d46bcd3dda
Implement Method.HasSameSignature for signature comparison.
5 years ago
Joao Matos
a85e94a3f2
Implement Method.ToString() to help with debugging.
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
714fb7ecc4
Add per-declaration support for decl maps.
5 years ago
Joao Matos
5e74bc351f
Add TypeQualifiersMode to Type and implement in C++ type printer.
5 years ago
Joao Matos
6b53f5828a
Add new VisitQualifiedType overload to visitors.
5 years ago
Joao Matos
d47bce5700
Set include path as weell as file path when creating a new TU.
5 years ago
Joao Matos
62e67f958c
Fix IsGeneratedOverride to take virtual methods into account.
5 years ago
Joao Matos
570c569217
Add some helper class hierarchy methods.
5 years ago
Joao Matos
fb34f55f76
Improve ignored check for decls with explicit generation kinds.
5 years ago
Joao Matos
503aad6c7a
Fix code to use BaseClass property instead of first base.
...
The first base could be ignored, BaseClass does the right thing.
5 years ago
Dimitar Dobrev
0fd4307b81
Generate C++ for constructors of abstract types
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
42dda6b12f
Fix generation of SequentialLayout structures ( #1499 )
5 years ago
Dimitar Dobrev
341fadc655
Always use the mangled names as reported by Clang
...
The names in the binaries themselves are sometimes different than those Clang reports. However, it seems that the reported ones are the actually correct for invocation. For example, the name passed to dlsym() (for variables) must not be prepended with an underscore (https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/dlsym.3.html ). Another example, again on macOS, is with extern C functions which sometimes also receive an _ at the front.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
7791cf6996
Fallback to LayoutKind.Explicit when a custom alignment is specified. ( #1476 )
5 years ago
josetr
051ebb82b3
Remove `Layout.GetSize()` method as it's no longer relevant ( #1474 )
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
Dimitar Dobrev
75bca17907
Update LLVM to obtain working lld ( #1462 )
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
37c0164072
Add support for const char32_t* and fix const wchar_t* in linux / osx ( #1444 )
...
* Add support for const char32_t* and fix const wchar_t* in linux / osx
5 years ago
josetr
133a1882df
Copy arrays of primitive values using System.Buffers.MemoryCopy ( #1440 )
5 years ago
josetr
6496bf8dae
Basic support for static constexpr variables ( #1435 )
...
Basic support for static constexpr variables
5 years ago
josetr
0f498a1090
Add missing `Variable.Type` null check. ( #1430 )
...
Work around an unhandled case of the type of a variable
5 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>
5 years ago
Dimitar Dobrev
b5ca0635be
Check symbols in tests
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 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
6dcb2ac31a
Generate valid C# for returned function pointers
...
Fixes https://github.com/mono/CppSharp/issues/1226 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
2acbf32a96
Fix generation for fields of type const reference
...
Fixes https://github.com/mono/CppSharp/issues/1323 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
081ac688f4
Simplify the mapping of virtual tables in C#
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
João Matos
568b68bb3f
Fix TranslationUnit.FileRelativeDirectory to be more robust against null include paths.
6 years ago
João Matos
f5d4a5d59c
Fix formatting to of Declaration.GenerationKind to ease debugging.
6 years ago