Dimitar Dobrev
346a18ee3d
Added an event to the pass for inlines to help compile them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
ee171eb9fa
Freed up the native parser options when done with.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Marco Zille
6faa591884
Fixed wrong application name when showing help (see #745 )
10 years ago
Marco Zille
9b2ef9e520
Fixed up CLI code to match repository's style
10 years ago
Dimitar Dobrev
acb159c08f
Regenerated the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 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>
10 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
10 years ago
Joao Matos
e034bd6f85
Re-use binding context from driver instead of creating new one for test.
10 years ago
Joao Matos
f95ea6bdc8
Fixed TestAst.TestSignature under non-Windows platforms.
10 years ago
Joao Matos
fe0ee21392
Remove and sort usings.
10 years ago
Joao Matos
86f2eca475
Rewrite the way we do embedded resource loading to work with VS for Mac.
10 years ago
Joao Matos
e3ff818433
Throw an exception when embedded verbs file is not found.
10 years ago
Joao Matos
d50ee38470
Fixed GeneratorTests.GetOutputDirectory to work with VS for Mac.
10 years ago
Joao Matos
04686b4b60
Modify CovariantTypeComparer to be a pass and remove dummy visitor implementations.
10 years ago
Joao Matos
035c3707e5
Rename template variable.
10 years ago
Joao Matos
2595e2426e
Reduce nesting in CheckMacrosPass.CheckForTemplateConstraints.
10 years ago
Joao Matos
00e29e25b2
Reduce nesting in CheckIgnoredDecls.CheckIgnoredBaseOverridenMethod.
10 years ago
Joao Matos
4043449ddc
Extract inlines code generator handling code into its own method.
10 years ago
Joao Matos
e11314143a
Global qualify ConcurrentDictionary references in generated code.
...
Fixes issue #747 .
10 years ago
Joao Matos
7ce23aebc0
Clean up compilation warnings.
...
../../../src/CLI/CLI.cs(147,29): warning CS0168: The variable `ex' is declared but never used
../../../src/CLI/CLI.cs(186,30): warning CS0168: The variable `ex' is declared but never used
10 years ago
Joao Matos
04ee2e5b7d
Rename CodeGenerator.Templates to Outputs.
10 years ago
Joao Matos
b49389e409
Rename CodeTemplate to CodeGenerator.
10 years ago
Dimitar Dobrev
87a75e3acd
Changed the generation of C++ for inlines not to rely on -fkeep-inline-functions.
10 years ago
Dimitar Dobrev
5a17cc12e1
Extended the searching for type maps to try resolving type defs.
10 years ago
Dimitar Dobrev
99bb582e57
Fixed a crash when blocking the pass for finding symbols from outside.
10 years ago
Dimitar Dobrev
8fa4a1082e
Supported the "volatile" qualifier in the CPP printer.
10 years ago
Dimitar Dobrev
fc55c7ed09
Added a mechanism for external code to block the pass for finding symbols.
...
It's useful when waiting for new symbols, such as inlines and templates, to be compiled.
10 years ago
Dimitar Dobrev
e490343dfc
Skipped checking for symbols of virtual functions as we call those through the v-table.
...
Note: in certain cases of optimisation the compiler can, however, remove the whole virtual table, so we need to bear in mind that some day we'll hit trouble here.
10 years ago
Joao Matos
28b28d7420
Remove unused using.
10 years ago
Joao Matos
2e2310a159
Remove some dead code from ClassExtensions.cs.
10 years ago
Dimitar Dobrev
930dd85f15
Ensured delegates are generated within the main name-space and reused them more.
10 years ago
Joao Matos
9807ffdec7
Fixed class documentation for ASTContext.
10 years ago
Joao Matos
2b0380a77e
Simplify return condition in CheckStaticClass.IsProtectedClassMember.
10 years ago
Dimitar Dobrev
c82c6f0048
Removed the method for constructing the type of a function as we now read it in the parser.
10 years ago
Dimitar Dobrev
2531d631c6
Ensured template arguments of specialised functions are read.
10 years ago
Dimitar Dobrev
5899f0e0c4
Handled base "setters" overridden in derived types with a getter.
10 years ago
Joao Matos
90abca7dc2
Remove CheckVTableComponentsPass.
...
It was added 3 years ago as a workaround for Clang MS vtable layouting bugs which have since been solved upstream.
10 years ago
Joao Matos
dad7ec8ccb
Refactor protected class member checking in CheckStaticClass.
10 years ago
Joao Matos
0798cc8a8b
Extract operator creation to its own method.
10 years ago
Joao Matos
d5273df4f5
Document CheckFlagEnumsPass class.
10 years ago
Joao Matos
6de27837cd
Improve readability.
10 years ago
Joao Matos
0c5729765e
Reduce nesting.
10 years ago
Joao Matos
38d5bc3094
Convert CodeTemplate.FileExtension overrides to expression-bodied members.
10 years ago
Joao Matos
9d9aebf2eb
Remove duplicated TargetPlatform type in CLI.
10 years ago
Joao Matos
17d06ac0e5
Port class handling to visitor model in C# generator.
10 years ago
Joao Matos
3eb59e4667
Minor improvements to code readability.
10 years ago
Joao Matos
08c089251a
Port declaration context handling to visitor model in C# generator.
10 years ago
Joao Matos
34ed304228
Renamed Template to CodeTemplate due to conflict with AST templates.
10 years ago
Joao Matos
c0d4aa3979
Modified templates to be visitors.
10 years ago
Joao Matos
70e4d3b3a4
Added a new overload to Template that takes a single translation unit.
10 years ago