Joao Matos
e74c72cb31
Call VisitDeclaration when visiting enumeration items.
9 years ago
Dimitar Dobrev
8b230bdf07
Fixed a corner case of a default parameter with a type mapped to an enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
935c580465
Deleted a useless weak reference thus simplifying TranslationUnit.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
8646d3e077
Obsoleted the direct settings for wrapped libraries in the options.
...
Modules should be used instead.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
4a653b00bd
Added string as a primitive type to the type system.
...
This will make it less hacky to represent proper strings in our AST model.
9 years ago
Joao Matos
f8725509fb
Print null primitive type printing for non-C++ based languages.
9 years ago
Joao Matos
44c2be4375
Abstract generated method override check into AST extensions.
9 years ago
Joao Matos
a6c3410b09
Fixed C typedef type printing regression.
...
This one was introduced by 8fa4a1082e and broke Embeddinator.
9 years ago
Joao Matos
3bfb24228b
Remove "Ordinary" prefix from BCPL and C comment kinds.
9 years ago
Joao Matos
9a4c0bae82
Renamed RawCommentKind to CommentKind.
9 years ago
Joao Matos
b1f7ad6f70
Renamed CommentKind to DocumentationCommentKind.
9 years ago
Joao Matos
611aa35750
Added a generation method for multi-line comments.
9 years ago
Joao Matos
89a31730fc
Added a visitor overload for translation units.
9 years ago
Dimitar Dobrev
c7203ad8e7
Collected template parameters of class templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
dad52a2d5b
Clean up display paths of generated build project files.
...
Fixes issue #639 . https://github.com/mono/CppSharp/issues/639
9 years ago
Joao Matos
7daf556fb7
Added visitor support for typedef name declarations and unify type alias and typedef implementations.
9 years ago
Joao Matos
5d19f22d4c
Unify CSharpTypePrinterContextKind with TypePrinterContextKind.
9 years ago
Joao Matos
dc998d391e
Minor code formatting changes.
9 years ago
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