josetr
6496bf8dae
Basic support for static constexpr variables ( #1435 )
...
Basic support for static constexpr variables
5 years ago
josetr
0f498a1090
Add missing `Variable.Type` null check. ( #1430 )
...
Work around an unhandled case of the type of a variable
5 years ago
Dimitar Dobrev
cf29d26b8e
Revert "Add information about linkage to the AST"
...
This reverts commit e061edde76 .
We don't need it after all so let's keep the AST as simple as possible.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
b5ca0635be
Check symbols in tests
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
e061edde76
Add information about linkage to the AST
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
6dcb2ac31a
Generate valid C# for returned function pointers
...
Fixes https://github.com/mono/CppSharp/issues/1226 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
2acbf32a96
Fix generation for fields of type const reference
...
Fixes https://github.com/mono/CppSharp/issues/1323 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
081ac688f4
Simplify the mapping of virtual tables in C#
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
João Matos
568b68bb3f
Fix TranslationUnit.FileRelativeDirectory to be more robust against null include paths.
6 years ago
João Matos
f5d4a5d59c
Fix formatting to of Declaration.GenerationKind to ease debugging.
6 years ago
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