João Matos
7b77d84d20
Implement TranslationUnit.ToString() to help with debugging.
6 years ago
Dimitar Dobrev
5ceedc167a
Set the render kind of inline command comments
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
João Matos
c21ddcca1e
Implement parsing and AST processing of C++ deprecated attributes.
6 years ago
João Matos
23fab707b5
Fix FieldToProperty pass to ignore non-public properties in C++ generator.
6 years ago
João Matos
d45e4ba1e3
Add CXXOperatorArity.Zero enum item for further usage in subsequent code.
6 years ago
João Matos
c19df0cc64
Minor refactoring fixes.
6 years ago
João Matos
db3e0e3820
Fix TranslationUnit.FileRelativePath for invalid units.
6 years ago
Dimitar Dobrev
6fe81fddcc
Remove needless pointer offsets from generated C#
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 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
Joao Matos
c5bcb48cc2
Implement UnresolvedUsingType and UnresolvedUsingTypename.
...
Fixes https://github.com/mono/CppSharp/issues/1235 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
4bab0fc265
Fill in missed values when cloning functions
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
65b17fc958
Optimize calls to base getters in properties
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
499ecc3b89
Simplify searching for base properties
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
d90d3283e4
Generate with no hacks correctly sized layouts
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
1fc1b4ec51
Fix default arguments to only map to null if pointers
...
This bug is revealed by properly fixing the reading of ABI parameters in the parser.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
53816286bc
Fixed type map support for typedef types.
...
Fixes https://github.com/mono/CppSharp/issues/1205 .
7 years ago
Joao Matos
3eee343554
Add parsing and AST support for RecordArgABI information in class records.
7 years ago
Dimitar Dobrev
9bc39c44ab
Generate valid C# for template indexers taking const char*
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 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>
7 years ago
Joao Matos
3ea7e97241
Re-generated the parser bindings and bootstrap code.
7 years ago
Dimitar Dobrev
926e8ab343
Regenerate the parser bindings
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
02955f913d
Added statement visiting to IAstVisitor.
7 years ago
Joao Matos
a4ed8a5204
Re-generated the AST bootstrap code with visitors and abstract classes.
7 years ago
Dimitar Dobrev
01a24182d7
Changed expressions to use properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 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>
7 years ago
Dimitar Dobrev
9840d8a267
Added the new default values based on expressions, to parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
5559ef47c7
Added support for values in more literal expressions.
7 years ago
Joao Matos
8bf27c43e5
Skip ignored bases in `ClassExtensions.GetBaseProperty`.
7 years ago
Joao Matos
8057040c0c
Added `StripConst` extension method to `QualifiedType`.
7 years ago
Joao Matos
06ddf85b4f
Added managed AST conversion code for statements and expressions.
7 years ago
Joao Matos
6ef3f993c5
Generate the parser managed code for expressions and statements.
7 years ago
Joao Matos
aa73692543
Obsolete managed expression class machinery.
7 years ago
Joao Matos
f642cefe5f
Move `ITypePrinter` from `AST` to `Generator`.
7 years ago
Joao Matos
6dfd16ba9b
Move `CppTypePrinter` to generators and inherit from `TypePrinter`.
7 years ago
Joao Matos
0c90db02e4
Changed `BaseClassSpecifier` to inherit from `DeclarationBase`.
7 years ago
Joao Matos
24213ffbc7
Extract `Declaration` base code into `DeclarationBase`.
7 years ago
Joao Matos
1953f8f61f
Fixed a crash with `TranslationUnit.FileName` property.
7 years ago
Joao Matos
96cfb37aab
Implement `CppTypePrinter.VisitPrimitiveType(PrimitiveType, TypeQualifiers)`.
7 years ago
Joao Matos
2296f8b63c
Added some helper methods in `Enumeration` to work with scoped enumerations.
7 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.
7 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>
7 years ago
Dimitar Dobrev
d97016fe3c
Fixed the generated C# for indexers in templates specialized with void*.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
e2a23b8987
Fixed the generated C# when returning a non-const char*.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
efa11ab745
Simplified type maps by unlinking them from declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
55053fddda
Properly hashed types to optimize their storage in maps.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
4adc3d646a
Fixed right-value references creating ambiguous overloads.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
202ae75df4
Fixed the generated code in a case of ambiguous overloads.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
a4913509eb
Added type maps for primitive strings (pointers to char).
...
const char*, const char16_t* and const wchar_t* in particular.
This enables comparison of types when resolving ambiguity.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
c3629a2aad
Initial support for building under .NET Core.
7 years ago
Dimitar Dobrev
8c2d9ea750
Fixed a possible crash when ordering declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago