Dimitar Dobrev
c496fcb38c
Move the body of a template function to its header
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
89efbf69fd
Remove and simplify code in the major refactoring
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
29f1cc2901
Implement proper array printing with C array name suffix notation.
5 years ago
João Matos
d3935ec45c
Refactor type printing placeholder and name prefix/suffix code.
5 years ago
João Matos
7555cabd1b
Fix CLITypeReferences so it generates regular C++ code in C++ generator mode.
5 years ago
Dimitar Dobrev
f5d088fa9d
Document the release of CppSharp 0.10.2
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
d45e4ba1e3
Add CXXOperatorArity.Zero enum item for further usage in subsequent code.
5 years ago
João Matos
cfba72ce1b
Initial C++ generator backend.
5 years ago
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>
5 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>
5 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>
5 years ago
Joao Matos
be73e994bc
Implement logic for -fgnuc-version= argument required by LLVM.
...
Signed-off-by: Joao Matos <joao@tritao.eu>
5 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>
5 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>
5 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
5 years ago
Joao Matos
899e8d2caa
Improve CS_INTERNAL so it now applies to all declarations.
...
Signed-off-by: Joao Matos <joao@tritao.eu>
5 years ago