triton
cf040d9c2a
Use a different generic type variable name that does not conflict with the parent one.
12 years ago
triton
3e505737d7
Rework the handling for functions that need hidden structure parameters.
...
The main changes are:
- The original return type is now kept as the type of the generated parameter
- The return type of the function is set to void to represent what is actually happening.
This also fixes a bunch of bugs related due to using the wrong return type in some places.
12 years ago
triton
e0e507b938
Implemented type printing support for PrimitiveType.IntPtr.
12 years ago
triton
e05ede4b35
Added a stub for std::vector creation.
12 years ago
triton
5c982b5a8f
Better stubs (that actually compile) for std::wstring in C# backend.
12 years ago
triton
0c51ea6862
When generating tests glue, wrap the declaration in a namespace with the library name, this makes sure there are no conflicts between native and managed types.
12 years ago
triton
081ca5e6c1
Return the result of VisitDeclaration in TypeIgnoreChecker.VisitClassDecl.
12 years ago
triton
ebde1312c2
Run the CheckAbiParameters pass after CheckOperatorsOverloadsPass since the latter can change the signature of the methods which can affect the correctness of the first pass.
12 years ago
triton
608d4c19f4
Added config variable to the the build.
12 years ago
triton
354f19f46e
Fixed VS lookup to use the first valid VS version found. This makes sure we use the oldest VS version since Clang will not yet work fully with newer (2013+) MSVC headers.
12 years ago
triton
6814684072
Added virtual function overriding support to the C# backend.
12 years ago
triton
e0903d8fac
Added virtual table tests.
12 years ago
triton
d9eb2f5b3e
Renamed Hello tests to Basic.
12 years ago
triton
ef69a28bed
Improved VS paths lookup checking.
...
This fixes a bug that happened when you had multiple versions of VS installed and your highest version did not provide the native development SDK.
12 years ago
João Matos
b80252139f
Merge pull request #25 from ddobrev/qtcore_hacks
...
Qtcore hacks
12 years ago
João Matos
0eb23a5f16
Merge pull request #27 from ddobrev/master
...
Fixed finding MinGW symbols; checked the desugared type when visiting pointer types.
12 years ago
Dimitar Dobrev
ef1828d710
Checked the desugared type when visiting pointer types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
90db6eb95d
Added an option for the used ABI to the C++ Parser class.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
31fe7760ad
Added 3 hacks so that QtCore reaches the end of code generation:
...
1. If an expression of an enum item is null, count it as non-hex;
2. Do not throw a NotSupported exception when a fixed array of an non-primitive type is encountered;
3. Provide some seemingly correct implementation for CppTypePrinter.VisitTemplateParameterSubstitutionType.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
João Matos
ae719c822b
Merge pull request #24 from ddobrev/master
...
Generation of function pointers
12 years ago
Dimitar Dobrev
7f8494ca94
Added generation of function pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d526dda895
Replaced a range-based for to ensure VS C++ 2010 compliance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d213c8c3fc
Changed the target .NET to 4.0 because the code does not make use of 4.5 features and this way it can be compiled with VS 2010.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
7c396d2852
Only run the FieldToPropertyPass after the user passes and the fields state can change.
12 years ago
triton
3e7354a24c
When building the passes also call the generator so it can setup its specific passes.
12 years ago
triton
359920bdbf
Added a new option to ignore parser warnings.
12 years ago
triton
c2f4122414
Added workaround for CLR limitation when searching for native libraries.
12 years ago
triton
aa8cc62c08
Remove the SDL tests from the main build.
12 years ago
triton
4152c30054
Ignore static assert declarations.
12 years ago
triton
871e14291b
We need to call SourceManager::getFileLoc to get the fully expanded file location when getting diagnostic file names.
12 years ago
triton
7bd56c9b98
Do not try to handle preprocessed entities for invalid locations.
12 years ago
triton
cb812206b3
Fixed parser to not try to get the class layout for invalid declarations.
12 years ago
triton
46989d7f50
Added the C++ ABI to the class layouts.
12 years ago
triton
067ff9f57f
Respect the ToolSetToUse options and assign a default to MSCVersion if none is requested since it is needed to make Clang define _MSC_VER.
12 years ago
triton
8c1372f80a
Fixed Clang parser initialization to be a bit more robust with invalid triples.
12 years ago
triton
4f1a179ba9
Respect the verbose option in the driver when calling the parser.
12 years ago
triton
aeba55cb3c
Remove the compile-time Clang revision checks for the new vftable APIs since they do not work.
12 years ago
triton
f2999bafd0
Add the 'virtual' keyword in the C# generated method signatures.
12 years ago
triton
2b3a8f79e4
Fixed the documentation comments support in the generators to use the new comment APIs.
12 years ago
triton
69320246a9
Do not ignore system declarations when walking enum types.
...
This restores the old behavior that I changed a couple commits ago which turns out we depend on.
12 years ago
triton
751e0da4e3
Keep the original pointer that originated the AST declaration node and check if we have already processed the method in WalkMethodCXX (if so, just return the already existing declaration).
...
We depend on this to get the right method instance when walking through the vtable methods.
12 years ago
triton
0926734f38
Walk the vtable further down after all the child declarations of the class have been processed so that we find the proper methods once we walk the vtable components.
12 years ago
triton
d0f7f81e5a
Added IsVirtual data to methods.
12 years ago
triton
752cfa4869
Added IsDynamic and IsPolymorphic data to classes.
12 years ago
triton
bc1e08aba9
Remove the OpenCV example.
12 years ago
triton
7dacbce44d
Check if all overloads actually exist before gathering them for internal function processing.
12 years ago
João Matos
85e6c9e2f0
Merge pull request #17 from esdrubal/postProcessPasses
...
TranslationUnitPasses GeneratorOutputPasses
12 years ago
marcos henrich
3f0a188ea6
CppTypePrinter now prints parameter declaration type.
12 years ago
marcos henrich
f3045ea6c8
Generated code for equals override now checks if the dynamic_cast does not return null.
12 years ago
marcos henrich
0cf8c03aa3
PassBuilder is now generic. Driver Passes is now called TranslationUnitPasses. Added to driver GeneratorOutputPasses. Removed most of the PassBuilder Extensions.
12 years ago