Joao Matos
7daf556fb7
Added visitor support for typedef name declarations and unify type alias and typedef implementations.
9 years ago
Dimitar Dobrev
cf7813d8d6
Moved the C# generation of internal names of template specialisations to the C# type printer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
28b28d7420
Remove unused using.
9 years ago
Dimitar Dobrev
f6c617cd38
Removed some useless workaround for type definitions.
...
Fixes https://github.com/mono/CppSharp/issues/671 .
9 years ago
Joao Matos
a0ac04d67c
Fixed another instance of qualified pontee visitation.
9 years ago
Joao Matos
21dd5d71a8
Fixed ASTVisitor.VisitUnsupportedType to be virtual.
9 years ago
Joao Matos
76ce6c7836
Added an unsupported type node to the AST.
9 years ago
Dimitar Dobrev
d2326a3883
Added processing of type aliases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b16bb0a979
Moved the change of order when visiting properties to just the renaming pass.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
829422cc86
Fixed invalid generated C# code when having a field renamed the same as a method.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
5d8ecf32d7
Extended the AST with the GCC vector type ("__attribute__").
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
a44da437e6
Rename AstVisitor.Options to VisitOptions.
10 years ago
Dimitar Dobrev
7d67f4b023
Added unary transformations and other fixes to restore the full build with all tests.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
4b1309f5be
Added support for C++14 variable templates and specializations.
10 years ago
Joao Matos
4b8bb474fa
Clean up template declarations visiting behavior.
10 years ago
Dimitar Dobrev
32122a1bba
Properly handled enumeration items in default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
3cd024cccf
Added marshalling of std::string to the C# end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
7986747373
Added dependent template specialization types to the AST.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
62beaddf63
Fixed the printing of class template specializations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
6abdb764e6
Completed the exposing of type aliases in our AST.
...
Fixes https://github.com/mono/CppSharp/issues/670 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
7f75246215
Added support for C++11 type alias template declarations.
...
Partial fix for https://github.com/mono/CppSharp/issues/664 .
10 years ago
Dimitar Dobrev
162d8ebb49
Added an option whether passes should visit parameters of events.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
cdc51afc0e
Extended the parser and AST to handle template template parameters.
...
For more details see the Clang documentation ( http://clang.llvm.org/doxygen/classclang_1_1TemplateTemplateParmDecl.html ).
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
41cd6e6ab7
Fixed a regression when generating the parser bindings for OS X.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
0d5c4539a2
Generated internals of types nested in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
e4200f4690
Fixed the wrapping of template parameters in the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
7d7b75a155
Changed PreprocessedEntity to a non-declaration because it isn't in Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
c8da628782
Fixed the renaming of overrides in a certain situation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
83f58fe260
Added an option to disable the visiting of return types of functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
ac7176f1b7
Added parsing and AST support for C++ friend declarations.
11 years ago
Dimitar Dobrev
3d72c2fca4
Added renaming of variables.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Elias Holzer
d3fb9289cf
Synced new and old parser.
...
* Implemented missing parts in regards to class templates.
* Fixed couple of class member initialization issues in C++ AST classes.
* Make code more look alike so it's easier to compare them.
* All tests pass now with old and new parser. Especially the nasty STL one with the ostream typedef.
12 years ago
triton
12b0764b4d
Fixed trailing whitespace.
12 years ago
Dimitar Dobrev
66363787b4
Stubbed support for pack expansions to avoid crashes in certain cases such as variadic templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
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
triton
6402c3ca55
Added support for C++ attributed types to the parser, AST ,generators and tests.
12 years ago
Dimitar Dobrev
f6e0453744
Revert "Fixed function types to provide qualified argument types in the AST."
...
This reverts commit 70122b0568 .
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
4e9000d591
Changed AST visitor behavior to not visit the regular class of class template declarations.
12 years ago
triton
70122b0568
Fixed function types to provide qualified argument types in the AST.
...
We just parsed the function type "parameters" which does not even make sense from a type system point of view but it's useful in some instances in the generator when function types are "mappable" to function declarations.
12 years ago
João Matos
9a4b1d4034
Added virtual keyword to VisitDecayedType for consistency.
13 years ago
triton
68ddfbdd6f
Move the AST project to the CppSharp.AST namespace.
13 years ago
triton
3f664784c9
Added support for CIL types to the type system.
13 years ago
triton
c488dcbfde
Prefix all the libraries and project names with CppSharp.
13 years ago
triton
acc5885594
Added support for decayed types which represent a pointer type decayed from an array or function type which have been added to latest Clang.
13 years ago
marcos henrich
d53d287948
Event's parameters are now visited
13 years ago
triton
e2fffddadf
Changed function/method return types to be qualified types.
13 years ago
triton
8d2261c2e0
Check options to see if we can visit function parameters.
13 years ago
triton
1d5b3438d9
Formatting changes.
13 years ago
triton
ee615abfe7
Visit the declaration itself instead of using the visitor Visit methods.
13 years ago
triton
c063ca4ef7
Added very basic support for dependent array types.
13 years ago