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
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
04686b4b60
Modify CovariantTypeComparer to be a pass and remove dummy visitor implementations.
9 years ago
Joao Matos
035c3707e5
Rename template variable.
9 years ago
Joao Matos
2595e2426e
Reduce nesting in CheckMacrosPass.CheckForTemplateConstraints.
9 years ago
Joao Matos
00e29e25b2
Reduce nesting in CheckIgnoredDecls.CheckIgnoredBaseOverridenMethod.
9 years ago
Joao Matos
4043449ddc
Extract inlines code generator handling code into its own method.
9 years ago
Joao Matos
e11314143a
Global qualify ConcurrentDictionary references in generated code.
...
Fixes issue #747 .
9 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
9 years ago
Joao Matos
04ee2e5b7d
Rename CodeGenerator.Templates to Outputs.
9 years ago
Joao Matos
b49389e409
Rename CodeTemplate to CodeGenerator.
9 years ago
Dimitar Dobrev
87a75e3acd
Changed the generation of C++ for inlines not to rely on -fkeep-inline-functions.
9 years ago
Dimitar Dobrev
5a17cc12e1
Extended the searching for type maps to try resolving type defs.
9 years ago
Dimitar Dobrev
99bb582e57
Fixed a crash when blocking the pass for finding symbols from outside.
9 years ago
Dimitar Dobrev
8fa4a1082e
Supported the "volatile" qualifier in the CPP printer.
9 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.
9 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.
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
Dimitar Dobrev
930dd85f15
Ensured delegates are generated within the main name-space and reused them more.
9 years ago
Joao Matos
9807ffdec7
Fixed class documentation for ASTContext.
9 years ago
Joao Matos
2b0380a77e
Simplify return condition in CheckStaticClass.IsProtectedClassMember.
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
2531d631c6
Ensured template arguments of specialised functions are read.
9 years ago
Dimitar Dobrev
5899f0e0c4
Handled base "setters" overridden in derived types with a getter.
9 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.
9 years ago
Joao Matos
dad7ec8ccb
Refactor protected class member checking in CheckStaticClass.
9 years ago
Joao Matos
0798cc8a8b
Extract operator creation to its own method.
9 years ago
Joao Matos
d5273df4f5
Document CheckFlagEnumsPass class.
9 years ago
Joao Matos
6de27837cd
Improve readability.
9 years ago
Joao Matos
0c5729765e
Reduce nesting.
9 years ago
Joao Matos
38d5bc3094
Convert CodeTemplate.FileExtension overrides to expression-bodied members.
9 years ago
Joao Matos
9d9aebf2eb
Remove duplicated TargetPlatform type in CLI.
9 years ago
Joao Matos
17d06ac0e5
Port class handling to visitor model in C# generator.
9 years ago
Joao Matos
3eb59e4667
Minor improvements to code readability.
9 years ago
Joao Matos
08c089251a
Port declaration context handling to visitor model in C# generator.
9 years ago
Joao Matos
34ed304228
Renamed Template to CodeTemplate due to conflict with AST templates.
9 years ago
Joao Matos
c0d4aa3979
Modified templates to be visitors.
9 years ago
Joao Matos
70e4d3b3a4
Added a new overload to Template that takes a single translation unit.
9 years ago
Joao Matos
d90e4b38cd
Fixed CleanUnitPass to deal with directory-less translation unit paths.
...
Fixes issue #738 .
9 years ago
Joao Matos
1df31e0dea
Extracted module lookup from CleanUnitPass.VisitTranslationUnit.
9 years ago