triton
5817f58cd4
Fixed all passes for the new ASTVisitor behavior.
...
Added ignore and method checking code to the MoveFunctionToClass pass.
12 years ago
triton
e7d3ad12a7
Fixed wrong comment.
12 years ago
triton
24b81c3a35
Remove an unused constructor.
12 years ago
triton
eaa5f8e708
Improved the diagnostic for ignored fields.
12 years ago
triton
b808117566
Cleaned up the default diagnostics output to be more concise.
12 years ago
triton
6402c3ca55
Added support for C++ attributed types to the parser, AST ,generators and tests.
12 years ago
Dimitar Dobrev
3cf6c7b3f1
Added a test for the pass that moves functions to a class.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
1473488289
Added a pass to move functions to an appropriate existing class if possible.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
2b77361d89
Reverted the hack about filling the empty names of parameters explicitly for function types. Added tests for this regression and another one caused by the changed around the introduction of FunctionType.Arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
3268c76293
Fixed the regression of function types being wrapped with empty argument names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
a0aece8eb4
Formatting change.
12 years ago
triton
8ab7fb4cc7
Minor code cleanup.
12 years ago
triton
4a29db6bcd
Revert "Fixed bug caused by a type in the new parser."
...
This reverts commit f1f6c2e5e9
.
12 years ago
triton
f1f6c2e5e9
Fixed bug caused by a type in the new parser.
12 years ago
Dimitar Dobrev
79883199f5
Prevented the renaming of constructors if there is duplication of names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
9d1687dbc4
Improved the property generation by matching with an "is" prefix for read-write properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ae1351d2b5
Improved the property generation by matching with an "is" prefix for read-write properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ee1c53b5b0
Simplified the comparisons used in the advanced pass for properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
cc4275f7a9
Generated comments, if any, for properties. Fixed a possible crash with the multiple inheritance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
7ecafc9858
Prevented renaming of methods when a base class has a property of the same name. Made the delegates used in abstract implementations prefixed with an underscore and internal.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
c242a3f320
Formatting changes.
12 years ago
Dimitar Dobrev
47f03ae68c
Added tests about the dereference and prefix/postfix operators. Fixed multiple inheritance not to include operators in interfaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
c0ed93cd5e
Prevented postfix and dereference operators from being wrapped as such because C# does not support them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
501f123277
Removed a check for const-ness because of a parser bug. Added tests for properties of complex types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
014c7df874
Added "register" to the list of verbs.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ff14f39ed4
Fixed the generation of properties by considering value and read-only pointer types the same for complex types. Fixed the counting of parameters to consider indirect ones.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ab548cb6da
Fixed the generation of properties to take indirect return types into account. Added "return" as a verb.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
71de29790e
Added a new pass to check for duplicated vtable components.
...
This helps workaround some Clang's work-in-progress vftable layouting implementation.
12 years ago
Stephen Kennedy
0957843c4d
Unify debugging output
...
Route all debugging output through Driver.Diagnostics
12 years ago
triton
c619d67eb6
DriverOptions now inherits from ParserOptions instead of providing a member.
12 years ago
triton
ece5fb6e56
Updated the generator to be able to use the new parser.
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
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
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
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
88d5192684
Wrapped conversion (cast) operators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
07beb47048
Converted return types to their complementary interfaces, if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
593aac162e
Added a new class type "Interface".
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
1962751cb8
Stored the original class in its interface replacement used with multiple inheritance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
c45c015a75
Reused the method for generating a string representation of an access qualifier.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago