triton
44ce759a33
V-table method delegates need to take into account same-named overloads.
...
Fixes #88 .
12 years ago
triton
a219ea4b84
Disabled symbol checking by default.
...
This feature still needs some work to be totally robust and it makes the tool not generate bindings by default so disable it for now.
12 years ago
Stephen Kennedy
972e08ba67
We only handle functions and fields in property setters
12 years ago
Stephen Kennedy
0c7a72c400
Hack for CLI version
12 years ago
Stephen Kennedy
00bf3714ca
Hack to silently ignore non-class base class (e.g. templates etc)
12 years ago
Stephen Kennedy
84f0942a76
Avoid mismatched braces when the decl is neither a Function nor a Field
12 years ago
triton
6631d7e7c8
Changed GetTestsDirectory to be public.
12 years ago
triton
c619d67eb6
DriverOptions now inherits from ParserOptions instead of providing a member.
12 years ago
triton
cc0e0dab8d
Changed the test setup to search for the tests output directory.
12 years ago
triton
d3b0ab7192
Added missing Generator file.
12 years ago
triton
ca9c332618
Changed the test setup to search for the tests directory.
12 years ago
triton
565d73a4d0
Fixed CLI type references to work correctly with library namespaces.
12 years ago
triton
71d9ba5761
Added NativeDataSize property to the ICppMarshal interface.
12 years ago
triton
ece5fb6e56
Updated the generator to be able to use the new parser.
12 years ago
triton
a2ec94639b
Build fixes.
12 years ago
triton
c602f3b331
Formatting fixes.
12 years ago
triton
7bf1ce39d6
Removed unused using namespaces.
12 years ago
triton
b409d75bb6
Simplified the way generators are created in the driver.
12 years ago
triton
d114ac0f0e
Renamed LanguageGeneratorKind to GeneratorKind.
12 years ago
triton
3e489c9a06
Updated the generators and tests for new class names.
12 years ago
triton
2c4ef76f8a
Updated the driver to the new ASTContext and SymbolContext classes.
12 years ago
triton
0cc9446fe7
Refactored the parser class.
12 years ago
triton
c5e9008b47
Extracted the Options class to its own file.
12 years ago
triton
be0f73f471
Moved Diagnostics class to new core project.
12 years ago
triton
9d9973eb62
Fixes to the C# implementation of std::vector interop.
12 years ago
triton
995791b996
References to System.Runtime.InteropServices.CallingConvention attributes are now fully qualified to fix some conflicts that could happen with generated code.
12 years ago
triton
67ee5268ba
Added generation of stubs for ICppMarshal.
12 years ago
triton
b91ac99576
Reworked the CLI type references collector and generation code.
...
We now properly handle type references to namespaces that do not exist in the referencing translation unit. We do this by collecting all the references for all namespaces in the translation unit and generate a block with all the forward references.
12 years ago
Dimitar Dobrev
504222f03f
Added the event to its block to maintain the connection between them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Joao Matos
1c6538207e
Fixed Premake build files for OSX.
12 years ago
Dimitar Dobrev
f348a80c32
Moved the improved property pass to a new class. Added the list of verbs as a resource in premake.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
f086dd9051
Commented newly created properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
19bae92f9b
Added a fake option so that the build stays healthy since the C++/CLI-back-end does not properly support properties yet.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
27f8e28036
Fixed the generation of v-table calls to property setters. Ignored methods that are only named "get" and similar, as properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
fcb1ab67ca
Added tests for properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
824d8b5f30
Rewrote the generating of properties to additionaly handle property overrides and read-only properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
549c2046d1
Moved the checks for operators and Dispose to IsRenameableDecl. Moved the checking for conflicts to a separate function.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
8c77618c69
Fixed the renaming pass to ignore operators, consider IDisposable.Dispose and take care to avoid naming conflicts.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
bfcc92dfb1
Included properties in the renaming pass.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
acbdf7d82a
Added a test for fixed arrays which showed that setting actually worked incorrectly.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
159a65d6bb
Fixed a bug with multiple inheritance and an indirect return type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
275b4a1696
Filled in the setting of a fixed array.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
80dca38041
Filled in the returning of a fixed array.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
444a6e639f
Fixed the generation of fields of a type def type by correctly desugaring.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d2e7e99bc3
Fixed the issue about member pointers not pointing to a function. Turns out this is some "pointer to a data member" (?!) that is of little use so just ignore it.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
5b6beaaf33
Added a test about operators in nested classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
2091d71242
Added a test about the type def - to a function pointer - incorrectly resolved to void*.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
95687a22b6
Added two hacks: one for operators in general, one for a parser issue.
...
1. Visit the class as a declaration context when checking operator overloads - otherwise operators in nested types are not checked; this is, however, not the proper solution because all visiting of classes should be refactored so that this and any other methods are always called as necessary;
2. A single conversion operator in Qt misleads the parser into resolving a function pointer while it is (most probably) not; this caused a subsequent crash.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
813084948f
Fixed the resolution of overloads for conversion operators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
88d5192684
Wrapped conversion (cast) operators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago