triton
3a3f405fa9
Fixed wrong property setter type for some declarations.
...
Some operators, like operator[], actually need the getter return type.
12 years ago
triton
72aa09009d
Fixed a C# generation crash with set-only properties.
...
We cannot use the getter return type because it might not exist (setter-only property). Use the setter's first (and only) parameter return type instead.
12 years ago
triton
b58a99ebf3
Some fixes to the codebase to work correctly with the new parser bindings.
12 years ago
triton
8a54d30917
Fixed a bug in ASTRecord that made us infinitely recurse in some code.
...
Basically we should not visit a declaration if we are visiting from a type.
12 years ago
triton
786ea61a7b
Fixed the C++ parser to properly parser libraries.
12 years ago
triton
a40c043d19
Updated the C++ parsers to the latest Clang.
12 years ago
triton
7a7a2ab32a
Regenerated the C++ parser bindings.
12 years ago
triton
14b90d0a88
Fixed the ParserGen build script to use the SetupParser helper function.
12 years ago
triton
5412669fb4
Updated the MSVC build flags to disable some useless warnings in Clang.
12 years ago
triton
4f19f3b566
Fixed the parser build setup code to work with the new options.
12 years ago
triton
7f682e41c8
Added a new option to the build to choose between parsers.
12 years ago
triton
64e75fb0a6
Reworked the C++ parser structures to use some helper macros to ease the bindings.
12 years ago
triton
b05e54b148
Updated the LLVM build paths to the latest version.
12 years ago
João Matos
9c8e87f3f6
Merge pull request #145 from ddobrev/master
...
Improved the marshalling of arrays
12 years ago
Dimitar Dobrev
227e592c1a
Improved the marshalling of arrays.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
João Matos
0dc1e2c02c
Merge pull request #140 from ddobrev/master
...
Use properties in structs as well
12 years ago
Dimitar Dobrev
c853db5d34
Ignored operators which cannot be moved to a class because C# requires operators to be in their containing type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
52cf3702a6
Minor formatting fixes.
12 years ago
triton
df4fdeace8
Fixed access check logic for declarations to allow non-public declarations in C#.
...
Checking for the GenerateAbstractImpls option is flawed since they are not entirely related.
12 years ago
triton
4ccb60a553
Fixed FindOperator code to actually compile.
12 years ago
triton
d7f776cbba
Removed property accessors ignored checking code.
...
The logic here is just wrong... first even if one of the accessors is ignored that does not mean we should ignore the whole property. Additionally, the code logic to check if an accessor is ignored is faulty, we can not rely on the return value of the Visit functions, but check if the declaration itself was ignored.
12 years ago
triton
ec8d33d3cb
Fixed GetFunctionOverloads to work for class operators too.
12 years ago
triton
a4deeab18f
Fixed GetFunctionOverloads to work for all operator kinds.
...
This indirectly fixes the pass for ambiguity to process property indexers correctly.
12 years ago
triton
e5c85179d2
Ignore note diagnostics.
12 years ago
triton
a754b46438
Reworked function template parsing.
...
The previous version did not handle methods properly and lead to duplicate definitions since it did not check for existing templates with the same signature.
12 years ago
triton
067b2e841a
Added a new pass to check for special macros known to CppSharp that can control binding behavior.
12 years ago
triton
830bc946d1
Removed the explicit #if to make this compile on all platforms.
12 years ago
triton
7037c3dd4b
Whitespace cleanups.
12 years ago
triton
6e0a243322
Cleaned up some diagnostics to debug severity.
12 years ago
triton
0c12ef9bd5
Cleaned up some unused usings.
12 years ago
triton
4d70b60700
Renamed ASTContext parameter from "lib" to "ctx".
12 years ago
triton
a7f9e0bd9f
Check for and ignore decayed types since we cannot handle some cases.
12 years ago
triton
d09d2e9cf6
Simplified the property generation code.
12 years ago
triton
61dc4960f8
Added explicit constraint support to the experimental function templates generation.
12 years ago
triton
2372b49e73
Fixed template names by getting the name from the underlying templated declaration.
12 years ago
triton
da2c6b0602
Added indentation support to the logging.
12 years ago
triton
f2e831ebe2
Minor formatting fixes.
12 years ago
triton
7c3da1005e
Minor documentation fixes.
12 years ago
triton
a8c6e1f140
Fixed a problem with class operators not being correctly promoted to class operators.
...
We need to check all the parameters for a possible class to promote the operators.
12 years ago
triton
a5ebd151cf
Reworked the way we generate constructors and destructors to always use the actual class name.
...
Fixes some problems that might happen with method declarations with names that don't match the their containing class.
12 years ago
triton
0e38a74c13
Removed dependent types checking from type maps.
...
This fixes a regression, more work might still be needed in this area.
12 years ago
triton
c5d1d5d37b
Improved the formatting and diagnostic in ResolveIncompleteDecls pass.
12 years ago
triton
3a74428f94
Fixed delegate generation regression and added some tests.
12 years ago
triton
24fcf02978
Formatting fixes.
12 years ago
triton
db2652c9e4
Fixed the FunctionToStaticMethod pass to make sure we do not apply it when the function and class have different translation units. This can be improved in the future, for which I left a TODO.
12 years ago
triton
6ea0dae444
Improved the rename pass with fixes for visits and minor formatting nits.
12 years ago
triton
8d9e866009
Added support for clearing declarations between visits and fixed some passes that need it.
12 years ago
triton
f743db743d
Reworked and improved checking of ignored declarations.
...
It improves the logic to work when certain options are enabled. We would previously accept some declarations that should be ignored.
12 years ago
triton
5817f58cd4
Fixed all passes for the new ASTVisitor behavior.
...
Added ignore and method checking code to the MoveFunctionToClass pass.
12 years ago
triton
a5362af730
Improved visited checking in the ASTVisitor.
...
Since this is a pretty common pattern, this factors the visited checking of declarations inside the
VisitDeclaration overload. Because of this, we need to make sure we call VisitDeclaration is called (only once) instead of AlreadyVisited.
12 years ago