Joao Matos
c6afb4d1a0
Cleaned up code formatting in ParserOptions.SetupLinux().
6 years ago
Joao Matos
ea7023dfad
Remove ParserOptions.Abi since its misleading as it serves no purpose.
6 years ago
Joao Matos
f35bd75563
Improved robustness when parsing C++ ABI kind.
...
Fixes https://github.com/mono/CppSharp/issues/1202 .
6 years ago
Dimitar Dobrev
152142535b
Document the release of CppSharp 0.9.1
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
9bc39c44ab
Generate valid C# for template indexers taking const char*
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
3caa8c5da2
Restore removed specializations
...
All specializations which only use pointers as their type arguments need at most one internal representation since pointers are mapped to IntPtr. This was achieved by removing the unneeded specializations from their containing list. This was, however, a bug because specializations were thus removed not only as internal structures but in their entirety.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
304d673bf7
Add a generic pointer to resolve ambiguity
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
c75e9f6c5e
Fix a crash when a function pointer is a template arg
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
51d422a756
Fix invalid C++/CLI generated for anonymous types
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
c358d6bbef
Expose public anonymous types
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
d735f391b1
Fix the generated C# for fields of type function pointer
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
d5380fe890
Fix the generated C# for const char*&
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
75bd5050fe
Fix the pass for duplicate names not to compare return parameters
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
6e78b4df15
Fix the generated C# when type arguments are mapped the same
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
David Schaefer
45b05d7e23
fixes typo in options: chsarp -> csharp
6 years ago
David Schaefer
230079e0f6
fixes #1191 CppSharp.CLI.exe --rtti sets -fno-rtti to clang
...
The problem being fixed is that although --rtti is given as argument to
CppSharp.CLI.exe the runtime type information is turned off. The error
is happening because the Generator options are copied over to the
parserOptions after the parserOptions have been used to generate the
cmake call. Thus, the default value of RTTI (off) is always evaluated
and cmake will always get the parameter -fno-rtti.
The same issue seems to apply to the unity build.
This patch fixes the issue by moving the 2 assignments of Generator
options properties into ParserOptions properties before they are
evaluated in parserOptions.Setup();
6 years ago
Dimitar Dobrev
4dcbff3d62
Fix the generated C# for a case with 2 template args
...
When a template with 2 args and a method with a dependent pointer was specialized with const char*, there were methods with identical signatures generated for different specializations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
76ba6d4cd5
Remove unused line in `Bootstrap.cs`.
6 years ago
Joao Matos
3ea7e97241
Re-generated the parser bindings and bootstrap code.
6 years ago
Joao Matos
e0875c7a8c
Ignore `stripLabelLikeStatements` property in bootstrap generator.
...
This is not really necessary and causes StackOverflow exceptions when parsing statements.
6 years ago
Dimitar Dobrev
926e8ab343
Regenerate the parser bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
8ad78c37c4
Fix the generation of properties for locations in expressions
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
02955f913d
Added statement visiting to IAstVisitor.
6 years ago
Joao Matos
a4ed8a5204
Re-generated the AST bootstrap code with visitors and abstract classes.
6 years ago
Joao Matos
69ce866d82
Extended parser bootstrap with managed visitors.
6 years ago
Dimitar Dobrev
831cea92ce
Fix the generated C# when a dependent param has a default value
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
9cad9462e2
Fixed ambiguous code when a nested type and a property-like method with overloads have the same name
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
d5ee92bd45
Ignore methods with parameters when generating expressions
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
93cc7edd3e
Documented the release of CppSharp 0.9.0.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
42a5f50dfc
Documented the option of having Clang look up MSVC headers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
01a24182d7
Changed expressions to use properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
João Matos
c9d43f6cc8
Update BuildingLLVM.md
6 years ago
Dimitar Dobrev
bbbf94b0f0
Made public the finding of enabled type maps by strings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
73b011e3c4
Optimized the generation of expressions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
be0d9494fd
Exposed many more properties of expressions.
...
They were previously hidden by a bug in the pass for properties fixed since.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
aad3b7f186
Fixed the renaming of properties with the same name as their owners.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
63dc3b590d
Simplified the pass for properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
9840d8a267
Added the new default values based on expressions, to parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
5559ef47c7
Added support for values in more literal expressions.
6 years ago
Joao Matos
8bf27c43e5
Skip ignored bases in `ClassExtensions.GetBaseProperty`.
6 years ago
João Matos
bcf001401a
Update README.md
6 years ago
Joao Matos
9a23f51d91
Fixed missing options copy in ParserOptions copy constructor.
6 years ago
Joao Matos
5c4f3be5fb
Use MSBuild when building LLVM on Windows due to PDB issues with Ninja.
6 years ago
Joao Matos
f65d41080f
Added parser bootstrap generator with support for expressions and statements.
6 years ago
Joao Matos
8057040c0c
Added `StripConst` extension method to `QualifiedType`.
6 years ago
Joao Matos
0b608b0435
Change access of `RenamePass.ConvertCaseString` to allow external usage.
6 years ago
Joao Matos
378c9b301e
Added support for parsing function bodies (and option `SkipFunctionBodies`).
6 years ago
Joao Matos
06ddf85b4f
Added managed AST conversion code for statements and expressions.
6 years ago
Joao Matos
6ef3f993c5
Generate the parser managed code for expressions and statements.
6 years ago
Joao Matos
faf8037be0
Re-generate the parser bindings.
6 years ago