Joao Matos
c4a215f5fa
Re-generate the parser bindings.
6 years ago
Joao Matos
a5c5b4c930
Added initial generated files `Expr.h` and `Stmt.h`.
6 years ago
Joao Matos
f5d1040725
Improve parser bootstrapping generator to generate skeletons of statements.
6 years ago
Joao Matos
4ab3343fe5
Use `takeError()` when handling errors in parsing libraries.
6 years ago
Joao Matos
45c5435899
Fully qualify references to `clang::Stmt` in parser code.
6 years ago
Joao Matos
0c90db02e4
Changed `BaseClassSpecifier` to inherit from `DeclarationBase`.
6 years ago
Joao Matos
24213ffbc7
Extract `Declaration` base code into `DeclarationBase`.
6 years ago
Joao Matos
a0c5dc8349
Added a `CCodeGenerator` class and move `Include` class as `CInclude`.
6 years ago
Joao Matos
1953f8f61f
Fixed a crash with `TranslationUnit.FileName` property.
6 years ago
Joao Matos
e9005f6eb2
Implemented Clang's MSVC toolchain lookup mode with `ForceClangToolchainLookup`.
6 years ago
Joao Matos
794b276cfb
Added `ForceClangToolchainLookup` option to force to use Clang's toolchain lookup code.
6 years ago
Joao Matos
bd4dec1586
Extract `ParserOptions` cloning code into a copy constructor.
6 years ago
Joao Matos
0be7e83a0e
Improve `ParserOptions.Verbose` to print compiler arguments.
6 years ago
Joao Matos
1dad81dab6
Fixed `Options.DryRun` to not generate any binding code.
6 years ago
Joao Matos
96cfb37aab
Implement `CppTypePrinter.VisitPrimitiveType(PrimitiveType, TypeQualifiers)`.
6 years ago
Joao Matos
2296f8b63c
Added some helper methods in `Enumeration` to work with scoped enumerations.
6 years ago
Joao Matos
d77c6559d5
Remove `VisitDeclaration` calls when visiting translation units.
...
This causes the `VisitNamespace.VisitDeclaration` to early out, so just remove this as its redundant.
6 years ago
Joao Matos
07e3113cef
Added a parsing option to skip gathering of native layout info.
...
The way we get AST layout info from Clang sometimes causes us to crash deep inside Clang.
While layout info is needed for binding C++ code, it is not usually necessary for more generalized AST consumption tasks, so add this option to make parsing code less problematic, until we are able to get the bugs tracked down.
6 years ago
Dimitar Dobrev
38844e5e23
Fixed a regression which made inlines uncompilable.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
bc7f20a10a
Fixed the generated C# when an instance method has a parameter named "instance".
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
b966bd6798
Fixed the generated C# for const/non-const overloads with > 1 param.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
980f36735c
Fixed the generated C# when a ref parameter is named after a keyword.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
5df67cd0c7
Fixed the generation for parameters of type void**.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
d97016fe3c
Fixed the generated C# for indexers in templates specialized with void*.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
cd32a449c8
Fixed the generated C# for template specializations of pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
6602841a3c
Fixed the generated C# for const void*& in parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
e2a23b8987
Fixed the generated C# when returning a non-const char*.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
c688330897
Fixed the generated C# for parameters initialized with {}.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
c51b3cba71
Fixed the generated C# when a template is specialized with T and const T.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
12642f9a42
Fixed the generated C# when an unsigned enum is assigned a negative value.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
7a9c3bf006
Documented the releases of CppSharp 0.8.22 and 0.8.23.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
751edf7488
Keep Clang libTooling libs when packaging LLVM.
6 years ago
Joao Matos
c6f3501f05
Sort LLVM CMake options.
6 years ago
Joao Matos
68db2a8e39
Fixed AST viewer to compile on Linux.
6 years ago
Joao Matos
f340e3b161
Remove unused CMakeLists.txt.
6 years ago
Joao Matos
b4f7459531
Improve error handling in build scripts `UseClang()`.
6 years ago
Joao Matos
d311d3be44
Added .NET Core build folder to Git Ignore .
6 years ago
Joao Matos
fdb7ddabdf
Initial integration of Clang AST viewer GUI tool.
6 years ago
Dimitar Dobrev
1ea19d5a1e
Made an exception serializable and removed another.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
01b4fa4c2e
Fixed the warnings in the test C++ for C# only.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
72709dcd7a
Fixed a crash when parsing libraries on macOS.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
5dcdfa66f3
Minor build changes.
6 years ago
Joao Matos
beca1b5942
Fixed error handling when parsing non-existent libraries.
6 years ago
Joao Matos
4fcfe4e4eb
Build changes.
...
- Added support for building with Clang and LLD
- Switched to use csc.exe Roslyn compiler under Mono
- Disable most of the support for explicit pre-C++11 ABI since we do not
need it anymore
6 years ago
Joao Matos
302565dc8e
Remove unused code.
6 years ago
Joao Matos
7fedac2740
Fixed warnings in native test code.
6 years ago
Dimitar Dobrev
5e0e19ea18
Fixed the generation of dependent virtual methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
a430d19870
Simplified the generation of virtual calls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
b0db304523
Fixed overloading of operators with parameters mapped to the same type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
f4673f5d7f
Extended the type maps for primitive strings to C++/CLI.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago