Dimitar Dobrev
9dbcc3cc2c
Completed the support for dependent type names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
974f8fab20
Replaced the useless desugared dependent name type with its qualifier.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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>
9 years ago
Dimitar Dobrev
1174800cff
Generated the symbols for templates by separate functions instead.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
fcca2e5501
Fixed the C++ printing of qualified template substitutions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
71c14cdb2b
Fixed the C++ printing of qualified specializations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6a43e82047
Fixed the C++ printing of classes nested in specializations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0f0f6172f0
Fixed the finding of functions to work in name-spaces too.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
bf6ee830ed
Simplified the printing of C++ qualifiers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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>
9 years ago
realvictorprm
9d89764965
Wrapped injected classes in order to ease binding lists of redeclarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
120e386ad9
Fixed a few warnings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
realvictorprm
938ccf686b
Incomplete classes and structs are now generated for C#. ( #797 )
...
This feature is NOT coming for C++/CLI !
9 years ago
Dimitar Dobrev
38f247b1db
Merged the libraries for inlines and templates into one.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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
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