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
Joao Matos
d50ee38470
Fixed GeneratorTests.GetOutputDirectory to work with VS for Mac.
9 years ago
Joao Matos
5e7a7d5d54
Fixed build directory path when copying test libraries in Travis.
9 years ago
Joao Matos
ed08714e9c
Run the AST tests under Travis.
9 years ago
Joao Matos
a2a51fa1a0
Update bundled NUnit to Nuget version.
9 years ago
Joao Matos
b23fd0d21d
Update Git ignore patterns for NUnit Nuget install.
9 years ago
Joao Matos
6c96750d0d
Do not write NUnit XML result files when running tests.
9 years ago
Joao Matos
fd2fd4b96b
Use the test runner script in Travis CI.
9 years ago
Joao Matos
460f32e229
Add a script for running the test suite in Linux/OSX.
9 years ago
Joao Matos
04686b4b60
Modify CovariantTypeComparer to be a pass and remove dummy visitor implementations.
9 years ago
Joao Matos
34ace7c966
Fix indentation for some test cases.
9 years ago
Joao Matos
035c3707e5
Rename template variable.
9 years ago
Joao Matos
2595e2426e
Reduce nesting in CheckMacrosPass.CheckForTemplateConstraints.
9 years ago