João Matos
7bbe6a2df4
Associate getter/setter methods with their associated property in GetterSetterToProperty pass.
5 years ago
João Matos
04247b6baf
Added optional getter/setter pair creation for fields in FieldToProperty pass.
5 years ago
João Matos
7bad042715
Refactor CLI handling of enums to be based on generic C generator.
5 years ago
João Matos
40119222c1
Default to .h file extension in C code generator.
5 years ago
João Matos
c19df0cc64
Minor refactoring fixes.
5 years ago
João Matos
5af8e9eb40
Add helper methods to ignore and generate specific translation units.
5 years ago
João Matos
76ae12b89e
Guard a few more language-specific passes in the driver.
5 years ago
João Matos
1af171dc93
Fix generation of multiple interfaces in C# for some edge cases.
5 years ago
João Matos
9df2f3c5e9
Fix templates to be abstract if any specialization is abstract.
5 years ago
João Matos
db3e0e3820
Fix TranslationUnit.FileRelativePath for invalid units.
5 years ago
João Matos
174ca98d1b
Guard C++/CLI specific code in CppSharp.c.
5 years ago
João Matos
ae47fd73bc
Re-use common C++ declaration type printing code in CLITypePrinter.
5 years ago
João Matos
c89d427bf2
Minor refactorings in CppTypePrinter.cs.
5 years ago
João Matos
fd914fa282
Allow changing the default TypePrinterContextKind when creating a type printer.
5 years ago
João Matos
c88ddcc60d
Refactor CLITypePrinter.cs to use string interpolation.
5 years ago
João Matos
4ac2427afc
Refactoring fixes in ParamTypeToInterfacePass.
5 years ago
João Matos
a7824abb02
Formatting fixes on MultipleInheritancePass.
5 years ago
Dimitar Dobrev
6fe81fddcc
Remove needless pointer offsets from generated C#
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
d3a3484c35
Fix a crash for secondary bases with secondary bases
...
The test has also uncovered a bug where the call to a primary base isn't always adjusted so the fix is extended accordingly.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
40ca6f281a
Fix bug related to processing of potential property methods.
...
Fixes https://github.com/mono/CppSharp/issues/1291 .
5 years ago
Dimitar Dobrev
37d391bdac
Ensure generated symbols can use placement new
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
d110a2f045
Fix Mono not being found on the PATH on recent macOS versions.
5 years ago
Dimitar Dobrev
8b0aecef9b
Instantiate exception specifications before reading
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
299cb912cc
Update LLVM to the latest version
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
36f754116f
Fix a syntax error in CMake listing Clang modules
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
fe8d0d70f8
Enable building lld as part of LLVM
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
067827cf29
Restore modules needed for compiling with Clang
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
454a46ed1c
Support Visual Studio 2019 for building Clang
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
f422ce27ba
Delete the no longer used Clang commit
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
aa5caaf6ff
Update Travis to Ubuntu Xenial 18.04.
5 years ago
Dimitar Dobrev
9337004bb6
Simplify and optimize the printing of pointers in C++
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
e4ac492560
Fix printing of function pointers in C++
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
ed2e45f609
Don't export symbols for explicit specializations
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
d31cab7315
Avoid invalid template specializations in tests
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
9b1cad799b
Update the printing of comments to the new Clang
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
709fcb6f7e
Work around MSVC 32 crashing reading of exported symbols in Mach-O
...
See https://bugs.llvm.org/show_bug.cgi?id=44433 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
fa5dbb9010
Improve Xcode toolchain lookup to be more robust.
...
Fixes https://github.com/mono/CppSharp/issues/1259 .
Signed-off-by: Joao Matos <joao@tritao.eu>
6 years ago
Joao Matos
be73e994bc
Implement logic for -fgnuc-version= argument required by LLVM.
...
Signed-off-by: Joao Matos <joao@tritao.eu>
6 years ago
Joao Matos
eab2620c18
Update LLVM to the latest version.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
Signed-off-by: Joao Matos <joao@tritao.eu>
6 years ago
Joao Matos
ac7bdb2585
Refactor Clang builtins directory logic and move it to the managed side.
...
This now matches systems Clang includes order on macOS which fixes a bug.
Signed-off-by: Joao Matos <joao@tritao.eu>
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
benjaminZale
9121d86a00
Escape C# strings correctly
...
The strings in the example code are not escaped correctly. If a user was to paste this code into a demo app it would not compile
6 years ago
Joao Matos
899e8d2caa
Improve CS_INTERNAL so it now applies to all declarations.
...
Signed-off-by: Joao Matos <joao@tritao.eu>
6 years ago
Joao Matos
29c0b8593a
Print the parser target triple in verbose mode.
...
Signed-off-by: Joao Matos <joao@tritao.eu>
6 years ago
Joao Matos
4862827e7d
Always re-create the Clang resource directory when building.
...
This makes sure that the copy is always done correctly, due to the Premake bug.
6 years ago
Joao Matos
7df1623e6d
Cleanup Clang resource directory lookup logic.
...
Now the logic is more standard across platforms, we always re-use the builtin bundled headers.
Fixes https://github.com/mono/CppSharp/issues/1259 .
6 years ago
Joao Matos
7aa62596df
Remove old workaround for testing issue that does not seem necessary anymore.
6 years ago
Joao Matos
993a45dc74
Git ignore .vscode directory.
6 years ago
Joao Matos
1f4595dfbe
Workaround Premake issue when copying the resource include directories at build time.
...
Related to: https://github.com/premake/premake-core/issues/1232
6 years ago
Joao Matos
f5638bd3cc
Fix warning about #pragma once in source file.
6 years ago
Joao Matos
1802dfa8fe
Update bootstrap tool to run against latest LLVM.
...
It generates to the end however the generated code is not fully compilable yet.
6 years ago