Joao Matos
f5520140f3
Fixed missing leading space in comment.
9 years ago
Joao Matos
be8d26b248
Extract C# using generation into its own method.
9 years ago
Joao Matos
172c219b81
Refactor namespace handling in C# generator inside VisitNamespace.
9 years ago
Dimitar Dobrev
d9ffb1b5af
Shortened the delegates used in the C# end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2352681f5b
Fixed a regression causing objects to be missing at virtual calls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
35761e1ca6
Remove unused implementations from CLITypePrinter.
9 years ago
Sean McLellan
9d30df5c67
Add link to ChakraSharp in readme ( #761 )
9 years ago
Dimitar Dobrev
ecce0d4c33
Regenerated the parser bindings with fully qualified types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
8cb1af92b7
Changed the C# generator to always fully qualify types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
cd777c7c85
Refactored CLITypePrinter to use TypePrinter base class.
9 years ago
Joao Matos
9450fe452a
Refactored CSharpTypePrinter to use TypePrinter base class.
9 years ago
Joao Matos
ce09f02e22
Added a TypePrinter base class.
9 years ago
Joao Matos
3629eead5d
Rename CSharpMarshalKind to MarshalKind and move it to Marshal.cs.
9 years ago
Joao Matos
ff4a76a1f7
Rename CSharpTypePrinterResult to TypePrinterResult.
9 years ago
Joao Matos
5d19f22d4c
Unify CSharpTypePrinterContextKind with TypePrinterContextKind.
9 years ago
Joao Matos
4d7733db80
Minor comment clarification.
9 years ago
Joao Matos
558f6192a2
Generate file preamble in CLI generator.
9 years ago
Joao Matos
40bfd65135
Revert "Extract current module as read-only property to CodeGenerator.Module."
...
This reverts commit d340de3afa
.
9 years ago
Dimitar Dobrev
d02c4d1e42
Skipped checking class template specialisations for symbols.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
2ad1f8b001
Extract file preamble generation into CodeGenerator.
9 years ago
Joao Matos
d340de3afa
Extract current module as read-only property to CodeGenerator.Module.
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
Dimitar Dobrev
e32ebc8200
Added resolution of C++ "auto" types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
3070cdd955
Stubbed BuiltinTemplate and ClassScopeFunctionSpecialization decl types in parser.
9 years ago
Joao Matos
70257ab6df
Stubbed out clang AutoType in the parser to get rid of warnings.
9 years ago
Joao Matos
0d39c03bc9
Use the type printer from CSharpGenerator in CSharpSources.
...
The code generator depends on the it being the same due to side effects from type printer context handling.
9 years ago
Joao Matos
a298f5c8b5
Extract CSharpTypePrinter.GetPrimitiveTypeWidth to re-use it in Java type printer.
9 years ago
Joao Matos
9ea9a302e4
Fixed CSharpTypePrinter.GetIntString to work without ParserTargetInfo available.
9 years ago
Joao Matos
ab085d5cb4
Make Declaration.GatherNamespaces public again.
9 years ago
Joao Matos
f68dc310f0
Pass the binding context when running passes.
9 years ago
Joao Matos
55c26d2fe5
Setup type and expression printer in C# sources generator.
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
Dimitar Dobrev
c472643edf
Deleted more redundant code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9fd5d48a71
Deleted unused code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
346a18ee3d
Added an event to the pass for inlines to help compile them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
ee171eb9fa
Freed up the native parser options when done with.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
João Matos
7beb072f0b
Merge pull request #757 from zillemarco/master
...
Changed code to fit repository style and fixed wrong CLI application name
9 years ago
Marco Zille
6faa591884
Fixed wrong application name when showing help (see #745 )
9 years ago
Marco Zille
9b2ef9e520
Fixed up CLI code to match repository's style
9 years ago
Dimitar Dobrev
1f6a285f61
Ignored a test on Linux because incorrectly patched v-tables cause its failure.
...
See https://github.com/mono/CppSharp/issues/755 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
acb159c08f
Regenerated the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6f367e1af4
Changed the convention of inlined constructors and destructors to C.
...
This is necessary so that they match the C++ functions which wrap their native counterparts.
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
Joao Matos
e034bd6f85
Re-use binding context from driver instead of creating new one for test.
9 years ago
Joao Matos
f95ea6bdc8
Fixed TestAst.TestSignature under non-Windows platforms.
9 years ago
Joao Matos
fe0ee21392
Remove and sort usings.
9 years ago
Joao Matos
86f2eca475
Rewrite the way we do embedded resource loading to work with VS for Mac.
9 years ago
Joao Matos
e3ff818433
Throw an exception when embedded verbs file is not found.
9 years ago