Dimitar Dobrev
1895ae3b94
Removed unused kinds of function synthesis.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
bbfeb09678
Ignored pack expansions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
bd86afa9a2
[ast] Visit methods, properties and fields when they're added as declarations.
8 years ago
Joao Matos
97cc7e53df
[ast] Added IsStatic property to fields.
8 years ago
Joao Matos
ae3b9f56a8
[ast] Added support for field acessors to functions (to be used by Embeddinator).
8 years ago
Joao Matos
a85dcaa533
[ast] Added a constructor taking string to UnsupportedType.
8 years ago
Joao Matos
38cb8e1dbe
Overhaul type printer and marshal contexts design and implementation.
...
The goal is to simplify the design and get rid of useless type printer contexts inside type printers.
8 years ago
Dimitar Dobrev
9dbcc3cc2c
Completed the support for dependent type names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
974f8fab20
Replaced the useless desugared dependent name type with its qualifier.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
6d63508d3f
Sent a missed changed about reading the function type in the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
1174800cff
Generated the symbols for templates by separate functions instead.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
fcca2e5501
Fixed the C++ printing of qualified template substitutions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
71c14cdb2b
Fixed the C++ printing of qualified specializations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
6a43e82047
Fixed the C++ printing of classes nested in specializations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
0f0f6172f0
Fixed the finding of functions to work in name-spaces too.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
bf6ee830ed
Simplified the printing of C++ qualifiers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
realvictorprm
10c86a2a10
Fixed the generated C# when an incomplete class is forwarded more than once.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
realvictorprm
9d89764965
Wrapped injected classes in order to ease binding lists of redeclarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
120e386ad9
Fixed a few warnings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
realvictorprm
938ccf686b
Incomplete classes and structs are now generated for C#. ( #797 )
...
This feature is NOT coming for C++/CLI !
8 years ago
Dimitar Dobrev
38f247b1db
Merged the libraries for inlines and templates into one.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
df9666d6c4
Added final AST support for methods and classes.
...
Conversion of Clang C++ AST state and update of C# generator to come at a later date.
9 years ago
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