Dimitar Dobrev
7ad1af0cac
Removed redundant qualification of types in the generated C#.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
ab085d5cb4
Make Declaration.GatherNamespaces public again.
9 years ago
Dimitar Dobrev
cf7813d8d6
Moved the C# generation of internal names of template specialisations to the C# type printer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6353b4b2a5
Simplified the construction of names by using stacks.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
9a5728ec16
Fixed equality testing of unsugared template specializalition types.
...
Fixes crash in Test.AST.TestAmbiguity.
System.NullReferenceException: Object reference not set to an instance of an object
at CppSharp.AST.QualifiedType.Equals (System.Object obj) [0x00027] in /Users/joao/Dev/MonoEmbeddinator4000/external/CppSharp/src/AST/Type.cs:89
at CppSharp.AST.QualifiedType.op_Equality (CppSharp.AST.QualifiedType left, CppSharp.AST.QualifiedType right) [0x0000f] in /Users/joao/Dev/MonoEmbeddinator4000/external/CppSharp/src/AST/Type.cs:94
at CppSharp.AST.TemplateSpecializationType.Equals (System.Object obj) [0x00062] in /Users/joao/Dev/MonoEmbeddinator4000/external/CppSharp/src/AST/Type.cs:718
at CppSharp.AST.TypedefType.Equals (System.Object obj) [0x0002a] in /Users/joao/Dev/MonoEmbeddinator4000/external/CppSharp/src/AST/Type.cs:447
9 years ago
Dimitar Dobrev
5a17cc12e1
Extended the searching for type maps to try resolving type defs.
9 years ago
Dimitar Dobrev
8fa4a1082e
Supported the "volatile" qualifier in the CPP printer.
9 years ago
Joao Matos
28b28d7420
Remove unused using.
9 years ago
Joao Matos
2e2310a159
Remove some dead code from ClassExtensions.cs.
9 years ago
Joao Matos
9807ffdec7
Fixed class documentation for ASTContext.
9 years ago
Dimitar Dobrev
c82c6f0048
Removed the method for constructing the type of a function as we now read it in the parser.
9 years ago
Dimitar Dobrev
b8f54de73e
Parsed function bodies.
9 years ago
Dimitar Dobrev
8d322ad53e
Properly handled signed chars in the AST.
9 years ago
Dimitar Dobrev
cef847825a
Exposed constant expressions, friendships and exception specifications of functions in our AST.
9 years ago
Joao Matos
b708cecf43
Removed per-project AssemblyInfo.cs property files.
...
This is to be replaced later with a shared project generated by Premake at build time.
9 years ago
Dimitar Dobrev
f6c617cd38
Removed some useless workaround for type definitions.
...
Fixes https://github.com/mono/CppSharp/issues/671 .
9 years ago
Dimitar Dobrev
21233a6622
Hid most internal details of the generated code from users.
9 years ago
Joao Matos
e61a7b7453
Fixed type printing code to work handle non-C++ global qualified names correctly.
9 years ago
Dimitar Dobrev
5af5b2093f
Extended the AST with the template parameters being substituted.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
99f6dcac7b
Fixed a possible crash when getting a declaration from a type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
cc2fec76d1
Make Declaration.GatherNamespaces public.
9 years ago
Joao Matos
a0ac04d67c
Fixed another instance of qualified pontee visitation.
9 years ago
Joao Matos
b117410729
Moved typedef declarations to their own file.
9 years ago
Joao Matos
4d277afa69
Fixed C/C++ type printing of const pointers with const types.
9 years ago
Dimitar Dobrev
d22e084c7c
Fixed the walking of pointer types to use the correct qualifiers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
f32375be4f
Refactored and renamed ASTContext.FindOrCreateModule.
9 years ago
Dimitar Dobrev
db942dc06c
Wrapped the reference qualifier of functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
71c6e72959
Added convenience ctor to TypedefType.
9 years ago
Joao Matos
e1fae44c64
Refactored CppTypePrinter to be more easily extensible.
9 years ago
Joao Matos
21dd5d71a8
Fixed ASTVisitor.VisitUnsupportedType to be virtual.
9 years ago
Joao Matos
284ee9eba3
Added support for printing variable arrays as pointers in C type printer.
9 years ago
Joao Matos
76ce6c7836
Added an unsupported type node to the AST.
9 years ago
Joao Matos
e90ffcc5bd
Added Objective-C parameter printing to type printer.
9 years ago
Dimitar Dobrev
d2326a3883
Added processing of type aliases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b16bb0a979
Moved the change of order when visiting properties to just the renaming pass.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
829422cc86
Fixed invalid generated C# code when having a field renamed the same as a method.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1bcf5c514e
Wrapped units with ignored classes because of their internals.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e6c4bb9cc5
Fixed a crash when overrides change the sugaring of involved types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
5d8ecf32d7
Extended the AST with the GCC vector type ("__attribute__").
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
50ee414799
Fixed the C++ type printer to handle const value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
65fc10680a
Move SourceLocation to CppSharp.AST.
10 years ago
Joao Matos
a44da437e6
Rename AstVisitor.Options to VisitOptions.
10 years ago
Joao Matos
77b6eef89d
Extracted QualifiedNameSeparator from GetQualifiedName.
10 years ago
Joao Matos
bbfff6eec0
Improved error message for unhandled CIL type prints.
10 years ago
Joao Matos
da10dd7046
Implement const-qualified printing of CIL strings.
10 years ago
Joao Matos
3ff416b483
Updated type printer to latest changes from Mono managed to native codebase.
10 years ago
Joao Matos
a237dbf1e2
Updated build files to Premake 5 conventions.
10 years ago
Dimitar Dobrev
7d6f344324
Improved the default names of libraries for inlines and template specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
a4dfeb94be
Moved the marking of supported template specialisations to a pass.
...
This allows custom passes to add other specialisations to support.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
deea8d8cda
Removed functions made ambiguous by different qualifiers on the same type in their parameter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago